s = input().split(';') location = [0, 0] # 起始坐标为(0, 0) for i in range(len(s)): if len(s[i]) < 2: continue elif s[i][0] not in ['A', 'D', 'W', 'S']: continue elif (s[i][0] in ['A', 'D', 'W', 'S']) and (s[i].count('A') + s[i].count('D') + s[i].count('W') + s[i].count...