#include #include"testlib.h" using namespace std; typedef long long LL; int main(int argc, char **argv){ registerTestlibCmd(argc, argv); int T = inf.readInt(); while(T --){ int n = inf.readInt(); if(ans.readLine() == "impossible") ouf.readToken("impossible"); else { int x = ouf.readInt(1, 1000000), y = ouf.readInt(1, 1000000); if((LL)x * x * x + (LL)y * y * y != (LL)n * n) quitf(_wa, "/fn"); } } quitf(_ok, "/bx"); }