题解 | 纪年
纪年
https://www.nowcoder.com/practice/057230cf4eaa4a7eb78f70836cfb5dfb
import sys
input = lambda :sys.stdin.read().strip()
check = list(map(int,input().split()))
for n in check :
l,r = 5,11
print(((n-2018+l)%10+9)%10+1,((n-2018+r)%12+11)%12+1)

