a, b, c = int(input('a = ')), int(input('b = ')), int(input('c = '))
print('Да' if a == b and b == c else 'Нет')
a, b, c = int(input('a = ')), int(input('b = ')), int(input('c = '))
print('Да' if a == b and b == c else 'Нет')