import java.util.*;

public class Main {
  public static void main(String[] args) {
    Main main = new Main();
    main.solve();
    main.show();
  }

  int n;
  String[] book = new String[] {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"};
  String ans;

  public Main() {
    Scanner sc = new Scanner(System.in);
    try {
      n = sc.nextInt();
    } finally {
      sc.close();
    }
  }
  
  void solve() {
    ans = book[n % 10];
  }

  void show() {
    System.out.println(ans);
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Main main = new Main();
    main.solve();
    main.show();
  }

  int n;
  String[] book = new String[] {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"};
  String ans;

  public Main() {
    Scanner sc = new Scanner(System.in);
    try {
      n = sc.nextInt();
    } finally {
      sc.close();
    }
  }
  
  void solve() {
    ans = book[n % 10];
  }

  void show() {
    System.out.println(ans);
  }
} Main int n; n String[] book = new String[] {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"}; book new String[] {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"} String ans; ans public static void main(String[] args) {
    Main main = new Main();
    main.solve();
    main.show();
  } main {
    Main main = new Main();
    main.solve();
    main.show();
  } Main main = new Main(); main new Main() main.solve() main.solve main main.show() main.show main String[] args args public Main() {
    Scanner sc = new Scanner(System.in);
    try {
      n = sc.nextInt();
    } finally {
      sc.close();
    }
  } Main {
    Scanner sc = new Scanner(System.in);
    try {
      n = sc.nextInt();
    } finally {
      sc.close();
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) try {
      n = sc.nextInt();
    } finally {
      sc.close();
    } {
      sc.close();
    } sc.close() sc.close sc {
      n = sc.nextInt();
    } n = sc.nextInt() n sc.nextInt() sc.nextInt sc void solve() {
    ans = book[n % 10];
  } solve {
    ans = book[n % 10];
  } ans = book[n % 10] ans book[n % 10] book n % 10 n 10 void show() {
    System.out.println(ans);
  } show {
    System.out.println(ans);
  } System.out.println(ans) System.out.println System.out System System.out ans public class Main {
  public static void main(String[] args) {
    Main main = new Main();
    main.solve();
    main.show();
  }

  int n;
  String[] book = new String[] {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"};
  String ans;

  public Main() {
    Scanner sc = new Scanner(System.in);
    try {
      n = sc.nextInt();
    } finally {
      sc.close();
    }
  }
  
  void solve() {
    ans = book[n % 10];
  }

  void show() {
    System.out.println(ans);
  }
} public class Main {
  public static void main(String[] args) {
    Main main = new Main();
    main.solve();
    main.show();
  }

  int n;
  String[] book = new String[] {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"};
  String ans;

  public Main() {
    Scanner sc = new Scanner(System.in);
    try {
      n = sc.nextInt();
    } finally {
      sc.close();
    }
  }
  
  void solve() {
    ans = book[n % 10];
  }

  void show() {
    System.out.println(ans);
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Main main = new Main();
    main.solve();
    main.show();
  }

  int n;
  String[] book = new String[] {"pon", "pon", "hon", "bon", "hon", "hon", "pon", "hon", "pon", "hon"};
  String ans;

  public Main() {
    Scanner sc = new Scanner(System.in);
    try {
      n = sc.nextInt();
    } finally {
      sc.close();
    }
  }
  
  void solve() {
    ans = book[n % 10];
  }

  void show() {
    System.out.println(ans);
  }
}
