import java.util.Scanner;
public class ddd{
public static void main(String[]argv){
Scanner sc=new Scanner(System.in);
int sum=sc.nextInt();
int total=-1;
for(int i=-1;i<sum;i++){
total++;
System.out.println("2^"+total+" "+"="+" "+(int)Math.pow(2,total));
}
}
}