if input = gets puts input.chomp.reverse end