Problem2120--Print duplicate characters

2120: Print duplicate characters

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

Description

This problem requires printing duplicate characters of string s1 and string s2.If the strings s1 and s2 do not have duplicate characters, print 0.

Input

Given string s1 and string s2

Output

Duplicate characters

Sample Input Copy

ZXC123,ZXC456

Sample Output Copy

ZXC

Source/Category

162