LCC/Moose '20 Contest 2 J2 - Mocking Case

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

AREA11 is tired of constantly pressing the shift button, so he asks you to convert a string S to mocking case. A string is in mocking case if the first letter is lowercase, and the following letters are in the opposite case as the previous one. Can you help him out?

Input Specification

The first line will contain S\ (1 \le |S| \le 2000). S may contain alphanumeric characters, spaces, periods, question marks, and exclamation marks.

Output Specification

Output the string in mocking case.

Sample Input

Help I'm trapped in a driver's license factory

Sample Output

hElP i'M tRaPpEd In A dRiVeR's LiCeNsE fAcToRy

Comments

There are no comments at the moment.