Amin's riddle
Medium
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Amin Rasulzada is a second year student of SITE, ADA University who prepares for DSA midterm this Sunday. All problems are done, and he decided to prepare a Riddle for classmates. so he starts 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.
Professor sees this unusual text and decides is it ok or no acording to some unexpected algorithm in his brain. You must find out the algorithm and solve Amin's riddle.
For help Amin presents you a hint: ADA as a single word always contains only capital letters.
Input
Text with Latin letters, spaces, symbols '.' and ','.
Output
Print Yes or No.
Examples
Input #1
Answer #1
Submissions 422
Acceptance rate 16%