#include <stdio.h> int main () { char c; int x; scanf("%d",&x); c = x >=90 ? 'A':(x >=60 ? 'B':'C'); printf("%c",c); return 0; }