import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = Integer.parseInt(sc.next()); 
    int B = A % 10;
    if(B==3){
      System.out.println("bon");
    }else if(B==0 || B==1 || B==6 || B==8){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  }
}
 import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = Integer.parseInt(sc.next()); 
    int B = A % 10;
    if(B==3){
      System.out.println("bon");
    }else if(B==0 || B==1 || B==6 || B==8){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = Integer.parseInt(sc.next()); 
    int B = A % 10;
    if(B==3){
      System.out.println("bon");
    }else if(B==0 || B==1 || B==6 || B==8){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    int A = Integer.parseInt(sc.next()); 
    int B = A % 10;
    if(B==3){
      System.out.println("bon");
    }else if(B==0 || B==1 || B==6 || B==8){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int A = Integer.parseInt(sc.next()); A Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int B = A % 10; B A % 10 A 10 if(B==3){
      System.out.println("bon");
    }else if(B==0 || B==1 || B==6 || B==8){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    } B==3 B 3 {
      System.out.println("bon");
    } System.out.println("bon") System.out.println System.out System System.out "bon" if(B==0 || B==1 || B==6 || B==8){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    } B==0 || B==1 || B==6 || B==8 B==6 B==0 || B==1 || B==6 || B==8 B==0 B 0 B==1 B 1 B==6 B 6 B==8 B 8 {
      System.out.println("pon");
    } System.out.println("pon") System.out.println System.out System System.out "pon" {
      System.out.println("hon");
    } 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){
    Scanner sc = new Scanner(System.in);
    int A = Integer.parseInt(sc.next()); 
    int B = A % 10;
    if(B==3){
      System.out.println("bon");
    }else if(B==0 || B==1 || B==6 || B==8){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = Integer.parseInt(sc.next()); 
    int B = A % 10;
    if(B==3){
      System.out.println("bon");
    }else if(B==0 || B==1 || B==6 || B==8){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int A = Integer.parseInt(sc.next()); 
    int B = A % 10;
    if(B==3){
      System.out.println("bon");
    }else if(B==0 || B==1 || B==6 || B==8){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  }
}

