// editor5
import java.util.*;

class LibraryMember {
    String M;
    int id;
    int b;
    
    LibraryMember(String M, int id, int b) {
        this.M = M;
        this.id = id;
        this.b = b;
    }
 
    String status(int b) {
        if(b>=10) return "Active Reader";
        else if(b<10 && b>=5) return "Moderate Reader";
        else if(b<5 && b>=1) return "Casual Reader";
        else if(b==0) return "Inactive";
        return "Invalid input";
    }
    
    void display(String M, int id, int b) {
        System.out.println("Member Name: " + M);
        System.out.println("Membership ID: " + id);
        System.out.println("Books Borrowed: " + b);
        System.out.println("Status: " + status(b));
    }
}

class Main {
    
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        
        String M = sc.nextLine();
        
        if(!sc.hasNextInt()){
            System.out.println("Invalid Input");
            return;
        }
        int id = sc.nextInt();
        int b = sc.nextInt();
        
        LibraryMember lm = new LibraryMember(M, id, b);
        lm.display();
        
/*        if(id<10000 || id>99999 || M<1 || M>50 || b>50){
            System.out.println("Invalid Input");
            return;
        }*/

    }
}