Write a program that calculates the powers of two for a given sequence of numbers. The numbers will consist only of integer values. The input shall be read from standard input and the output shall be written to standard output.
1 2 3 4 5
1 4 9 16 25