Problem1030--集合的交

1030: 集合的交

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 5054  Solved: 3830
[Submit] [Status] [Web Board] [Creator:]

Description

森森森喜欢求两个集合的交,请你帮她求一下吧。

Input

输入两行,每行表示一个集合,每个集合的元素(均为数字)以一个空格分隔。

Output

输出一行表示集合。

Sample Input

1 2 3 4 5 6 7
2 8 9 18 28

Sample Output

{2}

HINT

推荐直接将一行字符串转换为集合。

Source/Category


[Submit] [Status]