Topcoder Mailbox - nice solution