S1P3 - The GamE

 

Adam is playing a game with his son Abd-rabo. The game is simple, Adam just thinks about a word with 3 characters long
and gives Abd-rabo the first 2 characters of it and asks him to guess the third. (Your favourite part) Abd-rabo needs your
help guessing the third character known that the distance between the first 2 characters is the same as the distance between
the last 2 characters in the word, example of valid worls: ABC ACE CBA XYZ ZYX and so on 
Print the whole word
Notice that all characters are uppercase english alphabets from A to Z, 3rd character will not round
which means no input like (Y Z) or (B A)
Input
c1: character A..Z
c2: character A..Z

 

Adam is playing a game with his son Abd-rabo. The game is simple, Adam just thinks about a word with 3 characters long and gives Abd-rabo the first 2 characters of it and asks him to guess the third. (Your favourite part) Abd-rabo needs your help guessing the third character known that the distance between the first 2 characters is the same as the distance between the last 2 characters in the word,

example of valid words: ABC ACE CBA XYZ ZYX and so on 

Print the whole word

 

Notice that all characters are uppercase english alphabets from A to Z, 3rd character will not round

which means no input like (Y Z) or (B A)

 

 

 

Input

 

c1: character A..Z

c2: character A..Z

 

Output

One line with the three characters after each other

Example

Input:
A C

Output:
ACE

Added by:mohamed gamal
Date:2012-01-27
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:ASM32-GCC MAWK BC C-CLANG NCSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH GOSU GRV JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SQLITE SWIFT UNLAMBDA VB.NET

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.