#!/usr/bin/python2.7

import sys
import json

one = "1"

# Input comes from stdin
for line in sys.stdin:
	splitted = list(map(lambda s : s.strip(), line.split("||JhB||")))
	# track_uri = splitted[0]
	# track_name = splitted[1]
	artist_uri = splitted[2].strip().replace("spotify:artist:","")
	artist_name = splitted[3].strip()
	# album_uri = splitted[4]
	# album_name = splitted[5]

	dic = {}
	dic["uri"] = artist_uri
	dic["name"] = artist_name
	value = json.dumps(dic)
	
	print '%s\t%s' %  (artist_uri, value)
	
