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 <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

#pragma warning(disable:4996)
#define MAX_DATA (200)
int main()
{
	char Work[MAX_DATA][256];

	int Num[2];
	int Divide;
	int nCnt2,nCnt = 0, Result, Keta = 1;

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
		gets(Work[nCnt2]);


	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
	{
		for (nCnt = 0; Work[nCnt] != '\0'; nCnt++)
		{
			if (Work[nCnt2][nCnt] == ' ')
			{
				char Work2[256];
				char Work3[256];

				strcpy(Work2, &Work[nCnt2][nCnt]);

				Work[nCnt2][nCnt] = '\0';

				strcpy(Work3, Work[nCnt2]);

				Num[0] = atoi(Work3);
				Num[1] = atoi(Work2);
				break;
			}
		}

		Result = Num[0] + Num[1];

		Keta = 1;
		for (nCnt = 0;; nCnt++)
		{
			Result = Result / 10.0f;

			if (Result > 0)
				Keta++;
			else
				break;
		}

		printf("%d\n", Keta);
	}
	

	return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int main()
{
	int a, b;
	while (cin>>a>>b)
	{
		char s[7];
		sprintf(s, "%d", a + b);
		cout << strlen(s) << endl;
	}


	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
#include<math.h>
typedef long long int ll;
using namespace std;

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

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

int main()
{
	int a,b,c;
	stringstream s;
	while(cin >> a >> b)
	{
	c = a+b;

	s << c;
	cout << s.str().size() << endl;
	}
	return 0;
}

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

int hoge(int sum,int cnt){
	if(sum/10<=9) return cnt;
	else return hoge(sum/10,++cnt);
}

int main(){
	for(int i=0;i<3;i++){
		int a,b;
		cin>>a>>b;
		if(a+b<10) cout<<1<<endl;
		else cout<<hoge(a+b,2)<<endl;
	}
	return 0;
}

C++: #include<cstdio>
#include <vector>
#include <algorithm>
#include <functional>

#include <cstdlib>
#include <iostream>
#include <string>
#include <typeinfo>
using namespace std;

int GetDigit(int num);

int main(){
	std::vector<int> r;
	while(true) {
		int nums[2];

		string str;
		int a =0;
		getline(cin, str); 
		string n[2];
		int nn[2];
		for(int i=0; i<str.size(); ++i){
			if(str[i] == ' ') a++;
			n[a] += str[i];
		}
		if(n[1].size() == 0) break;
		nn[0] = std::stoi(n[0]);
		nn[1] = std::stoi(n[1]);


		r.push_back(nn[0]+nn[1]);
	}

	for(int i=0; i<r.size(); ++i) {
		printf("%d\n", GetDigit(r[i]));
	}
	

	return 0;
}

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

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		if (sum != 0){
			++cou;
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++cou;
			}
		}
		printf("%d\n", cou);
		cou = 0;
	}
}

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

#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

int main(){
  int a, b, sum;
  int res = 0;

  while(scanf("%d %d",&a,&b) != EOF){
    res = 0;
    sum = a + b;
    while(sum){
      sum /= 10;
      res++;
    }
    printf("%d\n",res);
  }

  return 0;
}

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


using namespace std;

int main() 
{
	
	int a,b;
	string input;
	int size[200];
	int i = 0;
	int count = 0;	
	//cout << "input two numbers" << endl;
	for(i=0;i<200;i++){
	cin >> a >> b;
	//if(a==""){break;}
	b += a;
	input = to_string(b);
	size[i] = input.size();	
	count++;
}
for(i=0;i < count;i++){
	cout << size[i] << endl;
}

}

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

	int main()
	{
	
		int a,b,c[3];
		char str[16];
		for(int i=0;i<3;++i){
			cin >> a >>b;

			c[i] = sprintf(str,"%d",a + b);
		}
		for(int i=0;i<3;++i)
			cout << c[i] << endl;
		return 0;
	}

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

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

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

int main()
{
	int a,b,c;
	cin >>a >> b;
	c = a+b;
	int ret = 1;
	for(int i=1;;i++){
		if( c/pow(10,i)){
			ret++;
		}else{
			break;
		}
	}
	cout <<ret <<endl;
    
	return 0;
}

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

int main()
{
	int x, y;
	while (cin >> x >> y)
		cout << x + y << "\n";
	cout.flush();
}

C++: #include <iostream>
#include <string>
using namespace std;
int main()
{
	int a, b;
	while (1){
		cin >> a;
		if (a < 0){
			break;
		}
		cin >> b;
		auto sum = a + b;
		string str(to_string(sum));
		cout << str.size();
	}

}

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

typedef long long ll;
typedef pair<ll, ll> P;

#define pb push_back
#define rep(i, n) for(int i = 0; i < (n); i++)
#define dep(i, a, n) for(int i = a; i >= (n); i--)
#define FOR(i, a, n) for(int i = a; i < (n); i++)
#define mod (ll)(1e9+7)
#define int ll
#define INF 100000000

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

signed main() {
	ll a, b;
  while(cin >> a >> b) {
    cout << to_string(a + b).size() << endl;
  }
	return 0;
}

C++: #include <iostream> 
#include <math.h> 
#include <iomanip> 
using namespace std;  
  
int main()  
{  
int input1,input2,sum,i;
cin >> input1 >> input2;
int a=input1;
int b=input2;
int c=0;
for(i=1;i<=1;i++)
{sum=input1+input2;
for(int i=1;sum!=0;i++)
{sum=sum/10;
c=c+1;}
cout << c << endl;
c=0;
}
for(int i=1;i<=1000;i++)
{cin >> input1 >> input2;
if(a==input1 && b==input2)
{break;}
sum=input1+input2;
for(i=1;sum!=0;i++)
{sum=sum/10;
c=c+1;}
cout << c << endl;
a=input1;
b=input2;
c=0;
}
}

C++: #include<iostream>
using namespace std;
int main (){
    int a[1000000],b[1000000];
    for(int i=0;i<200;i++){
        cin>>a[i]>>b[i];
        if(a[i]+b[i]<10){
        cout<<"1"<<endl;
        }
        else if(a[i]+b[i]<100){
        cout<<"2"<<endl;
        }
        else if(a[i]+b[i]<1000){
            cout<<"3"<<endl;
        }
        else if(a[i]+b[i]<10000){
            cout<<"4"<<endl;
        }
        else if(a[i]+b[i]<100000){
            cout<<"5"<<endl;
        }
        else if(a[i]+b[i]<1000000){
            cout<<"6"<<endl;
        }
        else if(a[i]+b[i]<10000000){
            cout<<"7"<<endl;
        }
    }
    return 0;
}

C++: #include<stdio.h>
#include<math.h>
int array[100];
int counter(long long int a,long long int b);
int main()
{
    long long int a,b;
    int count;
    while(scanf("%lld %lld",&a,&b)==2)
    {
        count=counter(a,b);
        printf("%d\n",count);
    }
    return(0);
}
int counter(long long int a,long long int b)
{
    long long int number;
    int x,count=0;
    number=a+b;
    if(number==0)
    {
        count=1;
        return(count);
    }
    else
    {

        while(number!=0)
        {
            count++;
            number=number/10;
        }
        return(count);
    }
}

C++: import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);for(int t=s.nextInt();t-->0;){int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?"YES":"NO");}}}