function Main(arg) {
    var arg = arg.trim();
    if( /^[A-Z]+$/g.test(arg) ){
      console.log('A');
    } else {
      console.log('a');
    }
    return;
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
