/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public final class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int rem = n%10;
		if(rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5){
			System.out.println("hon");
		}
		else if(rem == 0 || rem == 1 || rem == 6 || rem == 8){
			System.out.println("pon");
		}
		else{
			System.out.println("bon");
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java public final class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int rem = n%10;
		if(rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5){
			System.out.println("hon");
		}
		else if(rem == 0 || rem == 1 || rem == 6 || rem == 8){
			System.out.println("pon");
		}
		else{
			System.out.println("bon");
		}
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int rem = n%10;
		if(rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5){
			System.out.println("hon");
		}
		else if(rem == 0 || rem == 1 || rem == 6 || rem == 8){
			System.out.println("pon");
		}
		else{
			System.out.println("bon");
		}
	} main {
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int rem = n%10;
		if(rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5){
			System.out.println("hon");
		}
		else if(rem == 0 || rem == 1 || rem == 6 || rem == 8){
			System.out.println("pon");
		}
		else{
			System.out.println("bon");
		}
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int n = s.nextInt(); n s.nextInt() s.nextInt s int rem = n%10; rem n%10 n 10 if(rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5){
			System.out.println("hon");
		}
		else if(rem == 0 || rem == 1 || rem == 6 || rem == 8){
			System.out.println("pon");
		}
		else{
			System.out.println("bon");
		} rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5 rem == 9 rem == 7 rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5 rem == 2 rem 2 rem == 4 rem 4 rem == 7 rem 7 rem == 9 rem 9 rem ==5 rem 5 {
			System.out.println("hon");
		} System.out.println("hon") System.out.println System.out System System.out "hon" if(rem == 0 || rem == 1 || rem == 6 || rem == 8){
			System.out.println("pon");
		}
		else{
			System.out.println("bon");
		} rem == 0 || rem == 1 || rem == 6 || rem == 8 rem == 6 rem == 0 || rem == 1 || rem == 6 || rem == 8 rem == 0 rem 0 rem == 1 rem 1 rem == 6 rem 6 rem == 8 rem 8 {
			System.out.println("pon");
		} System.out.println("pon") System.out.println System.out System System.out "pon" {
			System.out.println("bon");
		} System.out.println("bon") System.out.println System.out System System.out "bon" String[] args args public final class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int rem = n%10;
		if(rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5){
			System.out.println("hon");
		}
		else if(rem == 0 || rem == 1 || rem == 6 || rem == 8){
			System.out.println("pon");
		}
		else{
			System.out.println("bon");
		}
	}
} public final class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int rem = n%10;
		if(rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5){
			System.out.println("hon");
		}
		else if(rem == 0 || rem == 1 || rem == 6 || rem == 8){
			System.out.println("pon");
		}
		else{
			System.out.println("bon");
		}
	}
} Main
/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public final class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		Scanner s = new Scanner(System.in);
		int n = s.nextInt();
		int rem = n%10;
		if(rem == 2 || rem == 4 || rem == 7 || rem == 9 || rem ==5){
			System.out.println("hon");
		}
		else if(rem == 0 || rem == 1 || rem == 6 || rem == 8){
			System.out.println("pon");
		}
		else{
			System.out.println("bon");
		}
	}
}