Monkeys and coconuts

Sign in to test your solution.