import std.stdio,std.array,std.string,std.algorithm,std.conv;

immutable STR_LENGTH = 20;

int main(string[] argv)
{
    char[] buf;
	stdin.readln(buf);
	char[] c;

	for(int i = 0;i < STR_LENGTH;i++){
		if(buf.length > i){
			c ~= buf[i];
		}
	}
	reverse(c);
	writeln(c);

    return 0;
}