2003' ACM/ICPCѵϰ 11

D: Vampire Numbers