Problem A (Tehran-1999) [ Sun Dec 26 21:43:57 EET 2010]

#FileJudgementScoreMaxTimeMaxMemoryTotalTime