POJ 1182: Food Chain