c)
#include<iostream>
using namespace std;
int main()
{
int n, m;
cin >> n;
m = 0;
for (int i = 1; i <= n; i++)
{
int x;
cin >> x;
while (x % 10 > (int)(x / 10) % 10)
{
x = (int)(x/10);
}
m = m + x;
}
if (m > 0)
cout << m;
else
cout << "niciunul";
return 0;
}
a) 2020
b) 1234 5678 9101