#C1904. Swap Case

    ID: 45161 Type: Default 1000ms 256MiB

Swap Case

Swap Case

Given a string (s), convert each uppercase letter to its lowercase counterpart and each lowercase letter to its uppercase counterpart.

In other words, for every letter (c) in (s), if (c) is uppercase, replace it with (\text{tolower}(c)); if (c) is lowercase, replace it with (\text{toupper}(c)). Non-alphabetical characters remain unchanged.

inputFormat

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

outputFormat

Output the transformed string where each letter's case is swapped.## sample

abcde
ABCDE