Skip to main content
Tuesday (24.11.2026) at 20:00: ALGOR Contest: Round #4 (Special Challenge) starts!

~/algor $ cat problems/string-registrni-almashtirish

Swap case

Easy 1000 ms 64 MB 25%
Share

A string $s$ of Latin letters is given. Replace every uppercase letter with a lowercase one and every lowercase letter with an uppercase one.

The letters of the string: uppercase became lowercase, lowercase became uppercase

Input

One line containing the string $s$.

Output

The resulting string.

Note

$1 \le |s| \le 10^{5}$
$s$ consists of Latin letters (a–z, A–Z) only

Examples

Input #1
AlGoR
Output #1
aLgOr
Input #2
z
Output #2
Z

Sign in to submit a solution

Signing up is free and takes a minute.