#include <stdio.h>
#include <math.h>
int main(){
int N,sum_value=0,num=0;
if (scanf("%d",&N)!=0 && N<=pow(10,9)){
while (N!=0){
num = num+1;
sum_value = sum_value + N%10;
N = N/10;
}
printf("%d %d",num,sum_value);
}else{
printf("something wrong");
}
return 0;
}