using System;
public class Program
{
public static void Main()
int n,fn,sn,tn,frn,a,b,c,res=0;
Console.WriteLine("Enter any Four number :");
n = Convert.ToInt32(Console.ReadLine());
fn = n/1000;
a = n - (fn*1000);
sn = a/100;
b = a - (sn*100);
tn = b/10;
c = b - (tn*10);
frn = c;
res = fn + sn + tn + frn;
Console.WriteLine("{0} + {1} + {2} + {3} = {4}", fn, sn, tn, frn, res);
}