#Z15305. 输出亲朋字符串
输出亲朋字符串
Description
Write a program to compute the friend string s1 of a given string s.
The friend string s1 is defined as follows:
- The first character of
s1is obtained by adding the ASCII values of the first and second characters ofs. - The second character of
s1is obtained by adding the ASCII values of the second and third characters ofs. - This process continues until the second-to-last character of
s. - The last character of
s1is obtained by adding the ASCII values of the last character ofsand the first character ofs.
Input Format
Input consists of one line containing a string with a length between 2 and 100 (inclusive). The ASCII value of each character in the string does not exceed 63.
Output Format
Output one line, the transformed friend string. It is guaranteed that the output will consist of a single line.
1234
cege