what about this solution ?

num = z*100 + y+10 + x