The radii of the circular ends of a bucket of height 40 cm are of lengths 35 cm and 14 cm. What is the volume of the bucket?