#include <iostream>
#include <map>
#include <utility>
#include <string>
using namespace std;
string f (int a, int b, int c, int d) {
using input = tuple<int,int,int,int>;
static map<input,string> mytable = {
{ input{ 1, 3, 0, 1 }, "ok"},
{ input{ 0, 2, 1, 2 }, "fault"},
{ input{ 0, 0, 0, 0 }, "warning"}
};
return mytable[input{a,b,c,d}];
}
int main() {
// your code goes here
cout << f(0,2,1,2) <<endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWFwPgojaW5jbHVkZSA8dXRpbGl0eT4KI2luY2x1ZGUgPHN0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCnN0cmluZyBmIChpbnQgYSwgaW50IGIsIGludCBjLCBpbnQgZCkgewoJdXNpbmcgaW5wdXQgPSAgdHVwbGU8aW50LGludCxpbnQsaW50PjsKCQogICAgc3RhdGljIG1hcDxpbnB1dCxzdHJpbmc+IG15dGFibGUgPSAgewogIAkgICAgeyBpbnB1dHsgMSwgMywgMCwgMSB9LCAib2sifSwgCiAgICAgICAgeyBpbnB1dHsgMCwgMiwgMSwgMiB9LCAiZmF1bHQifSwKICAgICAgICB7IGlucHV0eyAwLCAwLCAwLCAwIH0sICJ3YXJuaW5nIn0KICAgIH07CiAgICAKICAgIHJldHVybiBteXRhYmxlW2lucHV0e2EsYixjLGR9XTsKfQoKaW50IG1haW4oKSB7CgkvLyB5b3VyIGNvZGUgZ29lcyBoZXJlCgljb3V0IDw8IGYoMCwyLDEsMikgPDxlbmRsOwoJcmV0dXJuIDA7Cn0=