program UpperLower;
var
S: String;
I: Integer;
begin
while not Eof do begin
readln(S);
for I:=1 to Length(S) do begin
case S[I] of
'a'..'z': Dec(S[I],$20);
'A'..'Z': Inc(S[I],$20);
end;
end;
writeln(S);
end;
writeln('EOF.');
end.
cHJvZ3JhbSBVcHBlckxvd2VyOwp2YXIKICBTOiBTdHJpbmc7CiAgSTogSW50ZWdlcjsKYmVnaW4KICB3aGlsZSBub3QgRW9mIGRvIGJlZ2luCiAgICByZWFkbG4oUyk7CiAgICBmb3IgSTo9MSB0byBMZW5ndGgoUykgZG8gYmVnaW4KICAgICAgY2FzZSBTW0ldIG9mCiAgICAgICAgJ2EnLi4neic6IERlYyhTW0ldLCQyMCk7CiAgICAgICAgJ0EnLi4nWic6IEluYyhTW0ldLCQyMCk7CiAgICAgIGVuZDsKICAgIGVuZDsKICAgIHdyaXRlbG4oUyk7CiAgZW5kOwogIHdyaXRlbG4oJ0VPRi4nKTsKZW5kLg==