Question 5
class Question5
{
    public static void main(int n)
    {
        int dup=n,s=0,p=1,dig=0;
        while(dup!=0)
        {
            dig=dup%10;
            s+=dig;
            p*=dig;
            dup/=10;
        }
        if(s==p)
        System.out.println(n+" is a Spy Number");
        else
        System.out.println(n+" is Not a Spy Number");
    }
}