const main = input => {
	if (/[A-Z]/.test(input)) {
    	console.log("A");
    } else {
		console.log("a");    
    }
  console.log(/[A-Z]/.test(input) ? 'A' : 'a')
}
 
main(require("fs").readFileSync("/dev/stdin", "utf8"));