#P123. 【例21.3】 字符类型判断

【例21.3】 字符类型判断

Description

Input a character and determine whether it is an uppercase letter, a lowercase letter, a digit character, or another character. Output the corresponding message.

Input Format

A single character.

Output Format

If the character is an uppercase letter, output "upper"; if it is a lowercase letter, output "lower"; if it is a digit character, output "digit"; otherwise, output "other". (Output does not include quotation marks)

Sample

1
digit