program iroha_easy
    implicit none
    integer a, b, c
    read *, a, b, c
    if(a .eq. 5 .and. b .eq. 5 .and. c .eq. 7)then
        print *, 'YES'
    else if(a .eq. 5 .and. b .eq. 7 .and. c .eq. 5)then
        print *, 'YES'
    else if(a .eq. 7 .and. b .eq. 5 .and. c .eq. 5)then
        print *, 'YES'
    else
        print *, 'NO'
    end if
end program