#!/usr/bin/python import sys, codecs sys.stdin = codecs.getreader('utf-8')(sys.stdin) print raw_input()[::-1]