icpc 2002dA Python