Загрузка данных


import random

candidates = ['Питер', 'Сьюзен', 'Эдмунд', 'Люси', 'Юстэс', 'Джил']

a = int(input())

seen_prophecies = set()

while len(seen_prophecies) < a:
    selection = tuple(sorted(random.sample(candidates, 4)))
    seen_prophecies.add(selection)

for prophecy in seen_prophecies:
    print(", ".join(prophecy))