def judge(val: str) -> bool: if len(val) != 0 and val[0] in ["A", "S", "W", "D"] and val[1:].isdigit(): step = int(val[1:]) if 0 <= step <= 99: return True else: return False seq = input().strip().split(&q...