# coding:utf-8
#JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。
# 前七位固定为4200002
import random
prefix = '4200002'
# 第8位,随机选择4-7之间的数字
eighth_digit = str(random.randint(4, 7))
# 第9-10位,两位随机数字
ninth_tenth = ''.join(random.choices('0123456789', k=2))
# 固定部分2025(第11-14位)
year_part = '2025'
# 随机生成月份(第15-16位)
md= input()
# 生成最后10位随机数字(第19-28位)
suffix = ''.join(random.choices('0123456789', k=10))
# 组合所有部分
print(prefix + eighth_digit + ninth_tenth + year_part + md + suffix)
fixed_prefix = "0461368605"
# 生成剩余15位随机数字
random_suffix = ''.join(str(random.randint(0, 9)) for _ in range(15))
print(fixed_prefix + random_suffix)