import java.util.*;
public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();

    if (s.charAt(s.length()-1)=='3') {
      System.out.println("bon");
    }else if(s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='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);
    String s = sc.next();

    if (s.charAt(s.length()-1)=='3') {
      System.out.println("bon");
    }else if(s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='8'){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();

    if (s.charAt(s.length()-1)=='3') {
      System.out.println("bon");
    }else if(s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='8'){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String s = sc.next();

    if (s.charAt(s.length()-1)=='3') {
      System.out.println("bon");
    }else if(s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='8'){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc if (s.charAt(s.length()-1)=='3') {
      System.out.println("bon");
    }else if(s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='8'){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    } s.charAt(s.length()-1)=='3' s.charAt(s.length()-1) s.charAt s s.length()-1 s.length() s.length s 1 '3' {
      System.out.println("bon");
    } System.out.println("bon") System.out.println System.out System System.out "bon" if(s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='8'){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    } s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='8' s.charAt(s.length()-1)=='6' s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='8' s.charAt(s.length()-1)=='0' s.charAt(s.length()-1) s.charAt s s.length()-1 s.length() s.length s 1 '0' s.charAt(s.length()-1)=='1' s.charAt(s.length()-1) s.charAt s s.length()-1 s.length() s.length s 1 '1' s.charAt(s.length()-1)=='6' s.charAt(s.length()-1) s.charAt s s.length()-1 s.length() s.length s 1 '6' s.charAt(s.length()-1)=='8' s.charAt(s.length()-1) s.charAt s s.length()-1 s.length() s.length s 1 '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);
    String s = sc.next();

    if (s.charAt(s.length()-1)=='3') {
      System.out.println("bon");
    }else if(s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='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);
    String s = sc.next();

    if (s.charAt(s.length()-1)=='3') {
      System.out.println("bon");
    }else if(s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='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);
    String s = sc.next();

    if (s.charAt(s.length()-1)=='3') {
      System.out.println("bon");
    }else if(s.charAt(s.length()-1)=='0'||s.charAt(s.length()-1)=='1'||s.charAt(s.length()-1)=='6'||s.charAt(s.length()-1)=='8'){
      System.out.println("pon");
    }else{
      System.out.println("hon");
    }
  }
}
