package HuaweiCoding;
import java.util.Scanner;
/*
*
*/
public class String_9 {
public static int x=0;
public static int y=0;
public static void moveLocation(String location) {
if(location.length()==0) {
return;
}
char[] fields = location.toCharArray();
char firstChar = fields[0];
if(firstChar!='A' && firstChar!='S' &&
firstChar!='D' && firstChar!='W' ) {
return;
}
for(int i=1;i