2020-03-05 17:42:03 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main(){
|
2020-03-05 19:04:02 +00:00
|
|
|
|
|
|
|
char ch;
|
|
|
|
int num = 'a' - 'A';
|
|
|
|
scanf("%c", &ch);
|
|
|
|
if(ch == EOF || ch == -1){
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
if(ch >= 'A' && ch <= 'Z'){
|
|
|
|
ch += num;
|
|
|
|
}
|
|
|
|
else if(ch >= 'a' && ch <= 'z'){
|
|
|
|
ch -= num;
|
2020-03-05 17:42:03 +00:00
|
|
|
}
|
2020-03-05 19:04:02 +00:00
|
|
|
printf("%c", ch);
|
|
|
|
|
2020-03-05 17:42:03 +00:00
|
|
|
}
|