#include<stdio.h>
main()
{
	int n,a[100],i=0,j=0,t;
	int sum,m;
	while(~scanf("%d",&n))
	{
		m=n;
		sum=0;
		while(n)
		{
			t=n%10;
			a[i++]=t;
			n=n/10;
			sum+=t;
			j++;
		}
		if(m%sum==0)
		{
			printf("YES\n输入N=%d.S(%d)=",m,m);
			for(i=0;i<j-1;i++)
			{
				printf("%d + ",a[i]);
			}
			printf("%d=%d",a[j-1],sum);
			printf(",S(N) 能整除 N .\n ");
			
			
		}
		else
		{
			printf("NO\nS(%d)=",m);
			for(i=0;i<j-1;i++)
			{
				printf("%d +",a[i]);
			}
			printf("%d = %d,",a[j-1],sum);
			printf("S(N)不能整除 N.\n");
    	}
	}
}