Simple program to find total number of years from the given set of dates.