from hashlib import md5 while 1: try: s=input() except: raise SystemExit t=md5(s.encode()).hexdigest() u=md5(t.encode()).hexdigest() print(u)