# Vignere

Time Limit: 11 Seconds Memory Limit: 131072 KB

One of the oldest and most common encryption algorithms is Vigen`re Cipher. It is quite an old thing — a similar encryption was first described in 1553 by Giovan Battista Bellaso and improved in 1586 by Blaise de Vigen`re.

Vigen`re encryption produces a single letter of ciphertext for each letter of plaintext, combining one plaintext letter with one single letter of a key on the corresponding position. If the key is shorter than the plaintext, it is simply repeated as needed, e.g. for a key of length 3 and plaintext of length 7, letters will be combined like this (K_{i} is the key letter, P_{i }is the plaintext letter, and Ci is the resulting ciphertext letter).

K_{1} K_{2} K_{3 }K_{1} K_{2} K_{3 }K_{1}

P_{1} P_{2} P_{3} P_{4} P_{5} P_{6} P_{7 }C_{1} C_{2} C_{3} C_{4} C_{5} C_{6} C_{7}

The letter of the key specifies how many positions should be the plaintext letter “shifted forward” in the alphabet. If a key letter is A, the correspoding plaintext letter will be shifted by one character, B means two positions, etc. The alphabet is considered circular, so if the last letter (Z) should be shifted, it becomes A again. Please note that A (key) combined with another A (plaintext) will result in B, which may be a little unusual for the common Vigen`re cipher. The Vigen`re square at the end of this problem statement gives an overview how letters of a plaintext get combined with letters of a key to produce the ciphertext.

Your task is to write a program that will encrypt messages using the Vigen`re cipher with a given key.

## Input

The input contains several instances. Each instance consists of two lines, the first line is the encryption key and the second line is the plaintext. Both key and plaintext consist of uppercase letters of the English alphabet {A, B, C, ..., Z}. The length of the key will be between 1 and 1000, the length of the plaintext between 1 and 100 000, inclusive. Input is terminated by a line containing one zero.

## Output

For each input instance, output the ciphertext — the encrypted version of the message.

## Sample Input

ICPC THISISSECRETMESSAGE ACM CENTRALEUROPEPROGRAMMINGCONTEST LONGKEY CERC 0

## Sample Output

CKYVRVIHLUUWVHIVJJU DHAUUNMHHSRCFSEPJEBPZJQTDRAUHFU OTFJSubmit

Source: Central Europe Regional Contest 2011