_ = input() a = int(input()) b = int(input()) res = int(input()) if a - b >= 0: print("VEIT EKKI") elif res > 0: print("SITH") else: print("JEDI")