#include <bits/stdc++.h>
using namespace std;
long long a,b,c;
int main()
{
cin>>a>>b>>c;
bool kt=false;
if (sqr(a)==sqr(b)+sqr(c)) kt=true;
if (sqr(b)==sqr(a)+sqr(c)) kt=true;
if (sqr(c)==sqr(a)+sqr(b)) kt=true;
if (kt==true) cout<<"Phai";
else cout<<"Ko phai";
}