#include<iostream>
using namespace std;
int main(){
    char a[3];
    int x=2;
    cin >> a;
    if(a[2]=='\n')x=1;
    else(a[1]=='\n')x=0;

    if(a[x]=='2' || a[x] == '4' || a[x] == '5' || a[x] == '7'|| a[x]=='9')    cout << "hon";
    else if(a[x]=='0' || a[x]== '1' || a[x] == '6' || a[x]== '8')    cout << "pon";
    else cout << "hon";
    return 0;
}