import sys, re

body = sys.stdin.read()

# Find all href="/public/263/XXXXXX.html"
hrefs = list(re.finditer(r'href="(/public/263/\d+\.html)"', body))
print(f"Total /public/263/ links: {len(hrefs)}")

for i, m in enumerate(hrefs[:15]):
    href = m.group(1)
    pos = m.start()
    # Get text around the href: 200 before, 300 after
    ctx = body[pos-200:pos+300]
    # Find the title attribute in the <a> tag context
    title_m = re.search(r'title="([^"]*)"', ctx)
    title = title_m.group(1) if title_m else ''
    # Find date in before context
    dates = re.findall(r'(\d{4}-\d{2}-\d{2})', body[max(0,pos-300):pos])
    date_str = dates[-1] if dates else ''
    # Get display text - the text between > and </a>
    txt_m = re.search(r'>([^<]+)</a>', body[pos:pos+300])
    display = txt_m.group(1).strip() if txt_m else ''
    print(f"[{i+1}] TITLE_ATTR: [{title[:80]}] DISPLAY: [{display[:80]}] DATE: [{date_str}] HREF: [{href}]")
