from datetime import*now = datetime.now().yearn = str(input())print('你出生于{}年{}月{}日'.format(n[6:10],n[10:12],n[12:14]))age = now - eval(n[6:10])print('你今年{}周岁'.format(age))if (eval(n[16]) % 2 == 0): print('你的性别为女')else: print('你的性别为男')