import Foundation
let arr=readLine()!
if arr.range(of: "[A-Z]", options: .regularExpression) != nil{
    print("A")
}else if arr.range(of: "[a-z]", options: .regularExpression) != nil{
    print("a")
}