while""do x={io.read(3,3,3)}table.sort(x)y=(x[1]+x[2]-1)/x[3]print(y-y%1)end