#!/usr/bin/python -u

import sys
import json

while True:
	line = sys.stdin.readline()
	if not line:
		break
	line = line.strip()
	try:
		line = json.loads(line)["log"]
	except Exception as e:
		pass

	try:
		print line
	except:
		pass
