Amin's riddle#11425

Amin's riddle

1 second
128 megabytes
Medium

Amin Rasulzada is a second-year student at SITE, ADA University, who is preparing for the DSA midterm this Sunday. After finishing all the problems, he decides to prepare a riddle for his classmates. So he begins his story...

OnCe uPoN A TiMe, AmIn - aN ADA UnIvErSiTy sTuDeNt, WaS WoRkInG On a cOdInG PrOjEcT WhEn hE AcCiDeNtAlLy
SpIlLeD CoFfEe aLl oVeR HiS LaPtOp. PaNiCkEd, He rUsHeD To tHe iT DePaRtMeNt fOr hElP. tO HiS SuRpRiSe,
ThE It sTaFf wAs aBlE To rEcOvEr aLl oF HiS DaTa aNd fIx tHe lApToP, sAvInG HiS PrOjEcT FrOm dIsAsTeR.
GrAtEfUl fOr tHeIr hElP, aMiN MaDe sUrE To bAcK Up hIs wOrK ReGuLaRlY FrOm tHeN On.

The professor sees this unusual text and decides whether it is acceptable or not, according to some mysterious algorithm in his mind. You must figure out the algorithm and solve Amin's riddle.

As a hint, Amin gives you the following: ADA as a separate word always consists of only capital letters.

Input

The input consists of a text containing Latin letters, spaces, and the symbols '.' and ','.

Output

Print Yes if the condition is met, otherwise print No.

Examples

Example 1

Loading
Loading