#! /usr/bin/python 
# Last edited on 2017-11-17 18:59:59 by stolfilocal

import sys
from bs4 import BeautifulSoup

hpage = sys.stdin.read().decode('utf-8','strict')

# hpage = page.encode('utf-8').decode('ascii', 'ignore')

htree = BeautifulSoup(hpage, 'html.parser')
sys.stdout.write(htree.prettify(formatter='html').encode('utf-8'))
