# coding:utf8
import sys, re
dic = {}
for line in sys.stdin:
line = line.strip()
cols = line.split()
for item in cols:
if item.startswith("id"):
key_value = item.split(":")
if(len(key_value) != 2):
break
uid = key_value[1]
print uid
break
# coding:utf8
import sys
cnt=0
current_uid = ""
dic = {}
for line in sys.stdin:
line = line.strip()
if current_uid != line:
cnt += 1
current_uid = line
print "Number of records:%s" % (cnt)