# Gets ls output and transform it into <a> tag
while True:
try:
a = input()
except:
break
print('<a href=\'' + a + '\'>' + a.replace('.html', '') + '</a><t>')