Daniel was able to retrieve the hat by climbing up from below.