Vibrating Sentence
Time Limit: 1 sec
The Problem
A sentence is called vibrating if its first N letter is uppercase, the next N letter is lowercase, second next N letter is uppercase and this process goes on until the end of the sentence. For example, given that N is 3 and the string is "programmingschool", then the output string is looks like “PROgraMMIngsCHOol”. Here first 3 letters is uppercase, the second 3 letters is lowercase, and again next 3 letters is uppercase and the process is continued.
The Input
Input contains several test cases. Each case contains two line of input. First line contains the value of N 0<=N<=20. Second line contains a string with lowercase alphabet letters. The length of this string will not be greater than 200. You have to convert it into vibrating sentence.
The Output
Output contains the required vibrating sentence in separate line.
Sample Input
5
programmingcontestbyoutsbook
1
outsbook
Sample Output
PROGRamminGCONTestbyOUTSBook
OuTsBoOk
[School Level]
1st Online Programming Contest 2016 by Outsbook
Problem Setter: Milton Deb