@@ -0,0 +1,832 @@
+/*%0AID: yashary1%0ALANG: JAVA%0ATASK: ride%0A*/%0A%0Aimport java.io.*;%0Aimport java.util.*;%0A%0Aclass ride%0A%7B%0A  public static void main(String %5B%5D args) throws IOException%0A  %7B%0A    BufferedReader f = new BufferedReader(new FileReader(%22ride.in%22));%0A    PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(%22ride.out%22)));%0A%0A    char comet%5B%5D = f.readLine().trim().toCharArray();%0A    char group%5B%5D = f.readLine().trim().toCharArray();%0A%0A    int cometNum = 1;%0A    int groupNum = 1;%0A%0A    for(int i = 0; i %3C comet.length; i++)%0A    %7B%0A    %09cometNum *= comet%5Bi%5D - 'A' + 1;%0A    %7D%0A%0A    for(int i = 0; i %3C group.length; i++)%0A    %7B%0A    %09groupNum *= group%5Bi%5D - 'A' + 1;%0A    %7D%0A%0A    cometNum %25= 47;%0A    groupNum %25= 47;%0A%0A    if(cometNum == groupNum)%0A    %7B%0A    %09out.println(%22GO%22);%0A    %7D%0A    else%0A    %7B%0A    %09out.println(%22STAY%22);%0A    %7D%0A%0A    out.close();%0A  %7D%0A%7D%0A

Create ride.java