Advertisement
Guest User

Untitled

a guest
May 4th, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding:utf-8 -*-
  3.  
  4. import sys, string
  5.  
  6. alphabet = 'abcdefghijklmnopqrstuvwxyza'
  7. table = string.maketrans(alphabet[:-1], alphabet[1:])
  8. for s in sys.stdin:
  9. while not('the' in s or 'this' in s or 'that' in s):
  10. s = s.translate(table)
  11.  
  12. print s[:-1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement