20131013-09

UVA 12289: A bit tricky on checking.