package com.wangzhen.algorithm.other.牛客网.hj12;

/**
 * Description:
 * Datetime:    2020/11/7   8:24 下午
 * Author:   王震
 */



import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.next();
        StringBuffer sb = new StringBuffer(str);
        System.out.println(sb.reverse());

    }
}
