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

C++: #include <stdio.h>

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\n",digCnt);
	}
	
	return 0;
}

C++: using System;
using System.Linq;
public class Program {
	public static void Main() {
		string buf;
		while(!string.IsNullOrEmpty(buf = Console.ReadLine())) {
			Console.WriteLine(buf.Split().Select(int.Parse).Sum().ToString().Length);
		}
	}
}

C++: #include <iostream>

using namespace std;

int main(){
	
	int a,b;
	int  s,k=0;
	
	while(1){
		cin>>a>>b;
		if(a<0||b<0)
			break;
	s=a+b;
	while(s!=0){
	s=s/10;
	k++;
	}
		cout<<k<<endl;
	}
	
	
	}

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

//??????????????????????????´??°??????????????°?????¨????????????
int main()
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=3,i=0;

	while( cin >> a[i] >> b[i]) i++;

	for(i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		cout << cnt << endl;
		cnt=0;
	}

	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <vector>
#include <string>
#include <sstream>

#define rep(i, j) for(int i = 0; i < j; i++)
#define all(i) i.begin(), i.end()
#define ll long long

using namespace std;

string Num2Str(int num)
{
	stringstream ss;
	ss << num;
	return ss.str();
}

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

	int a, b;
	string s;
	// code
	while (true)
	{
		cin >> a >> b;
		s = Num2Str(a + b);
		cout << s.size() << endl;
	}

	return 0;
}

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

int main()
{
	int a,b;
	int sum=0,cnt=0;
	while(cin>>a>>b)
	{
		sum=0,cnt=0;
		sum=a+b;
		while(sum)
		{
			sum=sum/10;
			cnt++;
		}
		cout<<cnt<<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 /= 10;
            count++;
        }
        cout << count << endl;
    }
}

C++: #include <iostream>

using namespace std;

int pers(int k) {
	int ret = 0;
	while (k!=0) {
		k /= 10;
		ret++;
	}
	return ret;
}

int main() {
	int k, l;
	while (cin >> k >> l) {
		cout << pers(k+l) << endl;
	}
	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    string a, b;
    while((cin >> a >> b) != EOF){
        printf("%d %d\n", a.length(), b.length());
    }
}

C++: #include <stdio.h>

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

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

using namespace std;

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

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

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

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

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

	return 0;
}

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

int main(){
	int a,b;

	//while(1){
		//a = 0;
		cin >> a >> b;
		//if(a == 0)break;

		int tag = (a+b)/1000000;
		int keta = 7;
		if(tag==0){
			tag = (a+b)/100000;
			keta = 6;
		}
		if(tag==0){
			tag = (a+b)/10000;
			keta = 5;
		}
		if(tag==0){
			tag = (a+b)/1000;
			keta = 4;
		}
		if(tag==0){
			tag = (a+b)/100;
			keta = 3;
		}
		if(tag==0){
			tag = (a+b)/10;
			keta = 2;
		}
		if(tag==0){
			tag = (a+b)/1;
			keta = 1;
		}


		cout << keta << endl;
	//}
	
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555547";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

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++;
    }else{
      break;
    }
  }
  std::cout << num << 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;
	}
}

C++: #include <stdio.h>

int main(void)
{
	unsigned int a[2];
	int i;
	int count = 1;

	scanf("%d %d", &a[0], &a[1]);
	
	i = a[0] + a[1];
	count = 0;
	while(i > 0){
		count++;
		i = i/10;
	}

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

C++: #include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <list>
#include <cmath>
#include <fstream>
#include <queue>
#include <sstream>
#include <algorithm>
#include <cstring>
using namespace std;

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

C++: #include<iostream>
using namespace std;
int main()
{
int a,b,c;
while(cin>>a>>b)
{int k=0;
 c=a+b;

 while(c!=0) 
 {
 c=c/10;
 k++;

 }

 cout<<k<<endl;

}

return 0;

}

C++: #include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a,b;
	cin >> a>>b;
string stream ss;
  ss << a+b;
   string x=ss.str();
cout<<x.size()<<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, sum, cou = 0;
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		while (1) {
			if (sum <= 0) break;
			sum /= 10;
			++cou;
		}
		printf("%d\n", cou);
		cou = 0;
	}
}

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

using namespace std;

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

	return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
    int n1,n2,count,check;

    while(1){
        cin >> n1 >> n2;
        if(cin.eof()){
            break;
        }
        count = 1;
        check = n1 + n2;
        while(1){
            check /= 10;
            if(check == 0){
                cout << count << endl;
                break;
            }
            else {
                count++;
            }
        }
    }

    return 0;
}

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

int main()
{
  int a, b;
  int cou;
  int i, j;
  int ten;

  for (i = 0; i < 200; i++){
    cou = 1;
    ten = 10;
    cin >> a >> b;
    a += b;
    for (j = 1; j <= 7; j++){
      if (a / ten > 0){
        cou++;
        ten  *= 10;
      }
    }
    cout << cou << "\n";
  }

  return (0);
}

C++: //
//  main.cpp
//  Sample
//
//  Created by h3037183 on 2017/07/31.
//  Copyright ?? 2017??´ ?°????. All rights reserved.
//

#include <iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
    int a,b,e=1;
    while(cin>>a>>b){
        if(a<0 && b<0)break;
        if(a>1000000 && b>1000000)break;
        for(int z=10;z<1000000;z=z*10){
        if(a+b>=z){
            e++;
        }
    }
         cout<<e<<endl;
            e=1;
    }
    return 0;
}