import java.io.*;

public class TP3{

   public static void main(String[] arg){
      int entierReponse;
      String reponse;
      
      reponse=reponseALaQuestion("Quelle est la reponse a la grande question sur la vie, l'univers et le reste ?  (indication : c'est un nombre entier)");
      entierReponse=convertitChaineEnEntier(reponse);
      
      if (entierReponse==42){
          affiche("En effet !");
      } else {
          affiche("Non, la reponse est 42.");
      }
   }














   public static boolean chainesEgales(String i, String j){
      return (i.compareTo(j)==0);
   }

   public static int convertitChaineEnEntier(String i){
      return Integer.parseInt(i);
   }

   public static int inc(int i){
      i=i+1;
      return i;
   }
   
   public static int nombreAleatoire(int lower,int higher){
      return (int)(Math.random() * (higher+1-lower)) + lower;
   }

   public static void affiche(String message){
      System.out.println(message);
   }

   public static String reponseALaQuestion(String question){
      System.out.println(question);
      String chaine="";
      BufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in)); 
      
      try 
    {
      chaine = keyboard.readLine(); 
      }
      catch (IOException e)
    {
   System.out.println("Erreur de frappe");
   //System.exit(0);
    }      
      return chaine;
   }
   
   public static int addition(int i, int j){
      return i+j;
   }

   
}