// Arup Guha
// 9/30/2017
// Example with a accumulator variable.
// How much money to I make if I make 1, 2, 3, ... dollars on days 1, 2, 3. etc.

import java.util.*; 

public class slowmoney {
	
	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;
		
		// Go through each day.
		for (int day=1; day<=n; day++) {
			total = total + day;
			System.out.println("After day "+day+" you have "+total+" dollars.");
		}
	}
}