import json, sys

d = json.load(sys.stdin)
for p in d:
    sn = p.get("product_packages", [{}])[0].get("cpe_id", "?")
    ref = p.get("external_plant", "")
    print("SN:{:<20} | caja:{:<30} | id:{}".format(sn, ref, p.get("id","")))
