Strings as objects Open on JetBrains Academy

This task will show you some functions of strings. You may already know them. Anyway, it will be great if you solve this problem!

The task here is to decode a string:

Here are string functions that you can use:

You should output results using the println function.


Sample Input:
i123

Sample Output:
124


Sample Input:
sabc

Sample Output:
cba


Sample Input:


Sample Output:




Memory limit: 256 MB
Time limit: 8 seconds

Show topic summary