#!/usr/bin/env python3
import fileinput
import json
import xmltodict
print(xmltodict.unparse(json.loads('\n'.join(fileinput.input()))))