Best Essay Writing Service logo
  • My account
  • Order now
Order Now
Uncategorized

A. Translation

1 min read
Posted on 
August 28th, 2022
Home Uncategorized A. Translation

Learning Goal: I’m working on a c programming question and need an explanation and answer to help me learn.

The translation from the Berland language into the Birland language is not an easy task. Those languages are very similar: a berlandish word differs from a birlandish word with the same meaning a little: it is spelled (and pronounced) reversely. For example, a Berlandish word code corresponds to a Birlandish word edoc. However, it’s easy to make a mistake during the «translation». Vasya translated word s from Berlandish into Birlandish as t. Help him: find out if he translated the word correctly.

Input

The first line contains word s, the second line contains word t. The words consist of lowercase Latin letters. The input data do not consist unnecessary spaces. The words are not empty and their lengths do not exceed 100 symbols.

Output

If the word t is a word s, written reversely, print YES, otherwise print NO.

Examples:

input

code
edoc

output

YES

input

abb
aba

output

NO

Order an Essay Now & Get These Features For Free:

Turnitin Report

Formatting

Title Page

Citation

Outline

Place an Order
Share
Tweet
Share
Tweet
Calculate the price
Pages (275 words)
$0.00
Best Essay Writing Service
Company
Legal
How Our Service is Used:
Best Essay Writing Service essays are NOT intended to be forwarded as finalized work as it is only strictly meant to be used for research and study purposes. Best Essay Writing Service does not endorse or condone any type of plagiarism.
Subscribe
No Spam
© 2023 Best Essay Writing Service. All rights reserved.
Best Essay Writing Service will be listed as ‘Best Essay Writing Service’ on your bank statement.