x,y = 0,0 lst = input().split(';') for s in lst: if len(s) in [2,3]: try: dis = int(s[1:]) except: continue if s[0]=='A': x -= dis elif s[0]=='D': x += dis elif s[0]=='W': y += dis elif s[...