# coding: utf-8 sentences = input() def main(): print(sentences[-1::-1]) if __name__ == '__main__': main()