The difference in simple interest and compound interest on a certain sum of money at 623 per annum for 3 years is Rs. 46. Determine the sum.