#include #include int main(){ char s[1000]; scanf("%s", s); if (s[0] < '0' || s[0] > '9' || strlen(s) > 1) printf("输入非法。\n"); else printf("%c\n", s[0]);}