from collections import deque from sys import stdin, stdout input = lambda: stdin.readline().rstrip() write = stdout.write def main(): N, K = map(int, input().split()) seq = deque([1, 3, 2, 4]) for _ in range(N - K): print(seq[0], end='') seq.rotate(-1) for _ in range(K): print(seq[-1], end='') write('\n') main()