You must meet Mr. Spock at Atlantis and get the acceptable hat.