Problem 101 with slightly less stupid.