import java.util.Scanner;

abstract class Bird {
    abstract String fly();
    abstract String sound();
}

class Eagle extends Bird {
    @Override
    String fly() {
        return "The eagle soars high in the sky";
    }
    @Override
    String sound() {
        return "The eagle screeches";
    }
}

class Hawk extends Bird {
    @Override
    String fly() {
        return "The hawk glides smoothly through the air";
    }
    @Override
    String sound() {
        return "The hawk shrieks";
    }
}

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String type = sc.nextLine().trim();

        Bird b;

        if (type.equals("Eagle")) {
            b = new Eagle();
        } else if (type.equals("Hawk")) {
            b = new Hawk();
        } else {
            System.out.println("Invalid input");
            return; // ✅ stop program safely
        }

        System.out.println(b.fly());
        System.out.println(b.sound());
    }
}
