Write a program that reads a string, reverses it and prints the result at the console.