Mangarevan counting

Sign in to test your solution.