Two men Ramu and Shyamu started working for a company on January 1, 1960. Ramu started with a salary of .Rs. 400 and was paid Rs. 400 as monthly increment, Shyamu started with a salary of Rs. 300 and was paid Rs. 20 as a monthly increment. They were paid in this manner until December 1962. The salary received by each at the last month of a year in this period was equal to the salary received by him in the first month of the next year. Find the total (in Rs.) amount received by them in this period.