/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package javaapplication34;

import java.util.Scanner;



/**
 *
 * @author joelx
 */
public class JavaApplication34 {

    /**
     * @param args the command line arguments
     */
    public static boolean estminiscule(char h){
        return (h >= 'a' && h <= 'z');
        
    }
    public static char estmajuscule(char g){
     
     if (estminiscule(g)) {
     return (char) ((int)g + (int) 'A' - (int) 'a');
       
    }
     return g;
    }
    
    
    public static boolean exclusif(String t){
        for(int i = 0; i<t.length();++i){
           if(!estminiscule(t.charAt(i))){
               return false;
           }
           
        }
        return true;
        
    }
     public static String copiemajus(String f){
         String r ="";
        for(int i = 0; i<f.length();++i){
            r += estmajuscule(f.charAt(i)); 
         
        }
        return r;
     }
      public static int nbapp(String f,char c){
          int pos=0;
           for(int i = 0; i<f.length();++i){
             if(f.charAt(i)== c){
                 ++pos;
             }
              
           }
        return pos;
    }
      public static String renverse(String f){
          
       String r ="";
       for(int i =f.length()-1 ; i>=0;--i){ 
           r +=f.charAt(i);
       }  
       return r;
          
      }
      
   
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.print("entrez un mot svp");
        String joseph = scan.next();
      //  String joel = "hello josep !";
       char joel;
       joel = joseph.charAt(2);
       
       //System.out.println(estmajuscule(joel));
       System.out.println(renverse(joseph));
       
       
     //  if(estminiscule(joel)){
     //      System.out.println(joseph.charAt(9) +" est miniscule");
     //  }
    //   else
     //      System.out.println(joseph.charAt(9) +" n'est pas miniscule");
        
       
        // TODO code application logic here
    }
    
}
