QOJ.ac

QOJ

حد الوقت: 1 s حد الذاكرة: 1024 MB مجموع النقاط: 100 قابلة للهجوم ✓

#18388. 태권도와 복싱을 합한 운동

الإحصائيات

**태보권도와 *싱을 합한 운동입니다!

TAE BO DIET, 2003

쿠옹이는 태보를 보고, 이런 생각이 들었다. '태권도와 복싱을 합해서 태보면 양궁과 파워리프팅을 합하면 양파인가? 나도 운동 하나 만들어 볼까?'

운동 $A$와 $B$의 이름을 합치면 $A$의 첫음절과 $B$의 첫음절을 이어 붙인 이름의 새로운 운동이 만들어진다. 만약 둘 중 하나라도 첫음절이 존재하지 않는다면 새로운 운동의 이름을 만들 수 없다.

문자열의 첫음절이란 문자열의 첫 번째 모음을 포함하고 그다음 나오는 첫 번째 자음을 포함하지 않는 접두사 중 가장 긴 접두사이다. 만약 모음이 없거나 첫 번째 모음 이후 자음이 없다면 첫음절은 존재하지 않는다. 다음은 여러 문자열의 첫음절의 예시이다.

  • taekwondo $\rightarrow$ tae
  • boxing $\rightarrow$ bo
  • tae는 모음이 없어 첫음절이 존재하지 않는다.
  • ski는 모음은 있지만 첫 모음 이후 자음이 없어 첫음절이 존재하지 않는다.

모음은 a, e, i, o, u의 5가지 문자를 말하며, 자음은 이 5가지를 제외한 모든 문자를 말한다.

쿠옹이가 새롭게 만들 운동의 이름을 출력해 보자.

Input

첫째 줄에 운동 $A$의 이름 $S_A$($1 \le |S_A| \le 100$)이 주어진다.

둘째 줄에 운동 $B$의 이름 $S_B$($1 \le |S_B| \le 100$)이 주어진다.

운동의 이름은 모두 영어 알파벳 소문자만으로 구성되어 있다.

Output

운동 $A$와 운동 $B$의 이름을 합한 새로운 운동의 이름을 출력하라.

만약 주어진 규칙에 따라 운동의 이름을 만들 수 없다면, 대신 no such exercise를 출력하라.

Examples

Input 1

taekwondo
boxing

Output 1

taebo

Input 2

swimming
racing

Output 2

swira

Input 3

mtb
running

Output 3

no such exercise

Input 4

archery
powerlifting

Output 4

apo

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.