Codechef Nov'13: Uncle Johny