import string u = string.ascii_uppercase l = string.ascii_lowercase t = str.maketrans(u,l[1:]+l[0]) d = {"abc":2,"def":3,"ghi":4,"jkl":5,"mno":6,"pqrs":7,"tuv":8,"wxyz":9} ll=[] while True: try: s = input() for i in s: if i in u: j = i.translate(t) ...