# -*- coding: utf-8 -*- S=raw_input().strip() print S[::-1]