Bessarion Station is perhaps the TTC's most unique subway station as the mystery behind it has attracted countless urban explorers. In fact, it's the only station that has a 5-star review on Google and a "documentary" that uncovers its secrets.
Many of them have suggested places of where the station might be, and have sent you various lists of stations. Knowing that it is next to both Leslie and Bayview stations, output Y
if the list is valid or N
if it is not.
Input Specification
The first line contains , the number of stations.
The next lines contain the name of the station.
Output Specification
Output Y
if the list is valid or N
if it is not.
Sample Input 1
5
Sheppard-Yonge
Bayview
Bessarion
Leslie
Don Mills
Sample Output 1
Y
Sample Input 2
4
Leslie
Queen's Park
Bessarion
Bayview
Sample Output 2
N
Comments
final edit: i've been banned from the problem
RIP
This comment is hidden due to too much negative feedback. Show it anyway.
The review is actually 4.4 stars.
Can a station name be repeated?