// Author:: Mohammad Faisal

const main = (input) =>{
   return console.log(/[A-Z]/.test(input.trim()) ? 'A' : 'a') 
};


process.env.MYTEST ? test() : main(require('fs').readFileSync('/dev/stdin', 'utf8'))