print filter(str.isalpha,raw_input())[::-1]