N,M = map(int, input().split()) for _ in range(M): input() print(N)