Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	//sc.Split(bufio.ScanWords)
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		n1, _ := strconv.Atoi(s[0])
		n2, _ := strconv.Atoi(s[1])
		fmt.Printf("%d\n", len(strconv.Itoa(n1+n2)))
	}
}

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;
}

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

int main()
{
	int a, b, c, su = 1000000, i = 1;
	cin >> a >> b;
		while (a != -1 && b != -1 && i<=200) {
			
			c = a + b;
			if (c == 0) {
				cout << "0" << endl;
			}
			else {
				for (int j = 7; j >= 1; j--) {
					if (c >= su) {
						cout << j << endl;
						su = 1000000;
						break;
					}
					else {
						su /= 10;
					}
				}
			}
			cin >> a >> b;
			i++;
		}

	return 0;
}

C++: #include<cstdio>

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

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

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

int main()
{
	int i,j ;
	while( cin >> i >> j )
	{
		i += j ;
		int count = 0 ;

		while( i > 0 )
		{
			i = i / 10 ;
			count ++ ;
		}

		cout << count << endl ;
	}

	return 0 ;
}

C++: #include <stdio.h>

int main(){

	int a=0,b=0,i=0;

	while (i < 200 !=EOF){
		scanf("%d%d", &a, &b);
		if (a + b < 10){
			printf("1\n");
		}else if(a + b < 100){
			printf("2\n");
		}else if (a + b < 1000){
			printf("3\n");
		}else if (a + b < 10000){
			printf("4\n");
		}else if (a + b < 100000){
			printf("5\n"); 
		}else{
			printf("6\n");
		}i++;
	}
	return 0;
}

C++: #include<stdio.h>
int main()
{
int x,y,cou,w;
cou=0;w=0;
for(int i=0;i<200;i++){
scanf("%d",&x);scanf("%d",&y);
w=x+y;while(1)
{
if(w/10==0){cou++;break;}
else {w=w/10; cou++;}
}
printf("%d\n",cou);
}
return 0;
}