300852: CF162H. Alternating case
Memory Limit:256 MB
Time Limit:3 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
H. Alternating casetime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output
You are given a string consisting of alphabet letters. Convert it to alternating case: the letters on odd positions should be in uppercase, and the letters on even positions should be lowercase. The letters are numbered staring from 1.
InputThe only line of input contains a string between 1 and 100 characters long. Each character of the string is either an uppercase ('A'-'Z') or a lowercase ('a'-'z') letter.
OutputOutput the resulting string.
ExamplesInputCodeforcesOutput
CoDeFoRcEsInput
VKCupOutput
VkCuP