2433: 找字符

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:147 Solved:0

Description

给定两个字符串 从字符串2中找出字符串1中的所有字符 去重并按照ASCII码值从小到大排列 输入字符串1长度不超过1024 字符串2长度不超过100 字符范围满足ASCII编码要求,按照ASCII由小到大排序

Input

bach bbaaccddfg

Output

abc 2

Sample Input Copy

bach
bbaaccddfg

Sample Output Copy

abc
2

Source/Category