-- Try AtCoder
-- author: Leonardone @ NEETSDKASU

main = interact $ maybe "Yes" id . (`lookup` [(True, "No")]) . all null . map (foldl1 (((maybe "" id . (`lookup` [(True, "@")])) .) . all . (==) . head) . replicate 2 . take 3) . zipWith drop [0 .. 3] . replicate 4 . cycle
