x = 0
y= 0
z = 0
for x in range (0,10) :
if x*x*x == 27:
for y in range (0,10) :
if y*y*y*x == 24 :
for z in range (0,10) :
if x*y*z*z == 96 :
print z+x*y
CnggPSAwIAp5PSAwCnogPSAwCmZvciB4IGluIHJhbmdlICgwLDEwKSA6CglpZiB4KngqeCA9PSAyNzoKCQlmb3IgeSBpbiByYW5nZSAoMCwxMCkgOgoJCQlpZiB5KnkqeSp4ID09IDI0IDoKCQkJCWZvciB6IGluIHJhbmdlICgwLDEwKSA6CgkJCQkJaWYgeCp5KnoqeiA9PSA5NiA6IAoJCQkJCQlwcmludCB6K3gqeSAKCSAKCgoKCQoKCgoK