#include <bits/stdc++.h>
using namespace std;
int solution(int n)
{
int answer = 0;
while (n != 0)
{
answer += n % 10;
n /= 10;
}
return answer;
}
#include <bits/stdc++.h>
using namespace std;
int solution(int n)
{
int answer = 0;
string temp = to_string(n);
for (int i = 0; i < temp.size(); i++)
{
answer += (int)temp[i] - '0';
}
return answer;
}