#include <cstdio>
#include <iostream>
#include <ctime>
using std::cout;
using std::cin;
using std::endl;
char temp;
int check_point,run_count;
int main() {
	freopen("traverse1.in","r",stdin);
	freopen("traverse.in","r",stdin);
	freopen("traverse.out","w",stdout);
	scanf("%d %d",&check_point,&run_count);
	for(;run_count>0;run_count--){
		int chance = 0;
		if (check_point>=7){
			chance = rand()%1000000007;
		} else {
			chance = rand()%10;
		}
		cout<<chance;
	}
	return 0;
}
