20131013-04

UVA 11044: simple, but kind of tricky.