""" """ from sys import stdin T,R = map(int,stdin.readline().split()) for loop in range(N): s = stdin.readline() print (0)