How and when will the prizes be distributed, actually? What's the difference in prize between places, do people get to choose what they want, do leftover prizes stay for a future competition?
for n of all developers ordered by final postion do; developer[n] of category "New" picks any device she likes; if run out of devices, exit; developer[n] of category "Fixing" picks any device she likes; if run out of devices, exit; n++; done;