from sys import stdin
groups = stdin.read().split("\n\n")
keys = groups[::2]
values = groups[1::2]
res = {k: v.split("\n") for k, v in zip(keys, values)}
print res
ZnJvbSBzeXMgaW1wb3J0IHN0ZGluCgpncm91cHMgPSBzdGRpbi5yZWFkKCkuc3BsaXQoIlxuXG4iKQprZXlzID0gZ3JvdXBzWzo6Ml0KdmFsdWVzID0gZ3JvdXBzWzE6OjJdCnJlcyA9IHtrOiB2LnNwbGl0KCJcbiIpIGZvciBrLCB2IGluIHppcChrZXlzLCB2YWx1ZXMpfQpwcmludCByZXM=
{'key3': ['value1'], 'key2': ['value1', 'value2', 'value3', 'value4'], 'key1': ['value1', 'value2', 'value3'], 'key4': ['value1', 'value2']}