def __hash__(G):
    """
        Define the hash of a Surreal as the hash of its value.

        Returns
        -------
        hash : str
            The hash of G.
        """
    return hash(G._n)
