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 <sstream>

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

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

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

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

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
		gets(Work[nCnt2]);

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

				strcpy(Work2, &Work[nCnt2][nCnt]);

				Work[nCnt2][nCnt] = '\0';

				strcpy(Work3, Work[nCnt2]);

				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 <iostream>
#include <math.h>
#include <algorithm>
using namespace std;

int main()
{
	int a,b,c;
	while(cin >>a >>b){
	c = a+b;
	int ret = 1;
	for(int i=1;;i++){
		if( c/pow(10,i)>=1){
			ret++;
		}else{
			break;
		}
	}
	cout <<ret <<endl;
    }
	return 0;
}

C++: //#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
//#include <cstdio>
//#include <cstdlib>
//#include <cmath>
#include <iostream>
#include <algorithm>
//#include <cstring>
#include <vector>
#include <string>
#include <map>
#include <list>
#include <queue>
#include <set>
using namespace std;

int main(void){

	int a, b;
	
	while(cin >> a >> b){
	
	string num = std::to_string(a+b);
	
	cout << num.size() << endl;
	}

	return 0;
}

/*
for(i=0;i<N;i++){
	cin >> X[i];
}


for(i=0;i<N;i++){
	for(j=0;j<N;j++){
		cin >> X[i][j];
	}
}
*/

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

using namespace std;

int main(){
	while (true){
	int a,b;
	cin>>a>>b;
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>99){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}
	}

C++: #include<iostream>
using namespace std;
int main(){
	int a,b,c,i;
	while( !(cin.eof())){
		cin >> a >> b;
		c = a + b;
		for(i = 0; c != 0; i++){
			c /= 10;
		}
		cout << i << endl;
	}
	return 0;
}

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

int main()
{
  int a, b, c, n;
  while(cin >> a){
  cin >> b;
  c = a + b;
  n = 0;
  while(c != 0){
    n++;
    c /= 10;
  }
  cout << n << "\n";
}

return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  long int a,b;
  int x[200];
  int n = 0;
  while(cin >> a >> b){
    x[n] = 0;
    a = a + b;
    while(1){
      a = a/10;
      if(a >= 10)
        x[n]++;
    }
    n++;
  }

  for(int i = 0; i < n; i++)
    cout << x[i] << '\n';

  return 0;
}

C++: #include<stdio.h>
main(){
  int a,b,ans;
  double c;
  int i;
  
  while(scanf("%d %d",&a,&b)!=EOF){
    
    c=a+b;
    
    for(i=1;i<=7;i++){
      c=c/10.0;
      if(c<1.0){
	ans=i;
	break;
      }
    }
    
    printf("%d\n",ans);
    
  }
  
  return 0;
  
}

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

int main() {
	int a, b;
	while (scanf("%d%d", &a, &b)) {
		int c = to_string(a + b).length();
		printf("%d\n", c);
	}
}

C++: #include <stdio.h>
#include <vector>
#include <algorithm>

int main(){
	
	int x ,y;
	while(	scanf("%d %d",&x,&y) != EOF){
		int z  = x+y;
		int digCnt = 1;
		while(z/10!=0){
			z/=10;
			digCnt++;
		}
		printf("%d",digCnt);
	}
	
	return 0;
}

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

int a, b;

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

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,c;
    while ( cin >> a >> b){
        if(cin.eof()){break;}
        c = a+b;
        if (c/1000000>=1)
            cout << "7" << endl;
        else if (c/100000>=1)
            cout << "6" << endl;
        else if (c/10000>=1)
            cout << "5" << endl;
        else if (c/1000>=1)
            cout << "4" a<< endl;
        else if (c/100>=1)
            cout << "3" << endl;
        else if (c/10>=1)
            cout << "2" << endl;
        else
            cout << "1" << endl;
    }
}

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

using namespace std;

int countDigit(int num){
	int i;
	for(i=1;pow(10,i)<=num;i++);
	return i;
}

int main(){
    int i,a,b;
    for(i=0;i<7;i++){
        scanf("%d %d",&a,&b);
        printf("%d\n",countDigit(a+b));
    }
    return 0;
}

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

template<class T>
T input()
{
	T val;
	std::cin >> val;
	return val;
}

int main()
{
	std::vector<int> a;
	for (int i = 0; i < 200; ++i){
		a.push_back(input<int>() + input<int>());
		std::cout << static_cast<int>(log10(a[i]))+1 << std::endl;
	}
	return 0;
}

C++: #include<stdio.h>

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

C++: #include<iostream>
using namespace std;
int main (){
	int a,b,gou,p,i,j;
	for(i=0;i<200;i++){
		p=0;
		gou=0;
		j=0;
		cin>>a>>b;
		gou=a+b;
		for(;;){
			if(gou>0&&(a<=1000000&&a>=0)&&(b<=1000000&&b>=0)){
				p++;
			}
			else {
				j=2;
				break;
			}
			gou=gou/10;
		}
		if(j!=2){
		cout<<p<<endl;
		}
	}
	return 0;
}

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

int main(){
	int a, b, num;
	
	cin >> a >> b;
	num = a * b;
	cout << (int)log10(num) + 1 << endl;
    return 0;
}

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

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

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

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

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

C++: #include <cstdio>
int main(){
 int d,n,a,b,; 
 while(true){
  d=0;
  if (scanf("%d %d",&a,&b)==0) break;
  n=a+b;
  while(n>0) { d++, n/=10 };
  printf("%d\n",d);
  return 0;
};

C++: #include<iostream>
using namespace std;
int main(){
	
	while(1){
		int a,b,sum,keta=0;
		cin >> a >> b;
		sum=a+b;
		while(1){
			if(sum<10){keta=keta+1;cout << keta << endl;break;}
			else sum=sum/10;keta=keta+1;
		}
	}
	return 0;
}

C++: #include <iostream>

int main(){
	int a, b ,i ,n ;
	while(std::cin>>a>>b){
	i=1;
	for(n=1;a+b>=i*10;n++){
	if(a+b>=i*10){
	i=i*10;
	}
	}
	std::cout<<n<<std::endl;
}
return 0;
}

C++: #include<stdioi.h>
int main(void)
{
	int a,b,i,sum;
	
	while(scanf("%d %d",&a,&b)!=EOF) {
		sum=a+b;

		i=0;
		while(sum>0)	{
			sum=sum/10;
			i++;
		}
		printf("%d\n",i);
	}
	return 0;
}

C++: include <cstdio>
#include <iostream>
#include <cmath>
using namespace std;
int main() {
	int a, b;
	while(a != EOF) {
		cin >> a >> b;
		a += b;
		a = (int)log10((double)a) + 1;

		cout << a << endl;
	}
	return 0;
}