import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String end = n.substring(n.length()-1);
    int num = Integer.parseInt(end);
    
    switch(num){
      case 3:
        System.out.println("bon");
        break;
      case 0:
      case 1:
      case 6:
      case 8:
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String end = n.substring(n.length()-1);
    int num = Integer.parseInt(end);
    
    switch(num){
      case 3:
        System.out.println("bon");
        break;
      case 0:
      case 1:
      case 6:
      case 8:
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String end = n.substring(n.length()-1);
    int num = Integer.parseInt(end);
    
    switch(num){
      case 3:
        System.out.println("bon");
        break;
      case 0:
      case 1:
      case 6:
      case 8:
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String end = n.substring(n.length()-1);
    int num = Integer.parseInt(end);
    
    switch(num){
      case 3:
        System.out.println("bon");
        break;
      case 0:
      case 1:
      case 6:
      case 8:
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String n = sc.next(); n sc.next() sc.next sc String end = n.substring(n.length()-1); end n.substring(n.length()-1) n.substring n n.length()-1 n.length() n.length n 1 int num = Integer.parseInt(end); num Integer.parseInt(end) Integer.parseInt Integer end switch(num){
      case 3:
        System.out.println("bon");
        break;
      case 0:
      case 1:
      case 6:
      case 8:
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
    } num case 3: 3 case 3: System.out.println("bon") System.out.println System.out System System.out "bon" break; case 0: 0 case 0: case 1: 1 case 1: case 6: 6 case 6: case 8: 8 case 8: System.out.println("pon") System.out.println System.out System System.out "pon" break; default: default: 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);
    String n = sc.next();
    String end = n.substring(n.length()-1);
    int num = Integer.parseInt(end);
    
    switch(num){
      case 3:
        System.out.println("bon");
        break;
      case 0:
      case 1:
      case 6:
      case 8:
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
    }
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String end = n.substring(n.length()-1);
    int num = Integer.parseInt(end);
    
    switch(num){
      case 3:
        System.out.println("bon");
        break;
      case 0:
      case 1:
      case 6:
      case 8:
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
    }
  }
} Main
import java.util.*;
 
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String n = sc.next();
    String end = n.substring(n.length()-1);
    int num = Integer.parseInt(end);
    
    switch(num){
      case 3:
        System.out.println("bon");
        break;
      case 0:
      case 1:
      case 6:
      case 8:
        System.out.println("pon");
        break;
      default:
        System.out.println("hon");
    }
  }
}
