Problem F (Tehran-2000) [ Sun Dec 26 21:44:12 EET 2010]

#FileJudgementScoreMaxTimeMaxMemoryTotalTime