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

int main()
{
    int a;
    int b;
    int sum;
    int digit;
    while (std::cin >> a >> b) {
        sum = a + b;
        digit = 0;
        while (sum != 0) {
            sum = sum / 10;
            digit++;
        }
        std::cout << digit << std::endl;
    }
    return 0;
}

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

C++: #include <bits/stdc++.h>
#define INT(name) int name; scanf("%d",&name);
#define VINT(name,n) vector<int> name(n); for(int i = 0;i < n;i++) scanf("%d",&name[i]);

using namespace std;

int main(int argc, char const *argv[]){
	int a,b;
	vector<int> answer;
	while(cin >> a >> b){
		printf("%d\n",(int)log10(a+b) + 1);
	}
}

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

int main() {
  int a, b, c, count = 0;
  while( cin >> a >> b){
  c = a + b;
    b = 1;
    for(int i = 1; i <= 7; i++){
      b *= 10;
      if(c < b){
        cout << i << endl;
        break;
      }
    }
  }
}

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

using namespace std;

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

C++: #include <cstdio>

using namespace std;

int main()
{
  int a, b;
  int cnt = 1;

  scanf("%d%d", &a, &b);

  for (int i = a + b; i > 10; cnt++) i /= 10;

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

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<queue>
#include <algorithm>
#include<functional>
#include<cstdlib>
#include<cmath>

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

typedef pair<int, int> P;
typedef pair<long, long> LP;
typedef pair<int, P> PP;
typedef pair<long, LP> LPP;



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

int A = 0, B = 0, K = 0, T = 0, W = 0, N = 0, H = 0;
int n = 0;
double L = 0;
double S = 0;
double ar = 0, br = 0, cr = 0;
int answer = 0;

string C;
string sA, strB;
vector<vector<char>> map;
vector<double> num;
vector<string> str;

int sum = 0;

vector<int> value;
vector<int> weight;

int dp[110][10010];

int data_[210][2] = {-2};

void input() {
	int i = 0;

	while (scanf("%d%d",data_[i][0],data_[i][1]) != EOF) {
		i++;
	}

	return;
}


int main(void) {
	input();
	int i = 0;
	int sum = 0;
	int numb = 0;

	while (true) {
		sum = data_[i][0] + data_[i][1];
		while (sum != 0) {
			numb++;
			sum /= 10;
		}
		if (data_[i + 1][0] == -2) {
			break;
		}
	}

	CO numb E

	return 0;
}

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

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

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

int main() {
    int a, b;
    while (true) {
        cin >> a >> b;
        int sum=a+b;
        int ans=0;
        while (sum>0) {
            sum/=10;
            ans++;
        }
        printf("%d\n",ans);
    }
    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<5000) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include<iostream>

using namespace std;

void solver() {
    int a,b;
    while(cin>>a>>b){
        cout<<to_string(a+b).length()<<endl;
    }
}

int main() {
    solver();
    return 0;
}

C++: #include <bits/stdc++.h>
#define REP(i,n) for(int i = 0; i < n; i++)
using namespace std;

int main() {
  int num[2], ct1=0;
  queue<int> q;
  REP(j,3) {
    REP(i,2) scanf("%d", &num[i]);
    REP(i,2){
      while(num[i] != 0) {
        num[i] /= 10;
        ct1++;
      }
    }
    q.push(ct1);
    ct1 = 0;
  }
  REP(i,3) {
    printf("%d\n", q.front());
    q.pop();
  }

  return 0;
}

C++: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] numbers=input.Split(' ');
            int  answer = Convert.ToInt16(numbers[0]) +Convert.ToInt16( numbers[1]);
             string amswer1 = Convert.ToString(answer);
            Console.WriteLine((amswer1.Length));
        }
    }
}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		if(cnt==105) 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,i,ans,sum=0;
	cin>>a>>b;
	ans=a+b;
	for(i=0;ans>0;i++){
		ans=ans/10;
		sum=sum+1;
	}
	cout<<sum<<endl;
	return 0;
}

C++: #include<iostream>

using namespace std;

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

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

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 nCnt = 0,Result,Keta = 1;

	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];

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

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

	printf("%d\n", Keta);

	return 0;
}

C++: #include <cstdio>
#include <queue>
#include <vector>

using namespace std;


int main(){
	int a,b,c;
	char dm[256];
	while(scanf("%d %d",&a,&b) != EOF){
		c = sprintf(dm,"%d",a+b);
		printf("%d\n",c);
	}
	return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
	int num1, num2,sum;
	int n = 1;
	cin >> num1 >> num2;

	sum = num1 + num2;

	while (true)
	{
		int po = pow(10, n);
		if (!((sum % po) == sum))
			n++;
		else
			break;
	}

	cout << n << endl;

	cin >> n;
	return 0;
}

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