Preparando MOJI

Alternating case

3000ms 262144K

Description:

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.

Input:

The 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.

Output:

Output the resulting string.

Sample Input:

Codeforces

Sample Output:

CoDeFoRcEs

Sample Input:

VKCup

Sample Output:

VkCuP

Informação

Codeforces

Provedor Codeforces

Código CF162H

Tags

*special

Submetido 0

BOUA! 0

Taxa de BOUA's 0%

Datas 09/05/2023 08:35:11

Relacionados

Nada ainda