Source code for POJ