#C1253. Palindromic URL Path Checker

    ID: 41967 Type: Default 1000ms 256MiB

Palindromic URL Path Checker

Palindromic URL Path Checker

Given a URL in string format, your task is to check whether the path of the URL is a palindrome. The path of a URL is defined as the substring that appears after the domain part. For example, in the URL (http://www.example.com/madam\), the path is (madam). A string is considered a palindrome if it reads exactly the same forwards and backwards. If the path is a palindrome, print (Yes); otherwise, print (No).

inputFormat

A single line containing a URL string from standard input.

outputFormat

Print exactly one line to standard output: (Yes) if the path component of the URL is a palindrome, otherwise (No).## sample

http://www.example.com/madam
Yes