1)
#include <iostream>
using namespace std;
int main()
{
int n,S=0,P=1;
do
{
cin>>n;
if(n%2==0)
P=P*n;
else
S=S+n;
}while(n!=0);
cout<<S<<' '<<P;
return 0;
}
2)
#include <iostream>
using namespace std;
int main()
{
int n,k=0;
do
{
cin>>n;
if(n%5==0)
k=k+1;
}while(n!=0);
cout<<k;
return 0;
}