Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c=''.join(dict(zip('|{"?:<',"\['/;,")).get(x,x)for x in raw_input().lower())
- p=lambda b:sum(x in b for x in c)
- h=p('srop')>p("'wui")
- e=" \qwertyuiop[asdfghjkl;'/zxcvbnm,. "
- r=''
- for x in c:r+=e[e.find(x)+(-10,1)[x!="'a"[h]]*~-0**h]
- print'offset:',('lef','righ')[h]+'t\ntext:',r.capitalize()+'.'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement