#include #include #include using namespace std; int main(){ string str1; int x=0, y=0, current, idx; int i, j, k; getline(cin, str1); for(i=0; i<str1.size(); i=k+1){ for(k=i;str1[k]!=';';k++){ } current = 0; if(str1[i]=='A'||str1[i]=='D'||str1[i]=='W'||str1[i]=='S'){ for(j=i+1; j<= k-1; j++...