#include <stdio.h>
int main()
{
char n;
scanf("%c", &n);//输入想要转化的字母
if (n <= 'Z')//判断是大写字母还是小写字母
printf("%c", (int)n + 32);//大写字母ASCII码加32等于对应的小写ASCII码
else //强制转化类型为int再相加,并且以字符%c输出
printf("%c", (int)n - 32);//相反
return 0;
}