#include <bits/stdc++.h>
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
using namespace std;
int main()
{
IOS ;
int x,y,h;
cin >>x>>h;
int r[x][x];
for (int i=0;i<x;i++){
for (int j=0;j<h;j++){
cin >>r[i][j];
}
}
cin >>y;
for (int i=0;i<x;i++){
for (int j=0;j<x;j++){
if (r[i][j]==y){
cout << "will not take number";
return 0;
}
}
}
cout << "will take number";
return 0;
}
CiNpbmNsdWRlIDxiaXRzL3N0ZGMrKy5oPgojZGVmaW5lIElPUyBpb3M6OnN5bmNfd2l0aF9zdGRpbygwKTsgY2luLnRpZSgwKTsgY291dC50aWUoMCk7CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpCnsKSU9TIDsKaW50IHgseSxoOwpjaW4gPj54Pj5oOwppbnQgclt4XVt4XTsKZm9yIChpbnQgaT0wO2k8eDtpKyspewogICAgZm9yIChpbnQgaj0wO2o8aDtqKyspewogICAgICAgIGNpbiA+PnJbaV1bal07CiAgICB9Cn0KY2luID4+eTsKZm9yIChpbnQgaT0wO2k8eDtpKyspewogICAgZm9yIChpbnQgaj0wO2o8eDtqKyspewogICAgICAgIGlmIChyW2ldW2pdPT15KXsKICAgICAgICAgICAgY291dCA8PCAid2lsbCBub3QgdGFrZSBudW1iZXIiOwogICAgICAgICAgICByZXR1cm4gMDsKICAgICAgICB9CiAgICB9Cn0KY291dCA8PCAid2lsbCB0YWtlIG51bWJlciI7CiAgICByZXR1cm4gMDsKfQo=