#include"bits/stdc++.h" #include<boost/multi_array.hpp> #include<boost/optional.hpp> #include<boost/range/irange.hpp> #include<boost/range/algorithm.hpp> #include<boost/range/adaptors.hpp>

namespace adaptor = boost::adaptors;

void Main()
{
	int N;
    cin >> N;
    if (N%10 == 3){
    	cout << bon << endl;
    }else if (N%10 == 0){ 
    	cout << pon << endl;
    }else if (N%10 == 1){ 
    	cout << pon << endl;
    }else if (N%10 == 6){ 
    	cout << pon << endl;
    }else if (N%10 == 8){ 
    	cout << pon << endl;
    }else{
    	cout << hon << endl;
    }
}

int main()
{
	std::cin.tie(nullptr);
	std::ios_base::sync_with_stdio(false);
	std::cout << std::fixed << std::setprecision(15);
	Main();
}