/* package whatever; // don't place package name! */
import java.util.Scanner;

/* The class name doesn't have to be Main, as long as the class is not public. */
class Main
{
  public static void main (String[] args) throws java.lang.Exception
  {
  Scanner numberInputReader = new Scanner(System.in);
  int num1;
  int num2;
  num1 = numberInputReader.nextInt();
    System.out.println( "The answer to life the universe and everything is " + num1 );
    num1 = num1 -1;
    System.out.println( "And,the answer to life the universe and everything minus one is " + num1 );
  }
}