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