def sleepIn(weekday, vacation):
    return vacation or not weekday


def tobool(x):
    return x == 'yes'


print(sleepIn(tobool(input()), tobool(input())))

4e098ee6b650cfb3ed5ab3844f0a3edb115adb7e
<mask token>

<mask token>


def tobool(x):
    return x == 'yes'


<mask token>

def sleepIn(weekday, vacation):
    return vacation or not weekday


def tobool(x):
    return x == 'yes'


<mask token>

def sleepIn(weekday, vacation):
    return vacation or not weekday


def tobool(x):
    return x == 'yes'


print(sleepIn(tobool(input()), tobool(input())))
