// editor2

import java.util.*;
abstract class Bird 
{
    public abstract void fly();
    public abstract void makeSound();
}
class Eagle extends Bird 
{
    @Override
    public void fly() 
    {
        System.out.println("The eagle soars high in the sky");
    }
    @Override
    public void makeSound() 
    {
        System.out.println("The eagle screeches");
    }
}
class Hawk extends Bird 
{
    @Override
    public void fly() 
    {
        System.out.println("The hawk glides smoothly through the air");
    }
    @Override
    public void makeSound() 
    {
        System.out.println("The hawk shrieks");
    }
}
public class Main 
{
    public static void main(String[] args) 
    {
        Scanner h = new Scanner(System.in);
        String birdType = h.nextLine().trim();
        Bird bird = null;
        if (birdType.equalsIgnoreCase("Eagle")) 
        {
            bird = new Eagle();
        } 
        else if (birdType.equalsIgnoreCase("Hawk")) 
        {
            bird = new Hawk();
        }
        if (bird != null) 
        {
            bird.fly();
            bird.makeSound();
        } 
        else 
        {
            System.out.println("Invalid input");
}
}
}
