Language: Java

        import java.util.Scanner;
         
        public class main {
          public static void main(String args[]){
         
            Scanner scan = new Scanner(System.in);
            int val = scan.nextInt();
            if(val>99){
            for(i=2;i>=0;i--){
        		x=val%10;
        		a[i]=x;
        		val=val/10;
            }
                  if(a[2]==2 ||a[2]==4 || a[2]==5 || a[2]==7 || a[2]==9){
        			System.out.println("hon");
                  }else if(a[2]==0 ||a[2]==1 || a[2]==6 ||a[2]==8){
        			System.out.println("pon");
                  }else{
                    System.out.println("bon");
                  }
            }else if(val>9){
               for(i=1;i>=0;i--){
        		x=val%10;
        		a[i]=x;
        		val=val/10;
            }
                  if(a[1]==2 ||a[1]==4 || a[1]==5 || a[1]==7 || a[1]==9){
        			System.out.println("hon");
                  }else if(a[1]==0 ||a[1]==1 || a[1]==6 ||a[1]==8){
        			System.out.println("pon");
                  }else{
                    System.out.println("bon");
                  }
            }else{
              if(val==2 ||val==4 || val==5 || val==7 || val==9){
        			System.out.println("hon");
                  }else if(val==0 ||val==1 || val==6 || val==8){
        			System.out.println("pon");
                  }else{
                    System.out.println("bon");
                  }
            }
          }
        }

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
        public class main {
               ^
Main.java:9: error: cannot find symbol
            for(i=2;i>=0;i--){
                ^
  symbol:   variable i
  location: class main
Main.java:9: error: cannot find symbol
            for(i=2;i>=0;i--){
                    ^
  symbol:   variable i
  location: class main
Main.java:9: error: cannot find symbol
            for(i=2;i>=0;i--){
                         ^
  symbol:   variable i
  location: class main
Main.java:10: error: cannot find symbol
        		x=val%10;
        		^
  symbol:   variable x
  location: class main
Main.java:11: error: cannot find symbol
        		a[i]=x;
        		^
  symbol:   variable a
  location: class main
Main.java:11: error: cannot find symbol
        		a[i]=x;
        		  ^
  symbol:   variable i
  location: class main
Main.java:11: error: cannot find symbol
        		a[i]=x;
        		     ^
  symbol:   variable x
  location: class main
Main.java:14: error: cannot find symbol
                  if(a[2]==2 ||a[2]==4 || a[2]==5 || a[2]==7 || a[2]==9){
                     ^
  symbol:   variable a
  location: class main
Main.java:14: error: cannot find symbol
                  if(a[2]==2 ||a[2]==4 || a[2]==5 || a[2]==7 || a[2]==9){
                               ^
  symbol:   variable a
  location: class main
Main.java:14: error: cannot find symbol
                  if(a[2]==2 ||a[2]==4 || a[2]==5 || a[2]==7 || a[2]==9){
                                          ^
  symbol:   variable a
  location: class main
Main.java:14: error: cannot find symbol
                  if(a[2]==2 ||a[2]==4 || a[2]==5 || a[2]==7 || a[2]==9){
                                                     ^
  symbol:   variable a
  location: class main
Main.java:14: error: cannot find symbol
                  if(a[2]==2 ||a[2]==4 || a[2]==5 || a[2]==7 || a[2]==9){
                                                                ^
  symbol:   variable a
  location: class main
Main.java:16: error: cannot find symbol
                  }else if(a[2]==0 ||a[2]==1 || a[2]==6 ||a[2]==8){
                           ^
  symbol:   variable a
  location: class main
Main.java:16: error: cannot find symbol
                  }else if(a[2]==0 ||a[2]==1 || a[2]==6 ||a[2]==8){
                                     ^
  symbol:   variable a
  location: class main
Main.java:16: error: cannot find symbol
                  }else if(a[2]==0 ||a[2]==1 || a[2]==6 ||a[2]==8){
                                                ^
  symbol:   variable a
  location: class main
Main.java:16: error: cannot find symbol
                  }else if(a[2]==0 ||a[2]==1 || a[2]==6 ||a[2]==8){
                                                          ^
  symbol:   variable a
  location: class main
Main.java:22: error: cannot find symbol
               for(i=1;i>=0;i--){
                   ^
  symbol:   variable i
  location: class main
Main.java:22: error: cannot find symbol
               for(i=1;i>=0;i--){
                       ^
  symbol:   variable i
  location: class main
Main.java:22: error: cannot find symbol
               for(i=1;i>=0;i--){
                            ^
  symbol:   variable i
  location: class main
Main.java:23: error: cannot find symbol
        		x=val%10;
        		^
  symbol:   variable x
  location: class main
Main.java:24: error: cannot find symbol
        		a[i]=x;
        		^
  symbol:   variable a
  location: class main
Main.java:24: error: cannot find symbol
        		a[i]=x;
        		  ^
  symbol:   variable i
  location: class main
Main.java:24: error: cannot find symbol
        		a[i]=x;
        		     ^
  symbol:   variable x
  location: class main
Main.java:27: error: cannot find symbol
                  if(a[1]==2 ||a[1]==4 || a[1]==5 || a[1]==7 || a[1]==9){
                     ^
  symbol:   variable a
  location: class main
Main.java:27: error: cannot find symbol
                  if(a[1]==2 ||a[1]==4 || a[1]==5 || a[1]==7 || a[1]==9){
                               ^
  symbol:   variable a
  location: class main
Main.java:27: error: cannot find symbol
                  if(a[1]==2 ||a[1]==4 || a[1]==5 || a[1]==7 || a[1]==9){
                                          ^
  symbol:   variable a
  location: class main
Main.java:27: error: cannot find symbol
                  if(a[1]==2 ||a[1]==4 || a[1]==5 || a[1]==7 || a[1]==9){
                                                     ^
  symbol:   variable a
  location: class main
Main.java:27: error: cannot find symbol
                  if(a[1]==2 ||a[1]==4 || a[1]==5 || a[1]==7 || a[1]==9){
                                                                ^
  symbol:   variable a
  location: class main
Main.java:29: error: cannot find symbol
                  }else if(a[1]==0 ||a[1]==1 || a[1]==6 ||a[1]==8){
                           ^
  symbol:   variable a
  location: class main
Main.java:29: error: cannot find symbol
                  }else if(a[1]==0 ||a[1]==1 || a[1]==6 ||a[1]==8){
                                     ^
  symbol:   variable a
  location: class main
Main.java:29: error: cannot find symbol
                  }else if(a[1]==0 ||a[1]==1 || a[1]==6 ||a[1]==8){
                                                ^
  symbol:   variable a
  location: class main
Main.java:29: error: cannot find symbol
                  }else if(a[1]==0 ||a[1]==1 || a[1]==6 ||a[1]==8){
                                                          ^
  symbol:   variable a
  location: class main
33 errors