character s*3
integer a,b,c,d,i,j,k

read*, s
do i=1,3
   if(s(i:i)=="a")then
      do j=1,3
         if ( s(j:j)=="b" ) then
            do k =1,3
               if ( s(k:k)=="c" ) then
                  write (*,"(A)") "Yes"
                  stop                    
               end if
            end do
         end if
      end do
   end if
end do

write(*,"(A)") "No"
end