a=input() b=ord(a) if 48<=b<=58:
print('dight')
elif 65<=b<=90:
print('upper')
elif 97<=b<=122:
print("lower")
elif b==32:
print("space")
else:
print('other')
你的digit打错了