class Odd: def __init__(self, a, b): self.a = a self.b = b def __lt__(x, y): return x.a < y.a def __eq__(x, y): return x.a == y.a