The smallest number which when divided by 20,25,35 and 40 and leaves remainders of 14,19,29 and 34 respectively is: