program main
implicit none
integer :: a, b, c

read(*,*) a, b, c
if( a==5 ) then
   if( b== 5 ) then
      if( c == 7 ) then
         write(*,*) 'YES'
         stop
      end if
   else if( b == 7 ) then
      if ( c== 5 ) then
         write(*,*) 'YES'
         stop
      end if
   end if
else if( a== 7 ) then
   if( b==5.and.c==5 ) then
      write(*,*) 'YES'
      stop
   end if
end if
write(*,*) 'NO'


end program main
