字符串截取
birth=input() print("year={}\nmonth={:02d}\ndate={:02d}".format(birth[:4],int(birth[4:6]),int(birth[-2:])))