SDE Path

Toggle Case of Each Letter

Easy

Toggle Case of Each Letter

Flip the case of every letter in a word.

Input format

A single line with one word S (letters only, mixed case).

Output format

Print S with the case of every letter flipped (lowercase becomes uppercase and vice versa).

Constraints

  • Values fit in a 64-bit signed integer
  • Trailing whitespace and a trailing newline are ignored by the judge

Read from stdin, write to stdout. Sample cases below show the exact format.

Sample cases

Example 1
Input
Hello
Expected output
hELLO
Example 2
Input
abc
Expected output
ABC