#!/usr/bin/env python

import re

i = 0

with open("grades.txt") as f:
    for line in f:
        if line[0] == "#":
            i += 1
print "Content-type: text/html"
print
print "<h1>Grades</h1>"
print "<p>"
print i
print "</p>"
