Ann Borya n pile candy n number there ai candy pile number iAnn like number square integer Borya do not like number square integer during guy select pile candy add candy candy new do not belong pile remove candy candy pile find minimal number move require exactly n2 pile contain number candy square integer exactly n2 pile contain number candy square integer