Go: package main

import (
	"bufio"
	"fmt"
	"math"
	"os"
	"strconv"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

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

int main()
{
    int a, b;
    while (1) {

        cin >> a >> b;
        if (a == 0 && b == 0)
            break;
        int c = a + b;
        int ans = 0;
        while (c != 0)
        {
            c /= 10;
            ans++;
        }
        cout << ans << endl;
    }
    return 0;
}

C++: #include <iostream>
int main(){
	int a,b,c;
	std::cin>>a>>b>>c;
	if(a*a==b*b+c*c){
		std::cout<<"YES"<<std::endl;
		}
	else if(b*b==a*a+c*c){
		std::cout<<"YES"<<std::endl;
		}
	else if(c*c==a*a+b*b){
		std::cout<<"YES"<<std::endl;
		}
	else std::cout<<"NO"<<std::endl;

	
		
	 return 0;
	}

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

C++: #include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>



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

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

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

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

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

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

int main(){
  vector<int> sum;
  vector<string> truss;
  int a,b;
  while(cin>>a>>b)
    sum.push_back(a+b);
  for(int i=0;i<(int)sum.size();i++) { 
    truss.push_back(to_string(sum[i]));
  cout<<truss[i].size()<<endl;
  }
  return 0;
}

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

int main() {
	float a,b,sum;
	int t=200;
	while(t--)
	{
		int cont=0;
		do
		{
		cin>>a;cin>>b;
		}while(a<0||a>1000000||b<0||b>1000000);
		sum=a+b;
		do
		{
			sum=sum/10;
			cont++;
		}while(floor(sqrt(sum))!=0);
		cout<<cont<<endl;
	}
	return 0;
}

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

int main() {
	int a,b;
	while(cin >> a >> b){
		char s[100];
		sprintf(s,"%d",a+b);
		cout << strlen(s) << endl;
	}
}

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

C++: #define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
using namespace std;
int main() {
	int i, a, b, c;
	while (cin >> a >> b) {
		c = a + b;
		for (i = 1; c >= 10; i++) {
			c /= 10;
		}
		printf("%d\n", i);
	}	
		return 0;
}

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

int main(){
	int a, b, sum;

	while(1){
		cin >> a >> b;
		sum = a + b;

		for(int i=1; ; ++i){
			if(sum<10){
				cout << i << endl;
				break;
			}else{
				sum /= 10;
			}
		}
	}

	return 0;
}

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


int main(){
	int a, b, c;
	int i;
	while (a != EOF || b != EOF){
		cin >> a >> b;
		c = a + b;
		i = 1;
		while (c > 9){
			c = c / 10;
			i++;
		}
		cout << i << endl;
	}

	return 0;
}

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

using namespace std;

int countDigit(int num){
	int i;
	for(i=1;pow(10,i)<=num;i++);
	return i;
}

int main(){
    int i,a,b;
    while(1)
        scanf("%d %d",&a,&b);
        printf("%d\n",countDigit(a+b));
    }
    return 0;
}

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==104) 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()
{
  long n1, n2;
  int ans = 0;
  cin >> n1 >> n2;
  int sum = n1 + n2;
  while(sum > 0){
    sum /= 10;
    ans++;
  }
  ans = (n1 == 0 & n2 == 0) ? 1 : ans;
  cout << ans << endl;
}

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

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

C++: #include <iostream>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <stdlib.h>
using namespace std;
int main(){
    int a,b,count,s;
 
    while(scanf("%d %d",&a,&b)!=EOF){
        count=0;
        s=a+b;
        while(s!=0){
            s/=10;
            count++;
        }
        printf("%d\n",count);
    }
 
    return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <cstring>
#include <climits>
#include <cmath>
#include <cfloat>

#define FOR(i,b,n) for(int i=b;i<n;i++)
#define CLR(mat) memset(mat, 0, sizeof(mat))
#define INF 1<<25

using namespace std;

int a, b;

int main()
{

	while( cin >> a >> b, !cin.eof() )
	{
		int c = a+b;
		char str[100];
		sprintf( str, "%d", c );

		string s;
		s += str;

		cout << s.size() << endl;
	}

	return 0;

}

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

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

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

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

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

C++: #include<stdio.h>

int main()
{
	unsigned int a,b,sum;
	unsigned char digits;

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

		while(sum != 0)	
		{
			digits++;
			sum = sum / 10;
		}
		printf("%d\n",digits);
	}
	return 0;
}

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

int main()
{
	  int a,b,sum=0;
	  while((scanf("%d", &a) != EOF)&&scanf("%d", &b) != EOF)
	  {
	  int lengthA=1,lengthB=1;
	  while(a/=10)
          {lengthA++;}		   		
	  while(b/=10)
	  {lengthB++;}
	  cout<<lengthA+lengthB<<endl;
	  }	   
          return 0;
}

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

main(void){
    int a[3],b[3],c[3];
    
    scanf("%d %d", &a[0], &a[1]);
    scanf("%d %d", &b[0], &b[1]);
    scanf("%d %d", &c[0], &c[1]);
    
    a[0] = a[0] + a[1];
    b[0] = b[0] + b[1];
    c[0] = c[0] + c[1];
    
    for( a[3] = 0; a[0] > 1; a[3]++) a[0] / 10;
    for( b[3] = 0; b[0] > 1; b[3]++) b[0] / 10;
    for( c[3] = 0; c[0] > 1; c[3]++) c[0] / 10;
    
    printf("%d\n%d\n%d\n", a[3], b[3], c[3]);

    return 0;
}

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

int ketasu(int n) {
  int ans=0;
  while (n!=0) {
    n/=10;
    ans++;
  }
  return ans;
}

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

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

int func(int i){
    if(i<10)return 1;
    else return (1+func(i/10));
}

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