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 <stdio.h>
 int main( void ){
    int a,b;
    scanf( "%d %d",&a,&b );
    a = a + b;
     int n = 1;
    int j = 0;
    while( true ){
        if( a / n >= 1 ) n *= 10;
        else               break;
        j++;
    }
    printf( "%d",j );
    return 0;
}

C++: #include <iostream>

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

  for(;;) {

    std::cin >> a >> b;

    if( std::cin.eof() ) { break; }

    a = a + b;

    for(i = 1; i < 9; i++) {
      if(a <= 9) {
        break;
      }
      a /= 10;
    }
    std::cout << i << std::endl;

  }

  return 0;
}

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

int main(){
	int a,b,i,sum=1;
	cin>>a;
	while(a != EOF){
		cin>>b;	
		a=a+b;
		while(a>10){
			a=a%10;
			sum++;
		}
		cout<<sum<<endl;
		sum=1;
		cin>>a;
	}
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b = 1;
    int ans,line = 0;
    
    while(std::cin >>a>>b){
        ans = a + b;
        ans /= 10;
        if(ans  <= 9){
            ans = 2;
        }
        else if(ans <= 99){
            ans = 3;
        }
        else if(ans <= 999){
            ans = 4;
        }
        std::cout << ans << std::endl;
    }
    return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
        int a,b,c,d=1000000,e=7;
	for(int i=1;i<=200;i++){
		cin>>a>>b;
		if(a==-1 || b==-1){//EOF?????¨???break;
			break;
		}
		c=a+b;
		if(c==0){
			cout<<"1"<<endl;
		}
		else if(c>0){
			while(1){
				if(1<=c/d){
					cout<<e<<endl;
					break;
				}
				else{
					d/=10,e--;
				}
			}
		}
		d=1000000,e=7;
	}
	
		
	return 0;
}

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

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

int main() {
	for(int a, b; cin >> a >> b;) {
		const int sum = a + b;
		cout << to_string(sum).size() << endl;
	}
}

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

using namespace std;

int main (int argc, char *argv[]) {
    int a, b;
    while (cin>>a>>b) {
        int sum = a + b;
        int cnt = 1;
        while (sum /= 10) {
            cnt++;
        }
        cout<<cnt<<endl;
    }
    return 0;
}

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

using namespace std;

int main(void)
{
  int i, sum, dig;
  int a, b;

  while (scanf("%d %d", &a, &b) != EOF) {
    sum = a + b;
    dig = 1;
    for (i = 1; i < 7; i++) {
      if (sum - pow(10, i) < 0) break;
      dig++;
    }
    printf("%d\n", dig);
  }

  return 0;
}

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

int main()
{
	int a,b,c,count = 0;
	char dummy[256];
	
	cin >> a >> b;
	c  = a + b;
	
	count = sprintf(dummy,"%d",c);
	
	cout << count;
	
	return 0;
}

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

int main(){
int a,b;

while(scanf(" %d %d",&a,&b)){
int cnt=1;
for(int i=1;i<8;i++){
if(a+b-i*10<0)break;
cnt++;
}
}

cout << cnt << endl;

return 0;
}

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

int main(void){
	int a,b;
	int c = 0;
	int count = 0; //入力回数の制限

	while(scanf("%d %d", &a,&b) != EOF){
		if(++count>200)	break; //200回以上は中止
		if(a<0 || a> 1000000 || b<0 || b> 1000000)
			cout<<"0から1000000までの値を入力してください."<<'\n';
		else{
			c = a+b;
			int digit = 0;
			do{
				digit++;
				c /= 10;
			}while(c != 0);
			cout<<digit<<'\n';
		}
	}

	//終了
	return 0;
}

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

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

int main(void)
{
	int sum = 0;
	char a;

	while(1){
		sum = 0;
		while(scanf("%c", &a), a != ' ')
			sum++;
		while(scanf("%c", &a), a != '\n')
			sum++;
		printf("%d\n", sum);

	}

	return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
    int a,b;
    while(cin>>a>>b){
        cout<<(int)log10(a+b)+1<<endl;
    }
}

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

int main() {
	// your code goes here
	int a,b;
	while (cin >> a >> b) {
		
		int wa = a + b;
		//判定開始
		int ans = 1;
		while(1) {
			wa = wa/10;
			ans++;
			if (wa<10) break;
		}
		cout << ans << endl;
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int get_dig(int a){
	int i;
	for(i=0;a>0;i++){
		a=a/10;
	}
	return i;
}

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

C++: #include<iostream>
#include<iomanip>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<cstdlib>
#include<string>
#include<cctype>
#include<vector>
#include<set>
#include<map>
#include<stack>
#include<queue>
#include<deque>
#include<list>
#include<algorithm>
using namespace std;

#define LL long long
#define LLU unsigned long long
#define re return(0)
#define pi 2*acos(0.0)

const int infinity=100000000000;

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

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

#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)

using namespace std;

int main(void){
    
    int number1,number2;
    int counter = 0;
    while(scanf("%d %d",&number1,&number2) != EOF)
    {
        cout << (((number1+number2) /10))+1 << endl;
    }

    return 0;


}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <sstream>
#include <fstream>

using namespace std;

int add (string a, string b)
{
	reverse (a.begin(), a.end() );
	reverse (b.begin(), b.end() );

	while (a.length() != b.length()){
		if (a.length() > b.length()){
			b += '0';
		}else if (a.length() < b.length() ){
			a += '0';
		} // end if
	} // end while

	int i;
	string res = "";
	int carry = 0;

	for (i = 0; i < a.length(); ++i){

		int an = a[i] - '0';
		int bn = b[i] - '0';
		int sum = an + bn + carry;

		res += sum % 10 + '0';
		carry = sum/10;

	} // end for

	if (carry == 1){
		res += carry + '0';
	} // end if

	return res.length();
}

int main()
{
	string str = "";
	string a,b;

	while (getline (cin, str )){

		stringstream ssn(str );
		ssn >> a >> b;

		int res = add (a, b );

		cout << res << endl;	

	} // end while
		
	return 0;
}