#include<stdio.h>
int main()
{
	int n,i,k,j;
	double sum;
	scanf("%d",&n);
	if(n%3==0) { printf("%d %d %d",n/3,n/3,n/3);return 0; }
	if(n%2==0) { printf("%d %d %d",n/2,n,n);return 0; }
	for(j=n/3;;j++)
	   for(i=1;i<=n/3;i++)
	      for(k=i;j<=j;k++)
	      {
	      	sum=n*1.0/i+n*1.0/j+n*1.0/k;
	      	if( (sum-4<=0.000000001&&sum-4>=0) || (4-sum<=0.000000001&&4-sum>=0) )
	      	{
	      		printf("%d %d %d %lf",i,k,j,sum);
	      		return 0;
			}
		  }
}