Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

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

int main(){
	int a,b,c;
	string str;
	stringstream ss;
	while(cin>>a>>b){
		c=a+b;
		ss<<c;
		str=ss.str();
		c=str.length();
		cout<<c<<endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef pair<int,int> P;
#define FOR(I,A,B) for(int I=int(A);I<int(B);++I)

int main(){
	int a,b; 
	auto f = [](int x,int y){
		int ans=0,k=x+y;
		while(k){
			ans++;
			k /= 10;
		}
		return ans;
	};
	while(scanf("%d %d",&a,&b)!=EOF){
		cout << f(a,b) << endl;
	}
}

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

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

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

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

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

int main(){
const int INF=10000000;
int a,b,c,ans;
while(cin>>a>>b){
ans=1;
a+=b;
for(int i=0;i<INF;i++){
c=a%10;
a-=c;
if(a==0){break;}
if(a!=0){
ans++;
a/=10;}}
cout<<ans<<endl;}}

C++: #include <iostream>

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

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

int main(void){
	int a,b,dig;
	double sum,test;
	std::cin >> a >> b;
	sum = (double)a+(double)b;
	test = floor(log(sum)/log(10.0));
	std::cout << test+1 << "\n";
	return 0;
}

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

using namespace std;

int main(){
  string a,b;
  for(;;){
    cin >> a >> b;
    if(cin.eof()) break;

    int l=max(a.size(),b.size());
    vector<int> c(l,0),d(l,0);
    for(int i=a.size()-1,j=0; i>=0; i--,j++)
      c[j] = a[i]-'0';
    for(int i=b.size()-1,j=0; i>=0; i--,j++)
      d[j] = b[i]-'0';

    int flag=0;
    for(int i=0; i<l; i++){
      if(c[i]+d[i]+flag>9)
	flag=1;
      else
	flag=0;
    }
    
    cout << l+flag << endl;
  }
}

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

int stringers_number(int a)
{
	return int(log10(a) + 1);
}

int extract_the_number(char *n1,char *n2)
{
	int data_size1=0;
	int data_size2=0;
	for (data_size1=0;!(*(n1+data_size1)=='\0');data_size1++){}
	for (data_size2=0;!(*(n2+data_size2)=='\0');data_size2++){}
	/*int data_size1 = sizeof(n1) / sizeof(n1[0]);
	int data_size2 = sizeof(n2) / sizeof(n2[0]);*/
	/*for (i=0;i<=data_size-1;i++)
		if (a[i] == ' ')
			break; */
	int a1=0;
	int j=0;
	for (j=0;j<=data_size1 - 1;j++){
		int j_keta = int(*(n1+(sizeof n1[0])*j)) - 48;
		a1 = a1 + (pow(10,(data_size1 - j - 1))) * j_keta;
	}
	int a2=0;
	int k=0;
	for (k=0;k<=data_size2 - 1;k++){
		int k_keta = int(*(n2+(sizeof n2[0])*k)) - 48;
		a2 = a2 + (pow(10,(data_size2 - k - 1)))*k_keta;
	}
	return a1+a2;
}

int main()	
{
	char n1[100];
	char n2[100];
	while(1){
		cin >> n1;
		cin >> n2;
		cout << stringers_number(extract_the_number(n1,n2)) << endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){

	int a;
	int b;
	int n;

	cin>>a>>b;

	n = a+b;

	if(1<=n && n<10){

	cout << 1 << endl;
	}

	else if(10<=n && n<100){

		cout << 2 << endl;
	}
	else if(100<=n && n<1000){

		cout << 3 << endl;
	}
	else if(1000<=n && n<10000){

		cout << 4 << endl;
	}
	else if(10000<=n && n<100000){

		cout << 5 << endl;
	}
	else if(100000<=n && n<1000000){

		cout << 6 << endl;
	}
	else if(1000000<=n && n<10000000){

		cout << 7 << endl;
	}

	return 0;

}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555";
	
	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()
{
    long long a,b;
    while(scanf("%lld %lld",&a,&b)==2)
    {
        long long c=0,s=0;
        c=a+b;
        while(c!=0)
        {
          c/=10;
          s++;
        }
        printf("%lld\n",s);
    }
}

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

int digit(int num) {
    int cnt = 0;
    while(num != 0) {
        cnt++;
        num /= 10;
    }
    return(cnt);
}

int main(void) {
    int a, b;
    
    while(scanf("%d %d", &a, &b) != EOF) {
        cout << digit(a + b) << endl;
    }
    
    return(0);
}

C++: #include <iostream>
using namesapce std;
int main(){
    int a,b,c;
    do{
    cin >> a >> b;
    c = a+b;
    if (c>1000000)
        cout << "7" << endl;
    else if (c>100000)
        cout << "6" << endl;
    else if (c>10000)
        cout << "5" << endl;
    else if (c>1000)
        cout << "4" << endl;
    else if (c>100)
        cout << "3" << endl;
    else if (c>10)
        cout << "2" << endl;
    else
        cout << "1" << endl;
} while (true);
}

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

using namespace std;

int main(){

	int a, b;
	cin >> a >> b;
	cout << a + b << endl;

	return 0;
}

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

using namespace std;

int main()
{
	int a, b;
	cin >> a >> b;

	cout << (int)log10(a + b) + 1 << endl;
	
	return 0;
}

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

int main(){

const int num = 3;
int t;

long int a[num] = {0};
long int b[num] = {0};
long int c[num] = {0};
int cou = 0;

for(int i = 0; i < num; i++)
{
	cin >> a[i] >> b[i];
}

for(int i = 0;i < num;i++)
	{
		c[i] = a[i] + b[i];
		while(c[i] > 0)
		{
		c[i] /= 10;
		cou++;
		}
		if(cou == 0){cout << cou+1 << "\n";}
		else {cout << cou << "\n";}
		cou = 0;
	}
    return 0;
}

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

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

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

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

void OutputSolution(int a, int b, int c, int d, int e, int f)
{
	int B = b;
	a *= e;
	b *= e;
	c *= e;
	d *= B;
	e *= B;
	f *= B;
	double x = (c-f) / (a-d);
	double y = (c-a*x) / b;
	cout << fixed << setprecision(3) << x << ' ' << y << endl;
}

int main()
{
	while(true){
		int a, b, c, d, e, f;
		cin >> a >> b >> c >> d >> e >> f;
		if(cin.eof()) break;
		OutputSolution(a, b, c, d, e, f);
	}
	return 0;
}

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

int main(void){
	int a,b,dig,i;
	double sum;
	for(i=0;i<3;i++){
		std::cin >> a >> b;
		sum = (double)a+(double)b;
		dig = floor(log(sum)/log(10.0));
		std::cout << dig+1 << "\n";
	}
	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<1000) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}