1545: 找字符

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

Description

给定两个字符串 

从字符串2中找出字符串1中的所有字符 

去重并按照ASCII码值从小到大排列

Input

字符串1长度不超过1024 

字符串2长度不超过100

Output

字符范围满足ASCII编码要求,按照ASCII由小到大排序

Sample Input Copy

bach
bbaaccddfg

Sample Output Copy

abc