import ru.ifmo.testlib.Checker;
import ru.ifmo.testlib.InStream;
import ru.ifmo.testlib.Outcome;
import ru.ifmo.testlib.Outcome.Type;

public class Check implements Checker {
    @Override
    public Outcome test(InStream inf, InStream ouf, InStream ans) {
/*        String ja = ans.nextToken();
        String pa = ouf.nextToken();
        if (!ja.equals(pa)) {
            return new Outcome(Type.WA, ja + " expected, but " + pa + " found");
        }*/
        int jb = ans.nextInt();
        int pb = ouf.nextInt();
        if (jb != pb) {
            return new Outcome(Type.WA, jb + " expected, but " + pb + " found");
        }
        return new Outcome(Type.OK, "" + jb);
    }
}
