import sys, re

body = sys.stdin.read()

# Find all /public/263/ links and show the full a tag
for m in re.finditer(r'<a[\s\S]{0,300}?href="(/public/263/\d+\.html)"[\s\S]{0,300}?</a>', body):
    full = m.group(0)
    # Extract title attr
    title_m = re.search(r'title="([^"]*)"', full)
    # Extract display text
    txt = re.sub(r'<[^>]+>', ' ', full)
    txt = re.sub(r'\s+', ' ', txt).strip()
    title = title_m.group(1) if title_m else 'NO TITLE ATTR'
    print(f"DISPLAY: [{txt[:100]}]")
    print(f"TITLE_ATTR: [{title[:100]}]")
    print(f"HREF: {m.group(1)}")
    # Check for date nearby
    date_m = re.search(r'(\d{4}-\d{2}-\d{2})', body[m.start()-100:m.start()])
    # Also check after the link
    date_m2 = re.search(r'(\d{4}-\d{2}-\d{2})', body[m.end():m.end()+100])
    date_str = date_m.group(1) if date_m else (date_m2.group(1) if date_m2 else '')
    print(f"DATE: {date_str}")
    print()
