4
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int g = n/1%10;
int s = n/10%10;
int d = n/100%10;
int p = n/1000%10;
cout<<g+s+d+p<<endl;
return 0;
}
5
#include<iostream>
using namespace std;
int main()
{
int n;
cin>>n;
int g = n/1%10;
int s = n/10%10;
int b = n/100%10;
int p = n/1000%10;
int z = g*10+s;
int u = b*10+p;
int m = z+u;
float o = 1.0*z/u;
cout<<m<<endl;
cout<<o<<endl;
return 0;
}