# -*- coding: utf-8 -*-
import sys, re
h = open('index_main.html', encoding='utf-8', errors='ignore').read()
seg = h[h.index('const PROGRAMS=['):h.index('const CATD=[')]
pid = sys.argv[1]
for b in seg.split('{id:"'):
    if b.startswith(pid + '"'):
        print(b[:1200])
        break
