import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String n = br.readLine();
        int l = n.charAt(n.length()-1) - '0';
        if(l == 3) System.out.println("bon");
        else if(l == 0 || l == 1 || l == 6 || l== 8) System.out.println("pon");
        else System.out.println("hon");
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String n = br.readLine();
        int l = n.charAt(n.length()-1) - '0';
        if(l == 3) System.out.println("bon");
        else if(l == 0 || l == 1 || l == 6 || l== 8) System.out.println("pon");
        else System.out.println("hon");
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String n = br.readLine();
        int l = n.charAt(n.length()-1) - '0';
        if(l == 3) System.out.println("bon");
        else if(l == 0 || l == 1 || l == 6 || l== 8) System.out.println("pon");
        else System.out.println("hon");
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String n = br.readLine();
        int l = n.charAt(n.length()-1) - '0';
        if(l == 3) System.out.println("bon");
        else if(l == 0 || l == 1 || l == 6 || l== 8) System.out.println("pon");
        else System.out.println("hon");
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String n = br.readLine(); n br.readLine() br.readLine br int l = n.charAt(n.length()-1) - '0'; l n.charAt(n.length()-1) - '0' n.charAt(n.length()-1) n.charAt n n.length()-1 n.length() n.length n 1 '0' if(l == 3) System.out.println("bon");
        else if(l == 0 || l == 1 || l == 6 || l== 8) System.out.println("pon");
        else System.out.println("hon"); l == 3 l 3 System.out.println("bon") System.out.println System.out System System.out "bon" if(l == 0 || l == 1 || l == 6 || l== 8) System.out.println("pon");
        else System.out.println("hon"); l == 0 || l == 1 || l == 6 || l== 8 l == 6 l == 0 || l == 1 || l == 6 || l== 8 l == 0 l 0 l == 1 l 1 l == 6 l 6 l== 8 l 8 System.out.println("pon") System.out.println System.out System System.out "pon" System.out.println("hon") System.out.println System.out System System.out "hon" String[] args args public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String n = br.readLine();
        int l = n.charAt(n.length()-1) - '0';
        if(l == 3) System.out.println("bon");
        else if(l == 0 || l == 1 || l == 6 || l== 8) System.out.println("pon");
        else System.out.println("hon");
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String n = br.readLine();
        int l = n.charAt(n.length()-1) - '0';
        if(l == 3) System.out.println("bon");
        else if(l == 0 || l == 1 || l == 6 || l== 8) System.out.println("pon");
        else System.out.println("hon");
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String n = br.readLine();
        int l = n.charAt(n.length()-1) - '0';
        if(l == 3) System.out.println("bon");
        else if(l == 0 || l == 1 || l == 6 || l== 8) System.out.println("pon");
        else System.out.println("hon");
    }
}
