Q, L = map(int, input().split()) assert Q < 1000