Go: package main

import (
  "fmt"
  "unicode/utf8"
)


func main() {
  var a int
  var b int
  for _, err := fmt.Scan(&a, &b); err == nil; _, err = fmt.Scan(&a, &b) {
    fmt.Println(utf8.RuneCountInString(fmt.Sprint(a+b)))
  }
}

C++: #include<cstdio>
int main(void){
int a,b,i,s;
while(scanf("%d",&a)!=EOF){
 scanf("%d",&b);
 s=a+b;
 for(i=1;s>0;i++){
  s/=10;
 }
 printf("%d\n",i);
}
return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
  int a,b,ans=0;
  cin >> a >> b;
  a += b;
  while(a >= 1){
    a /= 10;
    ans++;
  }
  cout << ans << endl;
}

C++: #include <iostream>
#include <conio.h>
using namespace std ;

int datas[2][200] ;
int datanum ;

int sum[200] ;
int solve[200] ;

int main()
{
	cin >> datanum ;

	for( int i = 0 ; i < datanum ; i ++ )
	{
		cin >> datas[0][i] ;
		cin >> datas[1][i] ;

		sum[i] = datas[0][i] + datas[1][i] ;
	}

	for( int i = 0 ; i < datanum ; i ++ )
	{
		for( int j = 1 ; j < 7 ; j ++ )
		{
			if( (sum[i] / 10*j) < 10 )
			{
				solve[i] = j+1 ;
				j = 10 ;

				cout << solve[i] << "\n" ;
			}
		}
	}

	_getch() ;
	return 0 ;
}

C++: #include <bits/stdc++.h>
using namespace std;
int a, b;
int main() {
    while(cin >> a >> b) {
        cout << (int)(log10(a + b)) + 1 << endl;
    }
}

C++: #include<iostream>
#include<stdio.h>
using namespace std;
int main() {
	const int DAT_LIMIT = 200;
	int a,b;
	int cnt = 0;
	while(cin >> a >> b && cnt < DAT_LIMIT) {
		int c = a+b;
		int digit = 1;
		while(c / 10 != 0) {
			digit++;
			c = c / 10;
		}
		cout << digit << endl;
		cnt++;
	}
	return 0;
}

C++: #include<iostream>
#include<vector>
#include<math.h>
using namespace std;

int main(){
  int a, b, out=0;

  cin >> a >> b;
  a += b;
  while(a != 0){
    a /= 10;
    out++;
  }

  cout << out << endl;

	return 0;
}

C++: #include <stdio.h>
#include <math.h>

int main(void) {
  int a, b;
  while(scanf("%d%d", &a, &b)) {
    int c = a + b;
    int d = (int)log10(c);
    printf("%d\n", d);
  }
  return 0;
}

C++: #include <stdio.h>

int main()
{
    int a, b, n, result;
    
    while (scanf("%d %d", &a, &b) != EOF) {
        n = a + b;
        result = 0;
        
        while (n != 0) {
            n /= 10;
            result++;
        }
        
        printf("%d\n", result);
    }
    
    return 0;
}

C++: #include<cstdio>
#include<iostream>
#include<algorithm>
#include<vector>
#include<set>
#include<functional>
#include<queue>
#include<math.h>
#define INF 999999

using namespace std;

int main()
{
	int ans[210];

	int a, b;
	int k = 0;
	while(cin>>a>>b){
			int c = a + b;
			int d = c;
			int count = 0;
			while (d != 0) {
				d = d / 10;
				count++;
			}
			ans[k] = count;
			k++;
		
	}

	for (int i = 0; i < k; i++) {
		cout << ans[i] << endl;
	}

	return 0;
}

C++: #include<cstdio>

int main(){

	int a, b, sum=0, x;
	scanf("%d, %d", a, b);
	sum = a+b;

	if(sum<10) x=1;
	else if(10<=sum && sum<100) x=2;
	else if(100<=sum && sum<1000) x=3;
	else if(1000<=sum && sum<10000) x=4;
	else if(10000<=sum && sum<100000) x=5;
	else if(100000<=sum && sum<1000000) x=6;

	printf("%d",x);

	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;

int main()
{
    int a, b;
    while (scanf("%d %d", &a, &b) != EOF) {
        int temp = a + b;
        int dig = (int)log10((double)temp) + 1;
        cout << dig << endl;
    }
}

C++: #include<iostream> 
#include<cstdio>
using namespace std; 
int main() 
{ int a,b; while(scanf("%d%d",&a,&b)!=EOF) 
{ int x=a+b; int cnt=0; 
while(x) { cnt++; x/=10; } 
cout <<cnt<<endl;
} 
return 0; 
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cstring>
#include <climits>
#include <algorithm>
#include <map>

using namespace std;

int main() {
    int a, b;
    while (cin >> a >> b) {
        int sum = a + b;
        int res = 1;
        while (sum >= 10) {
            res ++;
            sum /= 10;
        }
        cout << res << endl;
    }
    return 0;
}

C++: #include <iostream>
using namespace std;

int main()
{
	int a,b,sum;
	int count = 1;

	cin >> a >> b;
	sum = a + b;
	
	while(sum > 1){

		sum = sum / 10;
		count++;
	}

	cout << count << endl;


	return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main (){
    int a[1000000],b[1000000];
    for(int i=0;i<200;i++){
        cin>>a[i]>>b[i];
        a[i]+b[i];
        if(a[i]+b[i]<10){
        cout<<"1"<<endl;
        }
        else if(a[i]+b[i]<100){
        cout<<"2"<<endl;
        }
        else if(a[i]+b[i]<1000){
            cout<<"3"<<endl;
        }
        else if(a[i]+b[i]<10000){
            cout<<"4"<<endl;
        }
        else if(a[i]+b[i]<100000){
            cout<<"5"<<endl;
        }
        else if(a[i]+b[i]<1000000){
            cout<<"6"<<endl;
        }
    }
    return 0;
}

C++: #include<iostream>
#include<stdio.h>

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int i;

while(1){

	// 値の入力
	cin >> num1 >> num2;

	//整形
	sprintf_s(str,"%d\0",(num1 + num2));

	// 文字数計測
	for(i=0;str[i] != '\0';i++){
	}

	// 文字数表示
	cout << i << endl;

}

	return 0;
}

C++: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project
{
    class Test
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] numbers=input.Split(' ');
            int  answer = Convert.ToInt16(numbers[0]) +Convert.ToInt16( numbers[1]);
             string amswer1 = Convert.ToString(answer);
            Console.WriteLine((amswer1.Length));
        }
    }
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>

using namespace std;

int main (int argc, char *argv[]) {
    int a, b;
    while (cin>>a>>b) {
        int sum = a + b;
        int cnt = 1;
        while (sum/10) {
            cnt++;
        }
        cout<<cnt<<endl;
    }
    return 0;
}

C++: #include <bits/stdc++.h>
#include <cstdio>
using namespace std;

int a;
int b;

int main() {
  while (cin >> a >> b != EOF) {
    int i;
    a = a + b;
    while(a > 0) {
      a = a / 10;
      ++i;
    }
    
    cout << i << endl;
    
  }
}

C++: #include<stdio.h>
int main(){
		int a,b,c,count=0;
	while(scanf("%d %d",&a,&b)!=EOF){
		count = 0;
		c = a+b;
		while(1){
			c = c /10;
			count++;
			if(c==0)	break;
		}
		printf("%d\n",count);
	}
}

C++: #include <stdio.h>

int main(void) {
	int input1, input2;      /* 入力値 */
	int buff;               /* 計算値バッファ */
	int i;                     /* loopcounter */

	while (scanf("%d %d", &input1, &input2) != EOF) {

		buff = input1 + input2;
		i = 1;

		while (buff >= 10) {
			buff /= 10;
			i++;
		}

		printf("%d\n", i);
	}


	return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <cmath>
using namespace std;

#define FOR(i,s,e) for (int i = int(s); i != int(e); i++)
#define REP(i,e) for (int i = 0; i != int(e); i++)
#define FORIT(i, A) for (auto i : A)
#define ISEQ(c) (c).begin(), (c).end()
#define PRINT(x) cout << (x) << endl
#define SZ(x) ((int)(x).size())

int main(int argc, char const *argv[])
{

	int a, b;
	while(scanf("%d %d", &a, &b) != EOF)
	{
		int sum = a+b;	
		int digit = 0;
		while(sum)
		{
			digit++;
			sum /= 10;
		} 
		printf("%d\n", digit);
	}
	return 0;
}

C++: #include <iostream>
#include <sstream>
#include <string>

using namespace std;

int counts(string num) {
	int count = 0;
	for (int i = 0; i < ; i++) {
		if (num[i] != "0") count++;
	}
	return count;
}

int main() {
	for (int a, b; cin >> a >> b && a && b) {
		string stream as;
		as << a;
		string stream bs;
		bs << b;
		cout << counts(as)+counts(bs) << endl;
	}
}