f=open("vaipsis.txt") k, l, p=[int(s) for s in f.readline().strip().split(" ")] hoidla=set() for nr in range(k): n, s, e, w=[int(s) for s in f.readline().strip().split(" ")] for veerg in range(w, l-e): for rida in range(n, p-s): hoidla.add(str(rida)+"_"+str(veerg)) print(len(hoidla))