Picking Up Chicks

Problem Name:
Picking Up Chicks
Site:Spoj
Links:
Tags:
Problem setters: