t=input().split(';') p=[0,0] for i in t: err=0 if len(i)>0 and len(i)<4: if i[0]in ['W','A','S','D']: for j in i[1:]: if ord(j) >57 or or...