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>
#include <sstream>
#include <string>
#include <vector>
#include <deque>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <bitset>
#include <algorithm>
#include <numeric>
#include <complex>
#include <functional>
#include <utility>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>

using namespace std;

#define debug(n) cout<<"# "<<#n<<": "<<(n)<<endl
#define repi(i,a,b) for(int i=int(a);i<int(b);i++)
#define rep(i,n) repi(i,0,n)
#define iter(c) __typeof((c).begin())
#define tr(c,i) for(iter(c) i=(c).begin();i!=(c).end();i++)
#define allof(c) (c).begin(),(c).end()
#define mp make_pair

typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> pii;

int main()
{
	for(int a,b;cin>>a>>b;){
		ostringstream oss;
		oss<<a+b;
		cout<<oss.str().size()<<endl;
	}
	
	return 0;
}

C++: #include <iostream>

int main(){
    int a,b;
    for(int g=0;g<200;g++){
    std::cin>>a>>b;
    if(a>=0&&b<=1000000){
    int e=a+b;
    int d=1;
    int f;
    
    for(int c=1;c<8;c++){
    	if(e/d>=1){
    		f=c;
		}
    	d=d*10;
	}
	std::cout<<f<<std::endl;
          

	
}
}
return 0;
}

C++: #include<stdio.h>
int main()
{
    int a,b,c;
    int i = 1,z;
    scanf("%d %d",&a,&b);
    c = a + b;

    while(1)
    {
        c = c / 10;
        i++;
        if(c < 10)break;
    }
    printf("%d\n",i);
    return 0;
}

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

using namespace std;

#define REP(i,n) for(int (i)=0;(i)<(int)(n);(i)++)
#define RREP(i,n) for(int (i)=(int)(n)-1;(i)>=0;(i)--)
#define REMOVE(Itr,n) (Itr).erase(remove((Itr).begin(),(Itr).end(),n),(Itr).end())
#define PB_VEC(Itr1,Itr2) (Itr1).insert((Itr1).end(),(Itr2).begin(),(Itr2).end())
#define UNIQUE(Itr) sort((Itr).begin(),(Itr).end()); (Itr).erase(unique((Itr).begin(),(Itr).end()),(Itr).end())

typedef long long ll;

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

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

int keta(int x){
	int i=0;
	while (x/pow(10,i)>=1){
		i++;
	}
	return i;
	}
int main(){

	int n=200;
	while(n>0){
int a1,b1;
cin>>a1>>b1;
cout<<keta(a1)+keta(b1)<<endl;
n--;
	}
}

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

int main()
{
	int a, b, c, su = 1000000;
	for (int i = 1; i <= 200; i++) {
		cin >> a >> b;
		c = a + b;
		if (c == 0) {
			cout << "0" << endl;
		}
		else {
			for (int j = 7; j >= 1; j--) {
				if (c >= su) {
					cout << j << endl;
					su = 1000000;
					break;
				}
				else {
					su /= 10;
				}
			}
		}
	}

	return 0;
}

C++: #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
int main(){
  vector<int> high(10);
  for(int i=0; i<10; i++) cin >>high[i];
  sort(high.begin(),high.end());
  for(int i=9; i>6; i--) cout<<high[i]<<endl;
  return 0;
}

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

int main()
{
	int a,b;
	while(cin>>a>>b){
		int k=1,stac=a+b;
		while(stac>10){
			stac/=10;
			k++;
		}
		cout<<k<<"\n";
	}
}

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

int main() {
    int a, b;

    for(int i = 0; i < 250; i++){
      cin >> a >> b;

      cout << a + b << endl;
    }
}

C++: #include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

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

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

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

C++: #include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<functional>

using namespace std;

int main(){
	int a,b;

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

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

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

#define pout(n)  printf ("%d\n", n)

#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)

const int d4x[4] = {1, 0, -1, 0};
const int d4y[4] = {0, 1, 0, -1};
const int d8x[8] = { 1,1,0,-1,-1,-1,0,1 };
const int d8y[8] = { 0,1,1,1,0,-1,-1,-1 };
 
typedef long long ll;
using namespace std;
 
int main() {
  ll a,b;
  while(cin >> a >> b){
    a += b;
    int count = 1;
    
    while((a /= 10) > 0){
       a /= 10;
      count++;
    }
    
    printf("%d",count);
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

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

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

int main(){
    int a,b;
    cin >> a >> b;
    a+=b;
    int ans = 0;
    while(a!=0){
        a = a/10;
        ans++;
    }
    cout << ans << 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<math.h>

int main(){

	int a = 0;
	int b = 0;
	int c = 0;
	int e = 0;

	for (int i = 0; i < 3; i++)
	{
		scanf_s("%d", &a);
		scanf_s("%d", &b);

		c = a + b;

		for (e = 0; c != 0; e++)
		{
			c /= 10;
		}

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

	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
signed main(){
  int a,b,c,d;
  while(scanf("%d %d",&a,&b)!=EOF){
    d=0;
    c=a+b;
    while(true){
      if(c==0) break;
      d++;
      c=c/10;
    }
    printf("%d\n",d);
  }
}

C++: #include<stdio.h>


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

	while(scanf("%ld %ld",&a,&b)==2)
	{
		sum=a+b;

		while(sum>0)
		{
			sum=sum/10;
			count++;
		}

		printf("%d\n",count);
		count=0;
	}
		
	
}

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

using namespace std;

int main() {

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

	return 0;

}

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

using namespace std;

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

C++: #include<iostream>
#include<sstream>
#include<cmath>
using namespace std;
  
int main(){
string s;
int a,b,c;
while (getline(cin, s ))
{
int SpaceInd = s.find_first_of(" ");

std::istringstream iss1(s.substr(0,SpaceInd));
iss1 >> a;
  
std::istringstream iss2(s.substr(SpaceInd+1));
iss2 >> b;
cout<<(int)log10(a+b)<<endl;
}
return 0;
}