echo "int main(){char s[7];while(gets(s)){putchar(s[1]==s[2]?s[2]:s[4]);}}" > a.c;gcc a.c;./a.out