/******************************************************************/
/* ACM ICPC 2017-2018, NEERC                                      */
/* Northern Subregional Contest                                   */
/* St Petersburg, November 4, 2017                                */
/******************************************************************/
/* Problem E. Equal Numbers                                       */
/*                                                                */
/* Original idea         Vitaly Aksenov                           */
/* Problem statement     Vitaly Aksenov                           */
/* Test set              Vitaly Aksenov                           */
/******************************************************************/
/* Checker                                                        */
/*                                                                */
/* Author                Vitaly Aksenov                           */
/******************************************************************/

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

/**
 * Created by Aksenov239 on 01.10.2017.
 */
public class Check implements Checker {
    public Outcome test(InStream inf, InStream ouf, InStream ans) {
        int n = inf.nextInt();
        for (int i = 0; i < n + 1; i++) {
            int ja = ans.nextInt();
            int pa = ouf.nextInt();
            if (ja != pa) {
                return new Outcome(Outcome.Type.WA, String.format("The %d-th integer is different", i));
            }
        }
        return new Outcome(Outcome.Type.OK, String.format("ok %d integers", n + 1));
    }
}

