program main
	implicit none
    character(5)::s
    integer::len1,i,j
    read(*,*)s
    len1=len_trim(s)
    if(len1==2)then
    	if(s=='AC')then
        	write(*,*)'Yes'
        else
        	write(*,*)'No'
        end if
    else
    	do i=1,len1
    		do j=2,len1-1
            	if(s(i.j)=='AC')then
                	write(*,*)'Yes'
                    stop
                end if
            end do
        end do
        write(*,*) 'No'
    end if
    stop
end program main
    