Editorial asta sekinlik bilan beriladi. Videosini SHU KANALDAN OLISHINGIZ MUMKIN
#A
n=input().strip()
n_sonda=sum(int(digit) for digit in n)
print(str(n_sonda))
#B
#include <iostream>
#include <string>
#include <unordered_set>
using namespace std;
string solve(string s){
unordered_set<char> leftSide{'w','p','b','s'};
unordered_set<char> rightSide{'m','q','d','z'};
int leftScore = 0;
int rightScore = 0;
for(char ch : s){
if(leftSide.count(ch)){
leftScore++;
}else if(rightSide.count(ch)){
rightScore++;
}
}
if(leftScore>rightScore) return "Left side wins!";
else if(rightScore>leftScore) return "Right side wins!";
else return "Let's fight again!";
}
int main()
{
string input;
cin >> input;
cout << solve(input) << endl;
}