const main = stdin => {
  const input = stdin.trim()
  if (input.toUpperCase() === input) {
    console.log('A')
  } else {
    console.log('a')
  }
}


// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
