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