#include <stdio.h>
#include <limits.h>
#define MASK (0x20)
char toLowerCase(char c){
return c | MASK;
}
char toUpperCase(char c){
return c & ~MASK;
}
void printChar(char c){
int i;
for(i = CHAR_BIT-1; i >= 0; --i)
printf("%d%s", !!(c
&(1<<i
)), i
==4 ? " " : i
== 0 ? "\n" : ""); }
int main(void){
printf("%c\n", toLowerCase
('A')); printf("%c\n", toUpperCase
('a')); printChar('A');
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxsaW1pdHMuaD4KCiNkZWZpbmUgTUFTSyAoMHgyMCkKY2hhciB0b0xvd2VyQ2FzZShjaGFyIGMpewogICAgcmV0dXJuIGMgfCBNQVNLOwp9CmNoYXIgdG9VcHBlckNhc2UoY2hhciBjKXsKICAgIHJldHVybiBjICYgfk1BU0s7Cn0Kdm9pZCBwcmludENoYXIoY2hhciBjKXsKICAgIGludCBpOwogICAgZm9yKGkgPSBDSEFSX0JJVC0xOyBpID49IDA7IC0taSkKICAgICAgICBwcmludGYoIiVkJXMiLCAhIShjJigxPDxpKSksIGk9PTQgPyAiICIgOiBpID09IDAgPyAiXG4iIDogIiIpOwp9CmludCBtYWluKHZvaWQpewogICAgcHJpbnRmKCIlY1xuIiwgdG9Mb3dlckNhc2UoJ0EnKSk7CiAgICBwcmludGYoIiVjXG4iLCB0b1VwcGVyQ2FzZSgnYScpKTsKICAgIHByaW50Q2hhcignQScpOwogICAgcmV0dXJuIDA7Cn0K