A, B, C = map(int, input().split()) D, E, F = map(int, input().split()) print('No')