word = input()
result = ''
for i in word:
    if ord(i) < 91:
        result += chr(ord(i) + 32)
    else:
        result += chr(ord(i) - 32)
print(result)

73f6bf0f6c4f0e81c887b645f9c929799af9b305
<mask token>

<mask token>
for i in word:
    if ord(i) < 91:
        result += chr(ord(i) + 32)
    else:
        result += chr(ord(i) - 32)
print(result)

word = input()
result = ''
for i in word:
    if ord(i) < 91:
        result += chr(ord(i) + 32)
    else:
        result += chr(ord(i) - 32)
print(result)
