Find the last number of five digits which when divided by 40, 60 and 75, leave remainders 31, 51 and 66 respectively.