there old tradition keep 4 box candy house Cyberland the number candy special arithmetic mean median range equal by definition set x1x2x3x4 x1x2x3x4 arithmetic mean median range x4x1 the arithmetic mean median necessary integer it wellknown number box create debug field code field bugsFor example 1133 example 4 number meet condition mean median range equal 2Jeff 4 special box candy however bad happen some box lose n 0n4 box remain the ith remain box contain ai candiesNow Jeff want know possible way find number candy 4n miss box meeting condition mean median range equal