import java.util.Scanner;

public class Main{

public static void main(String[] args) {
  Scanner scanner = new Scanner(System.in);
  String parm = scanner.next();
  
  int i = Integer.parseInt(parm)%10;
  
  if (i == 3) {
    System.out.print("bon");
  } else if(i == 0 || i == 1 || i == 6 || i == 8) {
    System.out.print("pon");
  } else {
    System.out.print("hon");
  }
}
}

   import java.util.Scanner; Scanner java.util public class Main{

public static void main(String[] args) {
  Scanner scanner = new Scanner(System.in);
  String parm = scanner.next();
  
  int i = Integer.parseInt(parm)%10;
  
  if (i == 3) {
    System.out.print("bon");
  } else if(i == 0 || i == 1 || i == 6 || i == 8) {
    System.out.print("pon");
  } else {
    System.out.print("hon");
  }
}
} Main public static void main(String[] args) {
  Scanner scanner = new Scanner(System.in);
  String parm = scanner.next();
  
  int i = Integer.parseInt(parm)%10;
  
  if (i == 3) {
    System.out.print("bon");
  } else if(i == 0 || i == 1 || i == 6 || i == 8) {
    System.out.print("pon");
  } else {
    System.out.print("hon");
  }
} main {
  Scanner scanner = new Scanner(System.in);
  String parm = scanner.next();
  
  int i = Integer.parseInt(parm)%10;
  
  if (i == 3) {
    System.out.print("bon");
  } else if(i == 0 || i == 1 || i == 6 || i == 8) {
    System.out.print("pon");
  } else {
    System.out.print("hon");
  }
} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String parm = scanner.next(); parm scanner.next() scanner.next scanner int i = Integer.parseInt(parm)%10; i Integer.parseInt(parm)%10 Integer.parseInt(parm) Integer.parseInt Integer parm 10 if (i == 3) {
    System.out.print("bon");
  } else if(i == 0 || i == 1 || i == 6 || i == 8) {
    System.out.print("pon");
  } else {
    System.out.print("hon");
  } i == 3 i 3 {
    System.out.print("bon");
  } System.out.print("bon") System.out.print System.out System System.out "bon" if(i == 0 || i == 1 || i == 6 || i == 8) {
    System.out.print("pon");
  } else {
    System.out.print("hon");
  } i == 0 || i == 1 || i == 6 || i == 8 i == 6 i == 0 || i == 1 || i == 6 || i == 8 i == 0 i 0 i == 1 i 1 i == 6 i 6 i == 8 i 8 {
    System.out.print("pon");
  } System.out.print("pon") System.out.print System.out System System.out "pon" {
    System.out.print("hon");
  } System.out.print("hon") System.out.print System.out System System.out "hon" String[] args args public class Main{

public static void main(String[] args) {
  Scanner scanner = new Scanner(System.in);
  String parm = scanner.next();
  
  int i = Integer.parseInt(parm)%10;
  
  if (i == 3) {
    System.out.print("bon");
  } else if(i == 0 || i == 1 || i == 6 || i == 8) {
    System.out.print("pon");
  } else {
    System.out.print("hon");
  }
}
} public class Main{

public static void main(String[] args) {
  Scanner scanner = new Scanner(System.in);
  String parm = scanner.next();
  
  int i = Integer.parseInt(parm)%10;
  
  if (i == 3) {
    System.out.print("bon");
  } else if(i == 0 || i == 1 || i == 6 || i == 8) {
    System.out.print("pon");
  } else {
    System.out.print("hon");
  }
}
} Main
import java.util.Scanner;

public class Main{

public static void main(String[] args) {
  Scanner scanner = new Scanner(System.in);
  String parm = scanner.next();
  
  int i = Integer.parseInt(parm)%10;
  
  if (i == 3) {
    System.out.print("bon");
  } else if(i == 0 || i == 1 || i == 6 || i == 8) {
    System.out.print("pon");
  } else {
    System.out.print("hon");
  }
}
}

  