# -*- coding: utf8 -*-
#base = 0xa2e5 # ㈠
from const import mid
replace = 'alt="%s"'

if __name__ == '__main__':
    html = open('raw.html', 'r').read()
    for num in range(1, 10):
        html = html.replace(replace % num, replace % (mid % num))
    open('restructed.html', 'w').write(html)