s = input() #接收输入的一段字符串 x = s.split(';') #按照分号分割字符串,返回列表 pos=[0,0] #记录坐标 for i in range(len(x)): if x[i] and x[i][0] in ['A', 'S', 'W', 'D'] and x[i][1:].isdigit(): if x[i][0]=='A': pos[0]-=int(x[i][1:]) if x[i][0]=='S': pos[1]-=int(x[i][1:]) if x[i][0]=='W': pos[1]+=int(x[i][1:]) if x[i][0]=='D': p...