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<iostream>
using namespace std;
int main(){
	int a=0,b=0;
	for(;;){
		cin>>a>>b;
		if(a+b<10)cout<<"1"<<endl;
		if(a+b<100)cout<<"2"<<endl;
		if(a+b<1000)cout<<"3"<<endl;
		if(a+b<10000)cout<<"4"<<endl;
		if(a+b<100000)cout<<"5"<<endl;
		if(a+b<1000000)cout<<"6"<<endl;
		if(a+b<10000000)cout<<"7"<<endl;
		if(a+b<100000000)cout<<"8"<<endl;
		if(a+b<1000000000)cout<<"9"<<endl;
	}
}

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

int main()
{
	string strNumber;
	long long int iNumberA,iNumberB,iLength[256],i=0;

	while( i < 200 ){
		cin >> iNumberA;
		cin >> iNumberB;

		strNumber = to_string( iNumberA+iNumberB );

		iLength[i] = strNumber.length();

		i++;
	}

	for( int i=0;i<200;i++ ){
		if( iLength[i] == 0 ) break;

		cout << iLength[i] << endl;
	}

	return 0;
}

C++: #define scanf_s scanf
#include <stdio.h>
//#include <iostream>
//using namespace std;
#define MAX 200
int main(void)
{
	int a, b, i, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		printf("%d\n", ans[cou]);

		++cou;
	}
	for (i = 0; i < cou; ++i) {
		if (i != 0) printf("\n");
		printf("%d", ans[i]);
	}
}

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
		string S=to_string(a+b);cout<<S.size()<<endl;
	}
	return 0;
}

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

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

#pragma warning(disable:4996)
int main()
{
	char Work[256];

	int Num[2];
	int Divide;
	int nCnt2,nCnt = 0, Result, Keta = 1;

	while (gets(Work))
	{
		for (nCnt = 0; Work[nCnt] != '\0'; nCnt++)
		{
			if (Work[nCnt] == ' ')
			{
				char Work2[256];
				char Work3[256];

				strcpy(Work2, &Work[nCnt]);

				Work[nCnt] = '\0';

				strcpy(Work3, Work);

				Num[0] = atoi(Work3);
				Num[1] = atoi(Work2);
				break;
			}
		}

		Result = Num[0] + Num[1];

		Keta = 1;
		for (nCnt = 0; ;nCnt++)
		{
			Result = Result / 10.0f;

			if (Result > 0)
				Keta++;
			else
				break;
		}

		printf("%d\n", Keta);
	}
	
	return 0;
}

C++: #include<stdio.h>
int main(){
  int a,b,j,ab,total=1;
  while(scanf("%d %d",&a,&b)!=EOF){
    ab=a+b;
    total=1;
    int i=10;
    for(j=0;j<6;j++){
      if(ab/i>=1){
	total++;
      }
      i=10*i;
    }
    printf("%d\n",total);
  }
  return(0);
}

C++: #include <iostream>
using namespace std;
int calc(int);

int main(){
    int a;
    int b;
    while(cin>>a>>b){
        cout << calc(a+b) <<"\n";
    }
	
    return 0;
}

int calc(int value){
    int count = 1;
    while((value /= 10) != 0){
        count++;
    }
    return count;
}

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

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

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>

using namespace std;

int main()
{
	char buf[2000];
	int a,b,c;
	clock_t start,end;

	start=clock();

	while(1){
		c=1;
		cin>>a>>b;

		a+=b; while(a/=10) c++;

		cout<<c<<endl;

		end=clock();

		if((double)(end-start)/CLOCKS_PER_SEC > 0.9) return 0;
	}

}

C++: #include <stdio.h>

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

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

C++: #include<iostream>
using namespace std;
int main(){
  int x,y;
  while(cin >>x>>y){
    int c = x+y;
    for(int i=1;;i++){
      c/=10;
      if(c == 0){cout <<i<<endl;break;}
    }
  }
  return 0;
}

C++: #include <stdio.h>

int main() {
    
    int l, m, n, i;
    
    while (1) {
        
        if(scanf("%d %d", &l, &m) == EOF) break;
        
        n = l + m;
        
        for (i = 1; n > 9; i++) {
            n /= 10;
        }
        
        
        printf("%d\n", i);
        
    }
    return 0;
}

C++: #include <iostream>
#include <cmath>

int main()
{
    do {
        int a, b;
        std::cin >> a >> b;
        std::cout << floor(log10((double)a + b)) + 1 << std::endl;
    } while (std::cin);
}

C++: #include <bits/stdc++.h>
 
using namespace std;
 
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define FOR(i, s, n) for(int i = s; i < (int)n; i++)
#define per(i, n) for(int i = n; i >= 0; i--)
#define ROF(i, s, n) for(int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i)
#define SZ(a) int((a).size())
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define INF 1 << 25
#define CLR(a) memset((a), 0 ,sizeof(a))
#define dump(x) cerr << #x << " = " << (x) << "\n";
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n";
#define sq(n) (n) * (n)
 
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef unsigned int uint;
typedef unsigned long long ull;
 
const double EPS = 1e-10;
const double PI = acos( -1.0 );
 
int a, b;

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

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

int main()
{
	int a,b;
	while(cin>>a>>b)
	{
		for(int i=1;i<=6;i++)
			if(a+b<pow(10,i))
			{
				cout<<i<<endl;
				break;
			}
	}
}

C++: #include <iostream>
#include <sstream>      // std::ostringstream
using namespace std;
    template < typename T > std::string to_string( const T& n )
    {
        std::ostringstream stm ;
        stm << n ;
        return stm.str() ;
    }

int i,a,b;
string s;

int main() {
	while(cin>>a>>b){
		a = a+b;
		s = to_string(a);
		cout << s.size() << endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

int main(){
	int a,b;
	while(cin>>a>>b){
		cout<<(int)log10(a+b)<<endl;
	}
	return 0;
}

C++: #include<stdio.h>
#include <string>
#include <iostream>
#include <vector>
#include <sstream>
using namespace std;



int main(void)
{
  //string stream s;
  ostringstream s;
  string os;
  int a,b,c;
  vector<int> array;
  int i=0;
  while(cin>>a>>b)
    {
      s <<(a+b);
	  os=s.str();
	  //cout<<os<<endl;
	  //cout<<os.size()<<endl;
      array.push_back(os.size());


    }

  while(i<array.size())
    {
      cout<<array[i]<<endl;
	  i++;
    }

}

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

using namespace std;

int main(void) {
	int a, b;
	
	while(cin >> a) {
		cin >> b;
		
		int sum;
		char ch[20];
		string strSum = "";
		
		sum = a + b;
		
		sprintf(ch, "%d", sum);
		strSum += string(ch);
		
		cout << strSum.size() << endl;
		
	}
	
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=0;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		if(cnt==120) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}