Annie get bored win code contest farm unlimited rating today go farm potato insteadannie garden infinite 2D plane she n potatoe plant ith potato plant x_iy_i start point 0 0 Annie begin walk step travel unit right increase x y coordinate 1 respectively at point XY walk plant potato arbitrary point potato gun consume maxxxyy unit energy order plant potato xy find minimum total energy require plant potatonote Annie plant number potato point