#1146. python-面向对象-定义类people,并定义father和mother从people继承,再定义类child从...

python-面向对象-定义类people,并定义father和mother从people继承,再定义类child从...

Background

Description

定义类people,并定义father和mother从people继承,再定义类child从father和mother继承,打印父亲、母亲和孩子的姓名和性别

输入: 父亲的姓[如:wu]

父亲的名[如:yingjun]

母亲的姓[如:wang]

母亲的名[如:meili]

跟随的姓[如:father]

孩子的名[如:shuaige]

孩子的性别[如:male]

输出:

父亲的姓名[wuyingjun]

父亲的性别[male]

母亲的姓名[wangmeili]

母亲的性别[female]

孩子的姓名[wushuaige]

孩子的性别[male] image

Format

Input

Output

Samples

wu
yingjun
wang
meili
father
shuaige
male
wuyingjun
male
wangmeili
female
wushuaige
male

Limitation

1s, 1024KiB for each test case.