logo AlgoBeat OnlineJudge
登录 注册

#217035. [NWERC 2020] Keyboardd

内存限制:512 MiB 时间限制:1000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

Oh no! Joanna just spilled some syrup on her keyboard and now some of the keys are sticky. This causes her considerable frustration, as every time she presses one of the sticky keys, the corresponding character gets entered twice on her computer.

This could not have happened at a more inconvenient time; it is the start of the contest and she was just about to type in the solution to the first problem! Joanna does not have time to remove and clean every key on her keyboard, so she wonders if there is a way to quickly identify the sticky keys. Starting to panic, she quickly types some text on her keyboard and stares at the resulting text displayed on her screen.

Given the line of text that Joanna typed on her keyboard and the resulting text displayed on her screen, help her determine which keys must be sticky.

输入格式

The input consists of:

  • One line containing a string (), the text that Joanna typed on her keyboard.

  • One line containing a string (), the text displayed on Joanna's screen as a result.

Both and consist only of lower-case letters ("a'--"z') and spaces (" '), and start and end with a letter.

It is guaranteed that is the result of doubling each character in that corresponds to a sticky key. At least one character in corresponds to a sticky key (i.e. ).

输出格式

Output all characters (letters and space) corresponding to keys that must be sticky, in any order.

样例

样例输入 1

this is very annoying
thiss iss veery annoying

样例输出 1

se

样例输入 2

so sticky
ssoo  ssttiicckkyy

样例输出 2

its yock