#include <stdio.h>
int main() {
int marks;
printf("Enter marks: ");
scanf("%d", &marks);
if (marks >= 80 && marks <= 100) {
printf("Grade: Distinction\n");
} else if (marks >= 60 && marks < 80) {
printf("Grade: First class\n");
} else if (marks >= 40 && marks < 60) {
printf("Grade: Second class\n");
} else if (marks < 40) {
printf("Grade: Fail\n");
} else {
printf("Invalid input\n");
}
return 0;
}