#!/usr/bin/env ruby
puts STDIN.read.strip.reverse