#!/usr/bin/python
import sys
for line in sys.stdin:
	data = line.strip().split("/")
	if len(data) > 1:
		date = str(data[2])
		print date

#!/usr/bin/python
import sys
for line in sys.stdin:
	data = line.strip().split("/")
	if len(data) > 1:
		date = str(data[2])
		print date

#!/usr/bin/python