[HAOI2011]Problem b