#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <string>
#include <cctype>
#include <stack>
#include <queue>
#include <vector>
#include <map>
#include <sstream>
#include <cmath>
#include <limits>
#include <utility>
#include <iomanip>
#include <set>
#include <numeric>
#include <cassert>
#include <ctime>
#define INF_MAX 2147483647
#define INF_MIN -2147483647
#define INF_LL 9223372036854775807LL
#define INF 2000000000
#define PI acos(-1.0)
#define EPS 1e-8
#define LL long long
#define mod 1000000007
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define setzero(a) memset(a,0,sizeof(a))
#define setdp(a) memset(a,-1,sizeof(a))
#define bits(a) __builtin_popcount(a)
using namespace std;
set<pair<LL, LL> > s;
bool test;
void solve(LL &xx, LL &yy, bool yes)
{
set<pair<LL, LL> >::iterator it = s.lower_bound(mp(xx, xx));
set<pair<LL, LL> >::iterator it2 = s.lower_bound(mp(yy, yy));
if(it == s.end())
it--;
if(it2 == s.end())
it2--;
pair<LL, LL> L = *it, R = *it2;
if(yes)
{
if(R.s < xx)
{
test = false;
return;
}
if(L.f > yy && it == s.begin())
{
test = false;
return;
}
if(L.f > xx && it == s.begin())
{
if(R.f > yy)
{
it2--;
R = *it2;
}
L = mp(R.f, min(yy, R.s));
it = it2;
while(it2 != s.end())
{
it++;
s.erase(it2);
it2 = it;
}
s.insert(L);
}
else
{
if(R.f > yy)
{
it2--;
R = *it2;
}
if(L.f > xx)
{
it--;
L = *it;
}
if(L.s < xx)
{
if(it == it2)
{
test = false;
return;
}
it++;
L = *it;
}
if(it == it2)
{
L = mp(max(xx, L.f), min(yy, R.s));
s.clear();
s.insert(L);
return;
}
L = mp(max(xx, L.f), L.s);
R = mp(R.f, min(yy, R.s));
set<pair<LL, LL> >::iterator it3 = it, it4;
it4 = it3;
while(1)
{
if(it3 == it)
{
s.erase(it);
break;
}
it4++;
s.erase(it3);
it3 = it4;
}
it3 = it2;
it4 = it3;
while(it3 != s.end())
{
it4++;
s.erase(it3);
it3 = it4;
}
s.insert(L);
s.insert(R);
}
}
else
{
if(R.s < xx)
return;
if(L.f > yy && it == s.begin())
return;
if(L.f > xx && it == s.begin())
{
if(R.f > yy)
{
it2--;
R = *it2;
}
L = mp(yy + 1, R.s);
it = it2;
while(1)
{
if(it2 == s.begin())
{
s.erase(it2);
break;
}
it--;
s.erase(it2);
it2 = it;
}
if(L.f <= L.s)
s.insert(L);
}
else
{
if(R.f > yy)
{
it2--;
R = *it2;
}
if(L.f > xx)
{
it--;
L = *it;
}
if(L.s < xx)
{
if(it == it2) return;
it++;
L = *it;
}
bool can = true;
if(it == it2)
{
s.erase(it);
can = false;
}
L = mp(L.f, xx - 1);
R = mp(yy + 1, R.s);
set<pair<LL, LL> >::iterator it3 = it;
while(can)
{
if(it == it2)
{
s.erase(it);
break;
}
it3++;
s.erase(it);
it = it3;
}
if(L.f <= L.s)
s.insert(L);
if(R.f <= R.s)
s.insert(R);
}
test &= (s.size() != 0);
}
}
int main()
{
//ios_base::sync_with_stdio(0);
//freopen("lca.in", "r", stdin);
//freopen("lca.out", "w", stdout);
int n, q, lev;
LL x, y;
int yes;
scanf("%d %d", &n, &q);
s.insert(mp(1LL << (n - 1), (1LL << n) - 1));
test = true;
while(q-- && test)
{
scanf("%d %I64d %I64d %d", &lev, &x, &y, &yes);
for(int i=lev;i<n && test;i++)
{
x = x * 2;
y = y * 2 + 1;
}
solve(x, y, yes);
}
if(!test)
cout << "Game cheated!";
else
{
pair<LL, LL> res;
if(s.size() == 1)
{
res = *s.lower_bound(mp(0, 0));
if(res.f != res.s) test = false;
}
else test = false;
if(!test)
cout << "Data not sufficient!";
else cout << res.f;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0ZGlvPgojaW5jbHVkZSA8YWxnb3JpdGhtPgojaW5jbHVkZSA8Y3N0cmluZz4KI2luY2x1ZGUgPHN0cmluZz4KI2luY2x1ZGUgPGNjdHlwZT4KI2luY2x1ZGUgPHN0YWNrPgojaW5jbHVkZSA8cXV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dW5kKG1wKHl5LCB5eSkpOwogIGlmKGl0ID09IHMuZW5kKCkpCiAgICBpdC0tOwogIGlmKGl0MiA9PSBzLmVuZCgpKQogICAgaXQyLS07CiAgcGFpcjxMTCwgTEw+IEwgPSAqaXQsIFIgPSAqaXQyOwogIGlmKHllcykKICB7CiAgICBpZihSLnMgPCB4eCkKICAgIHsKICAgICAgdGVzdCA9IGZhbHNlOwogICAgICByZXR1cm47CiAgICB9CiAgICBpZihMLmYgPiB5eSAmJiBpdCA9PSBzLmJlZ2luKCkpCiAgICB7CiAgICAgIHRlc3QgPSBmYWxzZTsKICAgICAgcmV0dXJuOwogICAgfQogICAgaWYoTC5mID4geHggJiYgaXQgPT0gcy5iZWdpbigpKQogICAgewogICAgICBpZihSLmYgPiB5eSkKICAgICAgewogICAgICAgIGl0Mi0tOwogICAgICAgIFIgPSAqaXQyOwogICAgICB9CiAgICAgIEwgPSBtcChSLmYsIG1pbih5eSwgUi5zKSk7CiAgICAgIGl0ID0gaXQyOwogICAgICB3aGlsZShpdDIgIT0gcy5lbmQoKSkKICAgICAgewogICAgICAgIGl0Kys7CiAgICAgICAgcy5lcmFzZShpdDIpOwogICAgICAgIGl0MiA9IGl0OwogICAgICB9CiAgICAgIHMuaW5zZXJ0KEwpOwogICAgfQogICAgZWxzZQogICAgewogICAgICBpZihSLmYgPiB5eSkKICAgICAgewogICAgICAgIGl0Mi0tOwogICAgICAgIFIgPSAqaXQyOwogICAgICB9CiAgICAgIGlmKEwuZiA+IHh4KQogICAgICB7CiAgICAgICAgaXQtLTsKICAgICAgICBMID0gKml0OwogICAgICB9CiAgICAgIGlmKEwucyA8IHh4KQogICAgICB7CiAgICAgICAgaWYoaXQgPT0gaXQyKQogICAgICAgIHsKICAgICAgICAgIHRlc3QgPSBmYWxzZTsKICAgICAgICAgIHJldHVybjsKICAgICAgICB9CiAgICAgICAgaXQrKzsKICAgICAgICBMID0gKml0OwogICAgICB9CiAgICAgIGlmKGl0ID09IGl0MikKICAgICAgewogICAgICAgIEwgPSBtcChtYXgoeHgsIEwuZiksIG1pbih5eSwgUi5zKSk7CiAgICAgICAgcy5jbGVhcigpOwogICAgICAgIHMuaW5zZXJ0KEwpOwogICAgICAgIHJldHVybjsKICAgICAgfQogICAgICBMID0gbXAobWF4KHh4LCBMLmYpLCBMLnMpOwogICAgICBSID0gbXAoUi5mLCBtaW4oeXksIFIucykpOwogICAgICBzZXQ8cGFpcjxMTCwgTEw+ID46Oml0ZXJhdG9yIGl0MyA9IGl0LCBpdDQ7CiAgICAgIGl0NCA9IGl0MzsKICAgICAgd2hpbGUoMSkKICAgICAgewogICAgICAgIGlmKGl0MyA9PSBpdCkKICAgICAgICB7CiAgICAgICAgICBzLmVyYXNlKGl0KTsKICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgICBpdDQrKzsKICAgICAgICBzLmVyYXNlKGl0Myk7CiAgICAgICAgaXQzID0gaXQ0OwogICAgICB9CiAgICAgIGl0MyA9IGl0MjsKICAgICAgaXQ0ID0gaXQzOwogICAgICB3aGlsZShpdDMgIT0gcy5lbmQoKSkKICAgICAgewogICAgICAgIGl0NCsrOwogICAgICAgIHMuZXJhc2UoaXQzKTsKICAgICAgICBpdDMgPSBpdDQ7CiAgICAgIH0KICAgICAgcy5pbnNlcnQoTCk7CiAgICAgIHMuaW5zZXJ0KFIpOwogICAgfQogIH0KICBlbHNlCiAgewogICAgaWYoUi5zIDwgeHgpCiAgICAgIHJldHVybjsKICAgIGlmKEwuZiA+IHl5ICYmIGl0ID09IHMuYmVnaW4oKSkKICAgICAgcmV0dXJuOwogICAgaWYoTC5mID4geHggJiYgaXQgPT0gcy5iZWdpbigpKQogICAgewogICAgICBpZihSLmYgPiB5eSkKICAgICAgewogICAgICAgIGl0Mi0tOwogICAgICAgIFIgPSAqaXQyOwogICAgICB9CiAgICAgIEwgPSBtcCh5eSArIDEsIFIucyk7CiAgICAgIGl0ID0gaXQyOwogICAgICB3aGlsZSgxKQogICAgICB7CiAgICAgICAgaWYoaXQyID09IHMuYmVnaW4oKSkKICAgICAgICB7CiAgICAgICAgICBzLmVyYXNlKGl0Mik7CiAgICAgICAgICBicmVhazsKICAgICAgICB9CiAgICAgICAgaXQtLTsKICAgICAgICBzLmVyYXNlKGl0Mik7CiAgICAgICAgaXQyID0gaXQ7CiAgICAgIH0KICAgICAgaWYoTC5mIDw9IEwucykKICAgICAgICBzLmluc2VydChMKTsKICAgIH0KICAgIGVsc2UKICAgIHsKICAgICAgaWYoUi5mID4geXkpCiAgICAgIHsKICAgICAgICBpdDItLTsKICAgICAgICBSID0gKml0MjsKICAgICAgfQogICAgICBpZihMLmYgPiB4eCkKICAgICAgewogICAgICAgIGl0LS07CiAgICAgICAgTCA9ICppdDsKICAgICAgfQogICAgICBpZihMLnMgPCB4eCkKICAgICAgewogICAgICAgIGlmKGl0ID09IGl0MikgcmV0dXJuOwogICAgICAgIGl0Kys7CiAgICAgICAgTCA9ICppdDsKICAgICAgfQogICAgICBib29sIGNhbiA9IHRydWU7CiAgICAgIGlmKGl0ID09IGl0MikKICAgICAgewogICAgICAgIHMuZXJhc2UoaXQpOwogICAgICAgIGNhbiA9IGZhbHNlOwogICAgICB9CiAgICAgIEwgPSBtcChMLmYsIHh4IC0gMSk7CiAgICAgIFIgPSBtcCh5eSArIDEsIFIucyk7CiAgICAgIHNldDxwYWlyPExMLCBMTD4gPjo6aXRlcmF0b3IgaXQzID0gaXQ7CiAgICAgIHdoaWxlKGNhbikKICAgICAgewogICAgICAgIGlmKGl0ID09IGl0MikKICAgICAgICB7CiAgICAgICAgICBzLmVyYXNlKGl0KTsKICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgICBpdDMrKzsKICAgICAgICBzLmVyYXNlKGl0KTsKICAgICAgICBpdCA9IGl0MzsKICAgICAgfQogICAgICBpZihMLmYgPD0gTC5zKQogICAgICAgIHMuaW5zZXJ0KEwpOwogICAgICBpZihSLmYgPD0gUi5zKQogICAgICAgIHMuaW5zZXJ0KFIpOw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