class Solution:
    def solve(self , str ):
        # write code here
        return ''.join(reversed(str))