https://hack.codingblocks.com/app/contests/1240/p/160
#include
#include
using namespace std;
int main()
{
string s;
cin>>s;
int so=0,se=0;
for(int i=0;i<s.length();i++)
{
if(i%2==0)
{
so+=s[i]-‘0’;
}
else
{
se+=s[i]-‘0’;
}
}
cout<<se<<endl<<so<<endl;
return 0;
}
// Giving wrong answers on two test cases…