#include <stdio.h>
int main() {
int a;
scanf("%d", &a);
if ((a % 30) == 0) {
printf("A");
}
else if ((a % 6) == 0 || (a % 10) == 0 || (a % 15) == 0) {
printf("B");
}
else if ((a % 2) == 0|| (a % 3) == 0 || (a % 5) == 0) {
printf("C");
}
else {
printf("D");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: