import sys def code(c:str, offset:int) -> str: if c.isdigit(): return str((int(c) + offset) % 10) if c.isupper(): return chr(ord('a') + (ord(c.lower()) + offset - ord('a') ) % 26) else: return chr(ord('A') + (ord(c.upper()) + offset - ord('A')) % 26) def enco...