#!/usr/bin/env python3 s = input() t = ''.join(reversed(s)) print(t)