# -*- coding: utf-8 -*- S = input() print(S[::-1])