import sys def main(): input = sys.stdin.read().split() T = int(input[0]) for _ in range(T): print(0) if __name__ == "__main__": main()