#include <iostream>
using namespace std;

int main() {
    // Display your name and ID
    cout << "Name: MUHAMMAD ADIL" << endl;
    cout << "ID: BC230400715" << endl;

    // Store your numeric part of VUID (ID) as an integer
    long long studentID = 230400715;

    // Step 1: Extract the year
    studentID /= 100;  // Remove the last two digits
    int year = studentID % 10000;  // Extract the next four digits as the year

    // Step 2: Check if the year is a leap year
    bool isLeapYear;
    if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
        cout << year << " is a leap year." << endl;
        isLeapYear = true;
    } else {
        cout << year << " is not a leap year." << endl;
        isLeapYear = false;
    }

    // Step 3: Get month input from user
    int month;
    cout << "Enter month (1-12): ";
    cin >> month;

    // Step 4: Determine the number of days in the month
    int days;
    switch (month) {
        case 1: case 3: case 5: case 7: case 8: case 10: case 12:
            days = 31;
            break;
        case 4: case 6: case 9: case 11:
            days = 30;
            break;
        case 2:
            days = isLeapYear ? 29 : 28;
            break;
        default:
            cout << "Invalid month!" << endl;
            return 1; // Exit if the month is invalid
    }

    // Output the result
    cout << "Number of days in month " << month << " is: " << days << endl;

    return 0;
}

