import java.util.*;
 
public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      Integer N = Integer.parseInt(sc.next());
      
      String answer;
      int itinokurai = N % 10;
      if(itinokurai == 3){
        answer = "bon";
      }else if(itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8){
        answer = "pon";
      }else{
        answer = "hon";
      }
      System.out.println(answer);
    }
}
 import java.util.*; util.* java public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      Integer N = Integer.parseInt(sc.next());
      
      String answer;
      int itinokurai = N % 10;
      if(itinokurai == 3){
        answer = "bon";
      }else if(itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8){
        answer = "pon";
      }else{
        answer = "hon";
      }
      System.out.println(answer);
    }
} Main public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      Integer N = Integer.parseInt(sc.next());
      
      String answer;
      int itinokurai = N % 10;
      if(itinokurai == 3){
        answer = "bon";
      }else if(itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8){
        answer = "pon";
      }else{
        answer = "hon";
      }
      System.out.println(answer);
    } main {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      Integer N = Integer.parseInt(sc.next());
      
      String answer;
      int itinokurai = N % 10;
      if(itinokurai == 3){
        answer = "bon";
      }else if(itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8){
        answer = "pon";
      }else{
        answer = "hon";
      }
      System.out.println(answer);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer N = Integer.parseInt(sc.next()); N Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc String answer; answer int itinokurai = N % 10; itinokurai N % 10 N 10 if(itinokurai == 3){
        answer = "bon";
      }else if(itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8){
        answer = "pon";
      }else{
        answer = "hon";
      } itinokurai == 3 itinokurai 3 {
        answer = "bon";
      } answer = "bon" answer "bon" if(itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8){
        answer = "pon";
      }else{
        answer = "hon";
      } itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8 itinokurai == 6 itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8 itinokurai == 0 itinokurai 0 itinokurai == 1 itinokurai 1 itinokurai == 6 itinokurai 6 itinokurai == 8 itinokurai 8 {
        answer = "pon";
      } answer = "pon" answer "pon" {
        answer = "hon";
      } answer = "hon" answer "hon" System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      Integer N = Integer.parseInt(sc.next());
      
      String answer;
      int itinokurai = N % 10;
      if(itinokurai == 3){
        answer = "bon";
      }else if(itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8){
        answer = "pon";
      }else{
        answer = "hon";
      }
      System.out.println(answer);
    }
} public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      Integer N = Integer.parseInt(sc.next());
      
      String answer;
      int itinokurai = N % 10;
      if(itinokurai == 3){
        answer = "bon";
      }else if(itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8){
        answer = "pon";
      }else{
        answer = "hon";
      }
      System.out.println(answer);
    }
} Main
import java.util.*;
 
public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      Integer N = Integer.parseInt(sc.next());
      
      String answer;
      int itinokurai = N % 10;
      if(itinokurai == 3){
        answer = "bon";
      }else if(itinokurai == 0 || itinokurai == 1 || itinokurai == 6 || itinokurai == 8){
        answer = "pon";
      }else{
        answer = "hon";
      }
      System.out.println(answer);
    }
}

