#C19. Swap Case

    ID: 45155 Type: Default 1000ms 256MiB

Swap Case

Swap Case

You are given a string s consisting of alphabetic characters, digits, and special characters. Your task is to write a program that transforms the string by swapping the case of each alphabetical character.

For every letter in the string:

  • If the letter is lowercase, convert it to uppercase.
  • If the letter is uppercase, convert it to lowercase.

All non-alphabetic characters should remain unchanged.

Note: The input will be provided via standard input (stdin) and the output should be printed to standard output (stdout).

Examples:

Input: HelloWorLD
Output: hELLOwORld

Input: JavaScript Output: jAVAsCRIPT

Input: Python3.9 Output: pYTHON3.9

</p>

inputFormat

The input consists of a single line containing the string s which may include letters, digits, and special characters.

outputFormat

Output the string after swapping the case of each alphabetical character. The result should be printed on a single line.

## sample
HelloWorLD
hELLOwORld

</p>