for i in range(int(input())): print(int(input(),0))