1. 读取字符串
  2. 反转字符串输出

import java.util.*;
public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(sc.hasNext()){
            StringBuffer bf = new StringBuffer(sc.nextLine());
            System.out.println(bf.reverse());
        }
    }
}