#include <stdio.h>
#include <math.h>
int main( )
{
int number,i,j,k,l;
printf("Please enter a number = ");
scanf("%d",&number);
for(i=1;i<sqrt(number);i++)
for(j=0;j<=i;j++)
for(k=0;k<=j;k++)
for(l=0;l<=k;l++)
if(number==i*i+j*j+k*k+l*l){
printf("%d=%d*%d+%d*%d+%d*%d+%d*%d",number,i,i,j,j,k,k,l,l);
return 0;}
}