str = input().split(';') x,y = 0,0 for i in range(len(str)): str1 = str[i] if (str1.count('A') == 1 or str1.count('D') == 1 or str1.count('W') == 1 or str1.count('S') == 1): if len(str1) == 2: if 'A' in str1: x -= int(str1[1]) if 'D' in str1: x += int(str1[1]) if 'W' in str1: y += int(str1[1]) if 'S...