import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String pencilCount = sc.next();
        char oneDigits = pencilCount.charAt(pencilCount.length()-1);
        
        
        if(oneDigits=='2' || oneDigits=='4' || oneDigits=='5' || oneDigits=='7' || oneDigits=='9'){
            System.out.println("hon");
        }
        else if(oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8'){
            System.out.println("pon");
        }
        else{ // oneDigits=='3'
            System.out.println("bon");
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String pencilCount = sc.next();
        char oneDigits = pencilCount.charAt(pencilCount.length()-1);
        
        
        if(oneDigits=='2' || oneDigits=='4' || oneDigits=='5' || oneDigits=='7' || oneDigits=='9'){
            System.out.println("hon");
        }
        else if(oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8'){
            System.out.println("pon");
        }
        else{ // oneDigits=='3'
            System.out.println("bon");
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String pencilCount = sc.next();
        char oneDigits = pencilCount.charAt(pencilCount.length()-1);
        
        
        if(oneDigits=='2' || oneDigits=='4' || oneDigits=='5' || oneDigits=='7' || oneDigits=='9'){
            System.out.println("hon");
        }
        else if(oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8'){
            System.out.println("pon");
        }
        else{ // oneDigits=='3'
            System.out.println("bon");
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String pencilCount = sc.next();
        char oneDigits = pencilCount.charAt(pencilCount.length()-1);
        
        
        if(oneDigits=='2' || oneDigits=='4' || oneDigits=='5' || oneDigits=='7' || oneDigits=='9'){
            System.out.println("hon");
        }
        else if(oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8'){
            System.out.println("pon");
        }
        else{ // oneDigits=='3'
            System.out.println("bon");
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String pencilCount = sc.next(); pencilCount sc.next() sc.next sc char oneDigits = pencilCount.charAt(pencilCount.length()-1); oneDigits pencilCount.charAt(pencilCount.length()-1) pencilCount.charAt pencilCount pencilCount.length()-1 pencilCount.length() pencilCount.length pencilCount 1 if(oneDigits=='2' || oneDigits=='4' || oneDigits=='5' || oneDigits=='7' || oneDigits=='9'){
            System.out.println("hon");
        }
        else if(oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8'){
            System.out.println("pon");
        }
        else{ // oneDigits=='3'
            System.out.println("bon");
        } oneDigits=='2' || oneDigits=='4' || oneDigits=='5' || oneDigits=='7' || oneDigits=='9' oneDigits=='7' oneDigits=='5' oneDigits=='2' || oneDigits=='4' || oneDigits=='5' || oneDigits=='7' || oneDigits=='9' oneDigits=='2' oneDigits '2' oneDigits=='4' oneDigits '4' oneDigits=='5' oneDigits '5' oneDigits=='7' oneDigits '7' oneDigits=='9' oneDigits '9' {
            System.out.println("hon");
        } System.out.println("hon") System.out.println System.out System System.out "hon" if(oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8'){
            System.out.println("pon");
        }
        else{ // oneDigits=='3'
            System.out.println("bon");
        } oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8' oneDigits=='6' oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8' oneDigits=='0' oneDigits '0' oneDigits=='1' oneDigits '1' oneDigits=='6' oneDigits '6' oneDigits=='8' oneDigits '8' {
            System.out.println("pon");
        } System.out.println("pon") System.out.println System.out System System.out "pon" { // oneDigits=='3'
            System.out.println("bon");
        } System.out.println("bon") System.out.println System.out System System.out "bon" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String pencilCount = sc.next();
        char oneDigits = pencilCount.charAt(pencilCount.length()-1);
        
        
        if(oneDigits=='2' || oneDigits=='4' || oneDigits=='5' || oneDigits=='7' || oneDigits=='9'){
            System.out.println("hon");
        }
        else if(oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8'){
            System.out.println("pon");
        }
        else{ // oneDigits=='3'
            System.out.println("bon");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String pencilCount = sc.next();
        char oneDigits = pencilCount.charAt(pencilCount.length()-1);
        
        
        if(oneDigits=='2' || oneDigits=='4' || oneDigits=='5' || oneDigits=='7' || oneDigits=='9'){
            System.out.println("hon");
        }
        else if(oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8'){
            System.out.println("pon");
        }
        else{ // oneDigits=='3'
            System.out.println("bon");
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        String pencilCount = sc.next();
        char oneDigits = pencilCount.charAt(pencilCount.length()-1);
        
        
        if(oneDigits=='2' || oneDigits=='4' || oneDigits=='5' || oneDigits=='7' || oneDigits=='9'){
            System.out.println("hon");
        }
        else if(oneDigits=='0' || oneDigits=='1' || oneDigits=='6' || oneDigits=='8'){
            System.out.println("pon");
        }
        else{ // oneDigits=='3'
            System.out.println("bon");
        }
    }
}