Three wise men

Sign in to test your solution.