program hbd
    implicit none
    integer ::a=0,b=0
    read(*,*)a,b
    if (1<=a .and. a<=8 .and. 1<=b .and. b<=8) then
        write(*,*) 'Yay!'
    else
        write(*,*) ':('
    endif
end program hbd