Type: Default 1000ms 256MiB

赋值问题

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Description

在很多程序设计语言中,忘记给变量赋初值的错误常令人头疼。 在下面的问题中,最开始仅有变量a中有确定的值。变量为单个小写字母, 每行恰好有三个字符,中间一个是赋值运算符'='。 请编程求出含N行的程序段运行以后有哪些变量中有确定的值。

Input Format

第一行:N (0<N<=10^6) 以下N行,每行3个字符,为一条语句.

Output Format

如果没有,输出 none 否则在一行中按字母表顺序给出所有有确定值的变量名,字母之间用空格分隔。

Sample

input

4
b=a
c=d
d=b
e=f

output

a b d

Hint

时间限制:1s1 \text {s}

20200810数组基本练习

Not Attended
Status
Done
Rule
ACM/ICPC
Problem
12
Start at
2020-8-10 9:48
End at
2020-8-11 9:48
Duration
24 hour(s)
Host
Partic.
43