// Arup Guha
// 9/30/2017
// Example with a accumulator variable.
// How much money to I make if I make 1, 2, 4, 8, etc. dollars (doubling) each day.

import java.util.*; 

public class fastmoney {
	
	public static void main(String[] args) {
		
		// Get # of days working.
		Scanner stdin = new Scanner(System.in);
		System.out.println("How many days are you working?");
		int n = stdin.nextInt();
		int total = 0;
		int money = 1;
		
		// Go through each day.
		for (int day=1; day<=n; day++) {
			total = total + money;
			System.out.println("After day "+day+" you have "+total+" dollars.");
			
			// Here we double our pay for the next day!
			money = 2*money;
		}
	}
}