Revert "UVA 11292"

This reverts commit de8e6a45c96e22481649608c3a8bd12a8d1254d5.