#include <inttypes.h>

#include <stdlib.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <lfortran_intrinsics.h>




// Implementations
int main(int argc, char* argv[])
{
    _lpython_set_argv(argc, argv);
    int32_t marks;
    int32_t out;
    marks = 81;
    if (91 <= marks <= 100) {
        out = 0;
        printf("%s\n","Excellent!");
    }
    else if (81 <= marks <= 90) {
        out = 1;
        printf("%s\n","Very good!");
    }
    else if (71 <= marks <= 80) {
        out = 2;
        printf("%s\n","Well done!");
    }
    else if (61 <= marks <= 70) {
        out = 3;
        printf("%s\n","Not bad!");
    }
    else if (41 <= marks <= 60) {
        out = 4;
        printf("%s\n","You passed!");
    }
    else if (marks <= 40) {
        out = 5;
        printf("%s\n","Better try again!");
    }
    else {
        out = 6;
        printf("%s\n","Invalid marks");
    }
    printf("%s%s%d\n", "Your marks are ", " ", marks);
    if (out != 1) {
        fprintf(stderr, "ERROR STOP");
        exit(1);
    }
    if (91 <= marks <= 100) {
        printf("%s\n","Excellent!");
    }
    else if (81 <= marks <= 90) {
        printf("%s\n","Very good!");
    }
    else if (71 <= marks <= 80) {
        printf("%s\n","Well done!");
    }
    else if (61 <= marks <= 70) {
        printf("%s\n","Not bad!");
    }
    else if (41 <= marks <= 60) {
        printf("%s\n","You passed!");
    }
    else if (marks <= 40) {
        printf("%s\n","Better try again!");
    }
    else {
        printf("%s\n","Invalid marks");
    }
    printf("%s%s%d\n", "Your marks are ", " ", marks);
    if (91 <= marks <= 100) {
        printf("%s\n","Excellent!");
    }
    else if (81 <= marks <= 90) {
        printf("%s\n","Very good!");
    }
    else if (71 <= marks <= 80) {
        printf("%s\n","Well done!");
    }
    else if (61 <= marks <= 70) {
        printf("%s\n","Not bad!");
    }
    else if (41 <= marks <= 60) {
        printf("%s\n","You passed!");
    }
    else if (marks <= 40) {
        printf("%s\n","Better try again!");
    }
    else {
        printf("%s\n","Invalid marks");
    }
    printf("%s%s%d\n", "Your marks are ", " ", marks);
    return 0;
}
