s = 'abcd' print s[::-1]