#include <iostream>
using namespace std;
signed main(){
int n, cnt = 0, sum = 0;
cin >> n;
while(n > 0){
cnt++;
sum += n % 10;
n /= 10;
}
cout << "amount of digits : " << cnt << "\n";
cout << "sum of digits : " << sum;
#include <iostream>
using namespace std;
signed main(){
int n, cnt = 0, sum = 0;
cin >> n;
while(n > 0){
cnt++;
sum += n % 10;
n /= 10;
}
cout << "amount of digits : " << cnt << "\n";
cout << "sum of digits : " << sum;
}