import static java.lang.System.out;
import java.io.File;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        new Main().reverse();
    }

    public void reverse() {
        try (Scanner scan = new Scanner(System.in)) {
            reverseStr(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void reverse(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            reverseStr(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void reverseStr(Scanner scan) {
        StringBuffer str = new StringBuffer(scan.nextLine());
        out.println(str.reverse());
    }
} import static java.lang.System.out; import static java.lang.System.out; import static java.lang.System.out; import java.io.File; File java.io import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        new Main().reverse();
    }

    public void reverse() {
        try (Scanner scan = new Scanner(System.in)) {
            reverseStr(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void reverse(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            reverseStr(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void reverseStr(Scanner scan) {
        StringBuffer str = new StringBuffer(scan.nextLine());
        out.println(str.reverse());
    }
} Main public static void main(String[] args) {
        new Main().reverse();
    } main {
        new Main().reverse();
    } new Main().reverse() new Main().reverse new Main() String[] args args public void reverse() {
        try (Scanner scan = new Scanner(System.in)) {
            reverseStr(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    } reverse {
        try (Scanner scan = new Scanner(System.in)) {
            reverseStr(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    } try (Scanner scan = new Scanner(System.in)) {
            reverseStr(scan);
        } catch (Exception e) {
            System.exit(0);
        } catch (Exception e) {
            System.exit(0);
        } Exception e {
            System.exit(0);
        } System.exit(0) System.exit System 0 {
            reverseStr(scan);
        } Scanner scan = new Scanner(System.in) Scanner scan = new Scanner(System.in) new Scanner(System.in) reverseStr(scan) reverseStr scan public void reverse(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            reverseStr(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    } reverse {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            reverseStr(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    } try (Scanner scan = new Scanner(new File(inputDataPath))) {
            reverseStr(scan);
        } catch (Exception e) {
            e.printStackTrace();
        } catch (Exception e) {
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {
            reverseStr(scan);
        } Scanner scan = new Scanner(new File(inputDataPath)) Scanner scan = new Scanner(new File(inputDataPath)) new Scanner(new File(inputDataPath)) reverseStr(scan) reverseStr scan String inputDataPath inputDataPath private void reverseStr(Scanner scan) {
        StringBuffer str = new StringBuffer(scan.nextLine());
        out.println(str.reverse());
    } reverseStr {
        StringBuffer str = new StringBuffer(scan.nextLine());
        out.println(str.reverse());
    } StringBuffer str = new StringBuffer(scan.nextLine()); str new StringBuffer(scan.nextLine()) out.println(str.reverse()) out.println out str.reverse() str.reverse str Scanner scan scan public class Main {

    public static void main(String[] args) {
        new Main().reverse();
    }

    public void reverse() {
        try (Scanner scan = new Scanner(System.in)) {
            reverseStr(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void reverse(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            reverseStr(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void reverseStr(Scanner scan) {
        StringBuffer str = new StringBuffer(scan.nextLine());
        out.println(str.reverse());
    }
} public class Main {

    public static void main(String[] args) {
        new Main().reverse();
    }

    public void reverse() {
        try (Scanner scan = new Scanner(System.in)) {
            reverseStr(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void reverse(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            reverseStr(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void reverseStr(Scanner scan) {
        StringBuffer str = new StringBuffer(scan.nextLine());
        out.println(str.reverse());
    }
} Main
import static java.lang.System.out;
import java.io.File;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        new Main().reverse();
    }

    public void reverse() {
        try (Scanner scan = new Scanner(System.in)) {
            reverseStr(scan);
        } catch (Exception e) {
            System.exit(0);
        }
    }

    public void reverse(String inputDataPath) {
        try (Scanner scan = new Scanner(new File(inputDataPath))) {
            reverseStr(scan);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private void reverseStr(Scanner scan) {
        StringBuffer str = new StringBuffer(scan.nextLine());
        out.println(str.reverse());
    }
}