program main integer a read(*,*)a if(a<=3)then a=4 elseif(mod(a,2)/=0)then a=a+1 endif write(*,*)a end program main