UVa problem: Counterfeit dollar - simple bruteforce