a, b, c, d, e, f = map(int, input().split()) assert a == b