def main(): for i in range(int(input())): N = input() print(N + '0'*len(N)) if __name__ == '__main__': main()