The number of ways in which one or more balls can be selected out of 10 white, 9 green and 7 black balls is