str = raw_input() print srt[::-1]