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 <vector>
#include <cstdio>

int digitCount(int number)
{
    int result = 1;
    while (number > 9) {
        number /= 10;
        result++;
    }
    return result;
}

int main(int argc, const char * argv[]) {

    std::string line;
    std::vector<int> sum;
    int n1 = 0;
    int n2 = 0;
    
    while (std::getline(std::cin, line))
    {
        sscanf((const char*) line.c_str(), "%d %d", &n1, &n2);
        sum.push_back(digitCount(n1 + n2));
        
    }
    //std::cout << std::endl;
    //std::cout << std::endl;
    
    std::vector<int>::iterator it = sum.begin();
    std::cout << *it << std::endl;
    
    while (++it < sum.end()) {
        
        std::cout << *it << std::endl;
    }
    
    return 0;
}

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

int main() {

	while(cin){
	unsigned int a, b;
	cin >> a >> b;

	int unsigned digit = 0, quotient = a + b;
	while(quotient != 0){
		quotient /= 10;
		digit++;
	}
	cout << digit << endl;
	}

	return 0;
}

C++: #include <iostream>
 
int main(){
    int a, b;
     
    while(std::cin >> a >> b){
        int n = a + b;
        int count = 1;
        //10??§?????£???0??§???????????°?????°????¢???????
        while(n / 10 != 0){
            ++count;
            n /= 10;
        }
        std::cout << count << std::endl;
    }
    return 0;
}

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

int main()
{
    long long int n,m,j,k,l,i;
    while(scanf("%lld%lld",&n,&m)==2)
    {
        k=0;
        j=n+m;
        for(i=j;i>=1;i/=10)
            k++;
            printf("%lld\n",k);
    }
    return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include<iomanip>
#include<vector>
#include<cmath>
#include <algorithm>

using namespace std;

int main(){
	int a,b;
	while (scanf("%d %d",&a,&b) != -1){
		string s = to_string(a + b);
		cout << s.length() << endl;
	}
}

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

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

int main() {
    int a, b;

    while (cin >> a) {
        cin >> b;
        string sum = to_string(a + b);
        cout << sum.length() << endl;
    }

    return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(){
	for(;;){
		int a,b;
		if(scanf("%d %d",&a,&b) == EOF){break;}
		int c = a+b, count = 0;
		while(c>0){
			c=c/10;
			count++;
		}
		cout <<count<<endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(void)
{
	int a, b;
        int keta = 1;

	while (cin >> a >> b)
	{
		a += b;
		while ((a /= 10) != 0) keta++;

	}

	cout << keta << endl;

	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
// Welcome to my source code!

int main() {
    int a, b;
    while (cin >> a >> b) {
        int t = a + b;
        int digit = (a + b ? 1 : 0);
        while (t / 10) {
            t /= 10;
            digit++;
        }
        cout << digit << endl;
    }
}

C++: #include<cstdio>

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

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

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

C++: #include<stdio.h>
int main(void)
{
	int i,j,temp,y[10];
	for(i=0;i<10;i++){
		scanf("%d",&y[i]);
	}
	for(i=0;i<10;i++){
		for(j=0;j<=10;j++){
			if(y[j]<=y[i]){
				temp=y[i];
				y[i]=y[j];
				y[j]=temp;
			}
		}
	}
	for(i=0;i<3;i++){
		printf("%d\n",y[i]);
	}
	return 0;
}

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

int main()
{
	while(true){
		int a,b,c;
		char str[16];
		cin >> a >>b;

		c = sprintf(str,"%d",a + b);

		cout << c << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <sstream>
int main()
{
        for(uint8_t i=0;i<200;i++)
        {
                std::string str;
                getline(std::cin, str);
                std::stringstream s(str);
                uint32_t a,b;
                s>>a>>b;
                uint32_t sum=a+b;
                uint8_t count;
                for(count=0;sum>0;count++)
                        sum=sum/10;
                if(count==0)
                        count++;
                printf("%u\n",count);
        }

        return 0;
}

C++: #include<iostream>
int main(){
	int a,b;
	while(std::cin>>a>>b){
		int n=a+b;
		if(n<10)std::cout<<1<<std::endl;
		else if(n<100)std::cout<<2<<std::endl;
		else if(n<1000)std::cout<<3<<std::endl;
		else if(n<10000)std::cout<<4<<std::endl;
		else if(n<100000)std::cout<<5<<std::endl;
		else if(n<1000000)std::cout<<6<<std::endl;
		else if(n<10000000)std::cout<<7<<std::endl;
		else if(n<100000000)std::cout<<8<<std::endl;
	}
	return 0;
}

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

using namespace std;


int main(){
	int a,b;
	while (cin >>  a >>  b){
		int l = a+b;
		char n[50];
		l=sprintf (n,"%d",a+b);
		cout << l << endl;
	
	}
	return 0;
	}
	}

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

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

C++: #define _USE_MATH_DEFINES
#include <iostream> 
#include <string>
#include <map>
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std; 
int main(){
	int a, b, ans;
	cin >> a >> b;
	ans = log10(a+b) + 1;
	cout << ans << endl;
	return 0;
}

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

using namespace std;

long int a, b;
long int sum,ans;

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

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
  long long a,b,ans;
  string s;
  for(int i=0;i<200;i++){
	cin >> a >> b;
	ans=a+b;
	s=to_string(ans);
	cout << s.size() << endl;
  }
  return 0;
}

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

int main(void)
{
    int i;
    int x, y;

    for (;;) {
        scanf("%d %d", &x, &y);
        x += y;
        for (i = 1; ; i++) {
            x /= 10;
            if (x == 0) {
                break;
            }
        }
        printf("%d\n", i);
    }

    return 0;
}

C++: #include <stdio.h>
int main(void){
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		int sum=a+b;
		int digit=1;
		while(sum>=10){
			sum/=10;
			digit++;
		}
		printf("%d\n",digit);
	}
	return 0;
}

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

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

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

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