integer N
integer i,j,k
integer check
read*,N
do i=1,3500
  do j=1,3500
  check=4*i*j-N*i- N*j
  if(check<=0)cycle
  if(mod(N*i*j,check)==0)then
    print"(i0,A,i0,A,i0)",i," ",j," ",(N*i*j)/check
    stop
  endif
  
  end do
end do
end