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 Digit(int x)
{
    int i = 10;
    int digit = 0;

    while(x != 0)
    {
        x = x / i;
        digit++;
    }

    return digit;
}

int main()
{
    int a,b;

    while(cin >> a >> b)
    {
            cout << Digit(a+b) << endl;
    }

    return 0;
}

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

int main(void){
	int a,b,c,d,t;
	while(cin>>a>>b){
		t=a+b;
		
		c=t/1;
		if(c>=1) d=1;
		
		c=t/10;
		if(c>=1) d=2;
		
		c=t/100;
		if(c>=1) d=3;
		
		c=t/1000;
		if(c>=1) d=4;
		
		c=t/10000;
		if(c>=1) d=5;
		
		c=t/100000;
		if(c>=1) d=6;
		
		c=t/1000000;
		if(c>=1) d=7;
		
		cout<<d<<endl;
	}
	return 0;
}

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

using namespace std;

int main(void){

 int a,b;
 int ans;

 while(cin >> a >> b){
  ans=log10(a+b)+1;
  cout << ans << endl;
 }
}

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


int main()
{
   int a,b;
   int keta = 1;
   int i;
  
   cin >> a >> b;
   while(!cin.eof())
     {
       a+=b;
       while(a>=10){
         a/=10;
         keta++;
       }
       cout << keta << endl;
       cin >> a >> b;
       keta = 1;
     }
  
   return 0;
}

C++: #include<cstdio>
int main(){
	int n,n1,n2,count,a;
	while(sacnf("%d%d",&n1,&n2)!=EOF){
		count=0;
		a=n1+n2;
		while(a!=0){
			a=a/10;
			count++;
		}
	printf("%d",count);
	}
	return 0;
}

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

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

using namespace std;

#define Vi vector<int>
#define FOR(i,s,e) for (int i=s; i<e; i++)
#define ITER(v) v.begin(), v.end()

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int64_t a, b;
    int count;

    while (true) {
        cin >> a >> b;
        if (cin.eof()) { break; }
        int64_t sum = a + b;
        count = 1;
        while (sum >= 10) {
            sum /= 10;
            count++;
        }
        cout << count << endl;
    }

    return 0;
}

C++: #include <stdio.h>int main( void ){
   int l = 0;
while( l < 200 )    int a,b;    scanf( "%d %d",&a,&b );      a = a + b;       int n = 1;      int j = 0;      while( true ){            if( a / n >= 1 ) n *= 10;            else               break;          j++;          }      printf( "%d",j );
 l++;
 }return 0;}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main()
{
	int a,b,sum,i,k[100];
	while(scanf("%d%d",&a,&b)!=EOF)
	{
		sum=a+b;
		i=0;
		while(sum)
		{
			sum/=10;
			i++;
		}
		printf("%d\n\n",i);

	}
	return 0;
}

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

C++: #include<iostream>
#include<string>
int main() {
	int data1,data2,i;
	char a[100];
	while (1) {
		std::cin >> data1 >> data2;
		if (data1==EOF) break;
		data1 += data2;
		std::string aa = std::to_string(data1);
		for (i = 0; aa[i] != '\0'; i++) {

		}
		std::cout << i << std::endl;
	}
	return 0;
}

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

using namespace std;

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

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

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

C++: #include<iostream>

using namespace std;

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

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

using namespace std;

#define all(c) (c).begin(), (c).end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

int dx[4] = {1, 0, -1, 0};
int dy[4] = {0, 1, 0, -1};

int main() {
    int a, b;
    while (cin >> a >> b) {
        int s = a + b;
        int ans = log(1.0 * s) / log(10.0) + 1;
        cout << ans << endl;
    }

    return 0;
}

C++: #include <iostream>

int main(){
  int a, b, c;
  int i = 10;
  int num = 1;
  
  std::cin >> a;
  std::cin >> b;
  
  c = a + b;
  while(1){
    if(c/i!=0){
      num++;
      i *= 10;
    }else{
      break;
    }
  }
  std::cout << num << std::endl;
  
  return 0;
}

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

using namespace std;

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

C++: #include "bits/stdc++.h"
using namespace std;

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

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

#define MAX 256

int f(int z){
	if (z < 10)return 1;
	return 1 + f(z / 10);
}

int main(void){
	
	int ans[200];
	for (long i = 0; i < 200; i++){
		ans[i] = 0;
	}

	long a, b;
	long i = 0;

	while (scanf("%ld%ld", &a, &b) != EOF){
		ans[i] = f(a + b);
		i++;
	}

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

	return 0;
}

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

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

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

int main(){
    int i, j;
    int a,b,c;
    // std::vector<int> avec, bvec;
    for (i = 0; i <= 200; i++){
        scanf("%d %d", &a,&b);
        c = a + b;
        printf("%d\n",c);

        for(j = 0; j < 8; j++){
            if (c / std::pow(10,j) < 1){
                printf("%d\n",j);
                break;
            }
        }
        // avec.push_back(a);
        // bvec.push_back(a);
    }

    return 0;
}

C++: #include <vector>
#include <list>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <utility>
#include <functional>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
#include <cassert>
using namespace std;
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef long long ll;
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(),(a).rend()
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define EACH(t,i,c) for(t::iterator i=(c).begin(); i!=(c).end(); ++i)
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int main(){
	while(!cin.eof()&&!cin.bad()&&!cin.fail()){
		int a=-1,b=-1;
		cin>>a>>b;
		if(!cin.eof()&&!cin.bad()&&!cin.fail()&&a>=0&&b>=0){
		cout<<toString(a+b).size()<<endl;
		}else{
			break;
		}
		
	}
}

C++: #include <iostream>

int main(){
  int a, b, c;
  int i = 1;
  int num = 0;
  
  std::cin >> a;
  std::cin >> b;
  
  c = a + b;
  while(1){
    if(c/i!=0){
      num++;
      i *= 10;
    }else{
      break;
    }
  }
  std::cout << num << std::endl;
  
  return 0;
}