using System;
public class Program
{
public static void Main()
double total = 0;
int j = 0;
for (int i=0; i < 444; i++){ //months to wait
total = total + 1000; // monthly pay
j++;
if (j == 12){
total = total * 1.04; //average yearly gain
j =0;
}
Console.WriteLine((total * 0.04)/12);