string = input().split(';') x,y = 0, 0 for n in string: # print(n, x, y) if n == '': continue elif not n[0] in ['A', 'S', 'W', 'D']: continue else: try: step = int(n[1:]) # print(step) if n[0] == 'A': x -= ...