public class SayHello {
    public static void main(String[] args) {
      In userInput = new In();
      System.out.println("Who am I saying hello to?");
      String name = userInput.readString();
      System.out.println("How loud should I be?");
      int volume  = userInput.readInt();

      if (volume <= 1) {
         System.out.println("hello " + name);
      } else if (volume == 2) {
         System.out.println("Hello, " + name);
      } else if (volume == 3) {
         System.out.println("HELLO, " + name);
      } else {
         System.out.print("HELLO, " + name.toUpperCase());
         for (int i = 0; i < volume; i++) {
               System.out.print("!");
         }
         System.out.println();
      }
   }
}