hello = [] for i in xrange(26): c = input() if i in [3, 4, 7, 11, 14, 17, 22]: # dehlorw hello.append(c) #print hello hello_n = hello[0] * hello[1] * hello[2] * hello[5] * hello[6] hello_n *= (hello[4])/2 * -(-hello[4]/2) hello_n *= ( (hello[3] *2/3) * ((hello[3]) *2/3 -1) ) /2 hello_n *= -(-hello[3]/3) print hello_n