John keeps a diary in a text file, but he doesn't want anybody to be able to read it except him, that's why he has decided to encode this file. You need to implement the following algorithm for encoding:
- iterate over characters in a given string;
- convert a character to the
intvalue; - add the
shiftvalue; - convert the result value to
string.