n, k = map(int, input().split()) l = '1'*k + ('1324' * (n//4+1)) print(l[:n])