#include <stdio.h>
#include <string.h>

int main() {
    char month[4];
    printf("Enter month (eg: jan, feb, etc): ");
    scanf("%s", month);
    if (strcmp(month, "jan") == 0) {
        printf("1");
    } else if (strcmp(month, "feb") == 0) {
        printf("2");
    } else if (strcmp(month, "mar") == 0) {
        printf("3");
    } else if (strcmp(month, "apr") == 0) {
        printf("4");
    } else if (strcmp(month, "may") == 0) {
        printf("5");
    } else if (strcmp(month, "jun") == 0) {
        printf("6");
    } else if (strcmp(month, "jul") == 0) {
        printf("7");
    } else if (strcmp(month, "aug") == 0) {
        printf("8");
    } else if (strcmp(month, "sep") == 0) {
        printf("9");
    } else if (strcmp(month, "oct") == 0) {
        printf("10");
    } else if (strcmp(month, "nov") == 0) {
        printf("11");
    } else if (strcmp(month, "dec") == 0) {
        printf("12");
    } else {
        printf("Invalid month entered.");
    }
    return 0;
}