An absent minded bank teller switched the dollars and cents when he cashed a check for Mr. Brown, giving him dollars instead of cents, and cents instead of dollars. After buying a five-cent piece of gum, Brown discovered that he had left exactly twice as much as his original check. What was the amount of the check?