program main
	implicit none
	real*8 c
	integer h,n,w
	read(*,*)c
	c=4/c
	do h=1,3500
		do n=h,3500
			do w=n,3500
				if(abs(c-(1/real(n)+1/real(h)+1/real(w)))<=0.000001)goto 10 
			enddo
		enddo
	enddo
10 write(*,*)h,n,w
end program main
