nums=list(map(str,input().split(";"))) m,n=0,0 # print(nums) for num in nums: if (2<=len(num)<=3) and num[1:3].isdigit(): if num[0]=="A": m-=int(num[1:]) if num[0]=="D": m+=int(num[1:]) if num[0]=="W": n+=int(num[1:]) if n...