for i in range(int(input())): print(1-int(input()))