package Try;
public class AverSpeed {
public static void main(String[] args) {
int sum = 312032486;
double birth = 1.0 / 7, dead = 1.0 / 13, move = 1.0 / 45;
int year = 365*24*60*60;
int firstYear = (int)(sum + year * birth - year * dead + year * move);
int secondYear = (int)(firstYear + year * birth - year * dead + year * move);
int thirdYear = (int)(secondYear + year * birth - year * dead + year * move);
int fourthYear = (int)(thirdYear + year * birth - year * dead + year * move);
int fifthYear = (int)(fourthYear + year * birth - year * dead + year * move);
System.out.println("First year:"+firstYear);
System.out.println("Second year:"+secondYear);
System.out.println("Third year:"+thirdYear);
System.out.println("Fourth year:"+fourthYear);
System.out.println("Fifth year:"+fifthYear);
}
}