program proA
  implicit none
  integer a,b,c,d,i,j,k
  character *3 s

  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 (*,*) "Yes"
                    stop                    
                 end if
              end do
           end if
        end do
     end if
  end do

  write(*,*) "No"
  
end program proA
