Snake Jazz
Statement
Goal
Recently a new planet with intelligent life has been discovered - but apparently the prevalent intelligent species are snakes!Humans have been trying to establish communications, but so far there has been little success.
The only rules that could be established are the following:
1. All Vowels (a, e, i, o, u) are represented by the letter z.
2. All Consonants are represented by the letter s.
3. Punctuation and Capitalization seem to be the same as in the human language.
Maybe you could lend your aid?
Translate the received transmission (using n words from your snake-to-english dictionary) into understandable text. Take case and punctuation into account!
Input
First Line: n an integer for the number of words in your dictionary.
Next n Lines: A word from your given dictionary.
Last Line: The transmission from the snake planet.
Next n Lines: A word from your given dictionary.
Last Line: The transmission from the snake planet.
Output
The translated text.
Constraints
2 ≤ n ≤ 8
2 ≤ Length of each word ≤ 16
12 ≤ Length of transmission ≤ 55
Each word is unique in both the human and the snake language and will be used exactly once.
2 ≤ Length of each word ≤ 16
12 ≤ Length of transmission ≤ 55
Each word is unique in both the human and the snake language and will be used exactly once.
Example
Input
2 hello human Szssz Szszs!
Output
Hello Human!
Game modes
Fastest, Shortest, Reverse
Test cases
Hello Human Test
Input
2
hello
human
Szssz Szszs!
Output
Hello Human!
Validator 1 Validator
Input
2
hello
world
Szssz Szsss!
Output
Hello World!
How are you Test
Input
3
are
how
you
Szs zsz szz?
Output
How are you?
Validator 2 Validator
Input
3
are
where
you
Sszsz zsz szz?
Output
Where are you?
Awkward Test
Input
4
awkward
is
this
well
Szss, sszs zs zssszss.
Output
Well, this is awkward.
Validator 3 Validator
Input
4
awkward
is
this
well
Zssszss, szss sszs zs.
Output
Awkward, well this is.
TV Test
Input
8
cable
come
go
interdimensional
lets
on
together
watch
Szsz zs, szss sz szsss Zsszsszszsszzszs Szssz szszsszs.
Output
Come on, lets go watch Interdimensional Cable together.
Validator 4 Validator
Input
8
be
but
could
greatly
improved
oh
this
well
Sszs szzss sz sszzsss zssszszs, szs zs szss.
Output
This could be greatly improved, but oh well.
Music Test
Input
5
for
jazz
snake
some
you
Szsz Sszsz Szss szs szz.
Output
Some Snake Jazz for you.
Validator 5 Validator
Input
4
can
hear
it
you
Szs szz szzs zs?
Output
Can you hear it?
Actual Snake Jazz Test
Input
5
sszz
sszzz
ssszzz
sssszzz
ssssszzzz
Ssss sssss ssssSss ssssss sssssSsss
Output
Sszz sszzz ssssZzz ssszzz sssssZzzz
Validator 6 Validator
Input
5
sszz
sszzz
ssszzz
sssszzz
ssssszzzz
sssssSsss Ssss sssss ssssSss ssssss
Output
sssssZzzz Sszz sszzz ssssZzz ssszzz
Solution language
Solution
Stub generator input