问题1251--Who is the bride?

1251: Who is the bride?

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

Labor day is long, and many young people will have their wedding between 1st,May and 7th, May. Yesterday, three young couples took photos beside the West Lake. The three bridegroom is A, B, C, and the three bride is X, Y, Z. Mary asked them to know who are the couples.She asked three of them. A said he will marry to X. X said that her young man is C. And C said he will marry to Z. Mary know what all they said is wrong.Since you are very smart, she asks you to help her to find who is the bride of A, who is the bride of B, and who is the bride of C?

输入

No Input.

输出

Output three lines. the first line is the bride of A, the second line is the bride of B, the third line is the bride of C.

样例输出 Copy

X
Y
Z

(May no the sequence)

来源/分类

yhr