import java.util.Scanner;

public class ContentAccess {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int age = sc.nextInt();

        // Check constraints
        if (age < 0 || age > 120) {
            System.out.println("Invalid input");
        } else if (age >= 21) {
            System.out.println("Full access granted");
        } else if (age >= 18) {  // covers 18–20
            System.out.println("Limited access granted");
        } else {
            System.out.println("Access denied");
        }

        sc.close();
    }
}