#include<bits/stdc++.h>
using namespace std;
int main(){
char s; cin >> s;
if(s >= 48 && s <= 57){
cout << "IS DIGIT";
}else if(s >= 65 && s <= 90){
cout << "ALPHA\nIS CAPITAL";
}else{
cout << "ALPHA\nIS SMALL";
}
return 0;
}
I2luY2x1ZGU8Yml0cy9zdGRjKysuaD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCl7CgljaGFyIHM7CWNpbiA+PiBzOwoJaWYocyA+PSA0OCAmJiBzIDw9IDU3KXsKCQljb3V0IDw8ICJJUyBESUdJVCI7Cgl9ZWxzZSBpZihzID49IDY1ICYmIHMgPD0gOTApewoJCWNvdXQgPDwgIkFMUEhBXG5JUyBDQVBJVEFMIjsKCX1lbHNlewoJCWNvdXQgPDwgIkFMUEhBXG5JUyBTTUFMTCI7Cgl9CglyZXR1cm4gMDsKfQ==