89. Caps Lock Accident

Acceptance — 0 accepted 0 submissions

Easy
Strings
No companies listed
Karthik typed his message with Caps Lock on by mistake. Fix it by swapping the case of every letter: capital letters become small and small letters become capital. Other characters stay the same.

Input Format
A single line of text.

Output Format
Print the text with the case of every letter swapped.

Constraints
• 1 ≤ length ≤ 1000
• The line does not start or end with a space.

Example 1

Input
hELLO wORLD
Output
Hello World

Explanation Every letter flips: Hello World.

Example 2

Input
Room 101
Output
rOOM 101

Explanation The digits and the space stay the same.

Example 3

Input
BASHABYTE
Output
bashabyte

Explanation All capitals become small.

Acceptance —
Accepted 0
Submissions 0
Auto-save
Saved Ln 1, Col 1
Submit a solution to see its status here.
Input
Expected Output
Hello World
No results yet
Run your code to test it against the sample cases.
Problem List