import java.util.*;
abstract class Bird{
   abstract void fly();
    abstract void Sound();
}
class Eagle extends Bird{
    void fly(){
        System.out.println("The eagle soars high in the sky");}
        void Sound(){
        System.out.println("The eagle screeches");
    }
}
class Hawk extends Bird{
    void fly(){
        System.out.println("The hawk glides smoothly through the air");}
        void Sound(){
        System.out.println("The hawk shrieks");
    }
}


class Main{
    public static void main(String args[]){
        Scanner sc=new Scanner(System.in);
        String str=sc.nextLine();
        if(str.isDigit){
            System.out.println("Invalid input");
        }
        else{
        if(str.equals("Eagle")||str.equals("Hawk")){
            Bird obj=null; 
            if(str.equals("Eagle")){
                obj=new Eagle();
                obj.fly();
                obj.Sound();
            }
            if(str.equals("Hawk")){
                obj=new Hawk();
                obj.fly();
                obj.Sound();
            }
        }
        else{
            System.out.println("Invalid input");
        }
    }
    }
}

