import sys, re

body = sys.stdin.read()

# Find ALL unique class names in li tags
for m in re.findall(r'<li[^>]*class="([^"]*)"', body):
    print("LI CLASS:", m)

# Find ALL a tags with title attribute that link to /public/
for m in re.finditer(r'<a[^>]*title="([^"]*)"[^>]*href="([^"]*)"[^>]*>', body, re.S):
    title = m.group(1).strip()
    href = m.group(2).strip()
    if '/public/' in href and title:
        print(f'A_TITLE: [{title[:80]}] HREF: [{href[:80]}]')
