def win(s1, s2):
    """Return true if s1 defeats s2, false otherwise."""
    if ((s1 == 'r' and s2 == 's') or
        (s1 == 'p' and s2 == 'r') or
            (s1 == 's' and s2 == 'p')):
        return True
    return False