def printDict(d):
for key1, value1 in d.items():
if isinstance(value1, dict):
print(key1, ':')
for key2, value2 in value1.items():
if isinstance(value2, dict):
print('\t',key2, ':')
for key3, value3 in value2.items():
if isinstance(value3, dict):
print('\t\t',key3, ':')
for key4, value4 in value3.items():
if isinstance(value4, dict):
print('\t\t\t',key4, ':')
for key5, value5 in value4.items():
if isinstance(value5, dict):
print('\t\t\t\t',key5, ':')
for key6, value6 in value5.items():
print ('\t\t\t\t\t', key6, ':', value6)
else: print ('\t\t\t\t', key5, ':', value5)
else: print ('\t\t\t', key4, ':', value4)
else: print ('\t\t', key3, ':', value3)
else: print ('\t', key2, ':', value2)
else: print (key1, ':', value1)
ZGVmIHByaW50RGljdChkKToKICAgIGZvciBrZXkxLCB2YWx1ZTEgaW4gZC5pdGVtcygpOgogICAgICAgIGlmIGlzaW5zdGFuY2UodmFsdWUxLCBkaWN0KToKICAgICAgICAgICAgcHJpbnQoa2V5MSwgJzonKQogICAgICAgICAgICBmb3Iga2V5MiwgdmFsdWUyIGluIHZhbHVlMS5pdGVtcygpOgogICAgICAgICAgICAgICAgaWYgaXNpbnN0YW5jZSh2YWx1ZTIsIGRpY3QpOgogICAgICAgICAgICAgICAgICAgIHByaW50KCdcdCcsa2V5MiwgJzonKQogICAgICAgICAgICAgICAgICAgIGZvciBrZXkzLCB2YWx1ZTMgaW4gdmFsdWUyLml0ZW1zKCk6CiAgICAgICAgICAgICAgICAgICAgICAgIGlmIGlzaW5zdGFuY2UodmFsdWUzLCBkaWN0KToKICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByaW50KCdcdFx0JyxrZXkzLCAnOicpCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3Iga2V5NCwgdmFsdWU0IGluIHZhbHVlMy5pdGVtcygpOgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIGlzaW5zdGFuY2UodmFsdWU0LCBkaWN0KToKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcHJpbnQoJ1x0XHRcdCcsa2V5NCwgJzonKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3Iga2V5NSwgdmFsdWU1IGluIHZhbHVlNC5pdGVtcygpOgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgaXNpbnN0YW5jZSh2YWx1ZTUsIGRpY3QpOgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByaW50KCdcdFx0XHRcdCcsa2V5NSwgJzonKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciBrZXk2LCB2YWx1ZTYgaW4gdmFsdWU1Lml0ZW1zKCk6CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHByaW50ICgnXHRcdFx0XHRcdCcsIGtleTYsICc6JywgdmFsdWU2KQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZTogcHJpbnQgKCdcdFx0XHRcdCcsIGtleTUsICc6JywgdmFsdWU1KQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2U6IHByaW50ICgnXHRcdFx0Jywga2V5NCwgJzonLCB2YWx1ZTQpCiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2U6IHByaW50ICgnXHRcdCcsIGtleTMsICc6JywgdmFsdWUzKQogICAgICAgICAgICAgICAgZWxzZTogcHJpbnQgKCdcdCcsIGtleTIsICc6JywgdmFsdWUyKQogICAgICAgIGVsc2U6IHByaW50IChrZXkxLCAnOicsIHZhbHVlMSk=