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;
#define N 200

int main()
{
int a=0,b=0,n[N],kaisu=0;

do{
 n[kaisu]=1;
 cin>>a>>b;
 if(a>=0 && b>=0 && a<=1000000 && b<=1000000)
 	{
	 a = a+b;
	 while(a>=10)
	 	{
		 a = a/10;
		 n[kaisu] += 1;
	 	}
 	}
 	cout<<n[kaisu]<<endl;
 	kaisu++;
 	
 	}while(kaisu<N);


}

C++: #include <iostream>

using namespace std;

int numarray[400];
int i=0;

int main(){
while(cin>>numarray[i]) {
	//cout<<numarray[i]<<endl;
	i++;
}

for (int j=0;j<i;j=j+2){
	//cout<<numarray[j]<<"+"<<numarray[j+1]<<"=";
	cout<<numarray[j]+numarray[j+1]<<endl;
}

	return 0;
}

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

int digit(int n){
    int digit=0;
    while(n>0){
        digit+=1;
        n=n/10;
    }
    return digit;
}

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

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

using namespace std;

int main() {
	string s;
	for (int a, b; cin >> a >> b;) {
		s=to_string(a + b);
		cout << s.size() << endl;
	}
	return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

int main(){
	int a,b;
while (cin>>a>>b){
	int n=a+b;
	if(n==1000000){
		cout<<7<<endl;
	}
	else if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}
}

C++: 
fn main() {
        let n = readln();
        let mut c:f32 = 100000.0;

        for _i in 0..n {
            c=c+c*0.05;
            if c%1000.0!=0.0{
                c=(((c/1000.0) as i32) as f32)*1000.0+1000.0;
            }
        }
        println!("{:.0}",c);
}
     
    // --- template ---
    #[allow(unused_imports)]
    use std::cmp::{max, min};
    #[allow(unused_imports)]
    use std::collections::{HashMap, HashSet, VecDeque};
     
    pub trait FromLn {
        fn fromln(s: &str) -> Self;
    }
    pub fn readln<T: FromLn>() -> T {
        let mut buf = String::new();
        let _ = ::std::io::stdin().read_line(&mut buf).unwrap();
        T::fromln(buf.trim())
    }
    pub fn readlns<T: FromLn>(n: usize) -> Vec<T> {
        let mut vs = vec![];
        for _ in 0..n {
            vs.push(readln());
        }
        vs
    }
    macro_rules! fromln_primitives {
        ($($t:ty),*) => { $(
            impl FromLn for $t {
                fn fromln(s: &str) -> $t {
                    s.parse().unwrap()
                }
            }
        )* }
    }
    fromln_primitives!(
        String,
        bool,
        f32,
        f64,
        isize,
        i8,
        i16,
        i32,
        i64,
        usize,
        u8,
        u16,
        u32,
        u64
    );
    impl<T> FromLn for Vec<T>
    where
        T: FromLn,
    {
        fn fromln(s: &str) -> Vec<T> {
            s.split_whitespace().map(T::fromln).collect()
        }
    }
    impl FromLn for Vec<char> {
        fn fromln(s: &str) -> Vec<char> {
            s.chars().collect()
        }
    }
    macro_rules! fromln_tuple {
        ($($t:ident),*) => {
            impl<$($t),*> FromLn for ($($t),*) where $($t: FromLn),* {
                fn fromln(s: &str) -> ($($t),*) {
                    let mut it = s.split_whitespace();
                    let t = ($($t::fromln(it.next().unwrap())),*);
                    assert_eq!(it.next(), None);
                    t
                }
            }
        }
    }
fromln_tuple!(A, B);
fromln_tuple!(A, B, C);
fromln_tuple!(A, B, C, D);
fromln_tuple!(A, B, C, D, E);
fromln_tuple!(A, B, C, D, E, F);

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

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

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

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

int main(){
	int out[200];
	int n, m;
	int count = 0;
	while(cin >> n >> m){
		for(int i = 0; i < 100; i++){
			if(pow(10.0,i) > n+m){
				out[count] = i;
				break;
			}
		}
		count++;
	}
	for(int i = 0; i < count; i++){
		cout << out[i] << endl;
	}
}

C++: #include <bits/stdc++.h>

using namespace std;

#define all(c) (c).begin(), (c).end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)

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

int main() {
    int a, b;
    while (cin >> a >> b) {
        if (a == 0 && b == 0) {
            cout << "1" << endl;
            continue;
        }
        int s = a + b;
        int ans = log10(s);
        cout << ans + 1 << endl;
    }

    return 0;
}

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

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

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a, b;
  while(cin >> a >> b){
      int sum = a + b;
      int keta = 0;
      keta += sum / 1000000;
      keta += (sum % 1000000) / 100000;
      keta += (sum % 100000) / 10000;
      keta += (sum % 10000) / 1000;
      keta += (sum % 1000) / 100;
      keta += (sum % 100) / 10;
      keta += sum % 10;
      cout << keta << "\n";
  }

  return 0;
}

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

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

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

int main() {
	long a,b,c,ans;
	int i = 200;
	i--;
	while( i >= 0){
		cin >> a >> b;
		if(0 <= a  && b <= 1000000){
		ans = 0;
		c = a + b;
		while(c!=0){
		c = c / 10;

		++ans;
	}
	}
	cout << ans << endl;
	}
	return 0;
}

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

using namespace std;

int main(void){
	long	a,b;

	while(cin >> a){
		cin >> b;

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

	return 0;
}

C++: #include <iostream>
using namespace 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 (bool eof()==false);
}

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

int main(){

char kalimat[200][200];
int a, j, i;
        for(j=0; j<3; j++){
            cin.getline(kalimat[j], sizeof(kalimat));
        }
       for(j=0; j<3; j++){
            a=0;
          for(i=0; kalimat[j][i]; i++)
          {
                a++;
             if(isspace (kalimat[j][i]) || ispunct (kalimat[j][i]))
            {
              a--;
            }
          }
            cout<<a<<endl;
      }

    return 0;
}

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

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