import java.math.BigInteger;

public class Main
{
  public static void main(String[] args)
  {
  	System.out.println("0 1");
  	BigInteger y = BigInteger.ONE;
    for (int x = 1; x < 30; ++x) {
    	y = y.multiply(BigInteger.valueOf(x));
	    System.out.println(x + " " + y);
	}
  }
}