import re s = input().split(';') res = [] x, y = 0, 0 for i in s: if len(i) <=3 and len(i) > 1: if i[-1].isdigit(): res += (re.findall(r'[A-Z]{1}\d{1,2}',i)) for i in res: if i[0] == 'A': x -= int(i[1:]) elif i[0] == 'D': x += int(i[1:]) elif i[0] == 'W': y += int(i[1:]) elif i[0] == 'S': y -=...