Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import math
- # Auto-generated code below aims at helping you parse
- # the standard input according to the problem statement.
- s = input()
- t = "".join(reversed(s[:-1]))
- r = " ".join(map(lambda e: e[0].upper() + e[1:].lower() if e[-1].isupper() else e, t.split(" ")))
- print(r + s[-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement