Go: package main

import "fmt"

func main() {
    sayHello()
}

func sayHello() {
    for i:=1; i<10; i++ {
        for j:=1; j<10; j++ {
            fmt.Printf("%dx%d=%d\n",i,j,i*j)
        }
    }
}

C++: #include<iostream>
using namespace std;
int main()
{
int i,j;
for(i=1;i<=9;i++)
{
	for(j=1;j<=9;j++)
	{
		cout<<i<<"x"<<j<<"="<<i*j<<endl;
	}
}
return 0;

}

C++: #include<iostream>
using namespace std;
int i;
int I;
int main(){
     for(i=1;i<=10;i++){
        for(I=1;I<=10;I++){
          cout<<i<<'x'<<I<<'='<<i*I<<'?\n';
         }
      }
    return 0;
}

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

int main(){
    for(int i = 1; i <= 9; i++){
        for(int i = 1; i <= 9; i++){
            cout << i << "x" << j << "=" << i * j << endl;
        }
    }
    return 0;
}

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

using namespace std;

int 
main()
{
	int i = 0, j = 0;

	for ( i = 1 ; i < 10 ; i = i + 1 )
	{
		for ( j = 1 ; j < 10 ; j = j + 1 )
		{
			cout << i << "x" << j << "=" << i*j << endl;
		}
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
 
int main(){
    int i, j;
    for(i = 1; i <=9; i++){
        for(j = 1; j <=9; j++){
            cout << i << "x" << j << "=" << i*j << endl;
        }
    }
 
    return 0;
}

C++: #import<cstdio>
int i,j,k;main(){for(;i<81;i++)j=i/9+1,k=i%9+1,printf("%dx%d=%d\n",j,k,j*k);}

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

int main()
{
	for (int i = 1; i <= 9; ++i)
	{
		for (int j = 1; j <= 9; ++j)
		{
			cout << i << "x" << j << "=" << i*j << endl;
		}
	}
	
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void) 
{
  for (int i=1; i <= 9; i++)
    for (int j=1; j <= 9; j++)
      cout << i << "x" << j << "=" << (i*j) << endl;
  return 0;
}

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

int main(){
int a;
int b;
a=1;
while(a<10){
b=1;
while(b<10){
cout << a <<"x"<< b << "="<<a*b;
b=b+1;}
a=a+1;}

    return 0;
}

C++: #include<cstdio>
int main(void){
for(int i=1;i<10;i++){
 for(int j=1;j<10;j++){
  printf("%dx%d=%d\n",i,j,i*j);
 }
}
return 0;
}

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

int main(){
	for (int i = 1; i <= 9; i++){
		for (int j = 1; j <= 9; j++){
			printf("%dx%d=%d\n", i, j, i * j);
		}
	}
	return 0;
}

C++: #include <iostream>

int main()
{
    for(int i = 1; i<10; i++) {
        for(int j = 1; j < 10;j++) {
            std::cout << i << "x" << j << "=" << i*j << std::endl;
        }
    }
    return 0;
}

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

int main() {
	for (int i = 1; i <= 9; i++) {
		for (int j = 1; j <= 9; j++) {
			cout << i << "x" << j << "=" << i*j << endl;
		}
	}
	return 0;
}

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

int main()
{
	for( int i=1;i<=9;i++ ){
		for( int j=1;j<=9;j++ ){
			cout << i << "x" << j << "=" << i*j << endl;
		}
	}
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
    for(int i=1;i<=9;i++){
        for(int j=1;j<=9;j++){
            cout<<i<<"x"<<j<<"="<<i*j<<endl;
        }
    }
}

C++: #include <cstdio>

int main(){
	for(int i=1;i<=9;++i)
		for(int j=1;j<=9;++j)
			printf("%dx%d=%d\n",i,j,i*j);
	return 0;	
}

C++: #include <iostream>
#define calc(x) (x*x)\

using namespace std;

int main(int argc, char **argv)
{
	for(int i = 1; i <= 9; i++){
		cout << i << "x" << i << "=" << calc(i) << endl;
	}
	
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int main() {
vector<int> a = {1,2,3,4,5,6,7,8,9};
for(int i:a)for(int j:a)
cout << i<<"x"<<j<<"="<<i*j<<endl;
return 0;
}

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

int main(){
for(int i=1; i<=9; i++){
	for(int j=1; j<=9; j++){
		cout << i << "x" << j << "=" << i*j << endl;
	}
}
	return 0;
}

C++: #include "iostream"
#include "cstring"
#include "cstdio"
#include "set"
#include "map"
#include "algorithm"
#include "vector"
#include "queue"
#include "cassert"
using namespace std;
#define F first
#define S second
#define MP make_pair
#define PB push_back
typedef long long ll;
typedef pair<int, int> PII;
const int N = 100010;

vector<PII> e[N];
vector<int> node;
int balence[N], visit[N], size[N];
void dfs(int x, int fa)
{
	size[x] = 1;
	balence[x] = 0;
	for(int i = 0; i < e[x].size(); ++ i){
		int u = e[x][i].F;
		if(u == fa || visit[u]) continue;
		dfs(u);
		size[x] += size[u];
		balence[x] = max(balence[x], size[u]);
	}
	node.PB(x);
}

int GetRoot(int x)
{
	dfs(x, -1);
	node.clear();
	int total = size[x];
	int root = node[0];
	int val = max(balence[root], total - size[root]);
	for(int i = 1; i < node.size(); ++ i){
		int u = node[i];
		int tmp = max(balence[u], total - size[u]);
		if(tmp < val){
			val = tmp;
			root = u;
		}
	}
	return root;
}
long long ans = 0;
map<int, int> mp;
void dfs2(int x, int pa, int depth)
{
	mp[depth] ++;
	
void solve(int x)
{
	visit[x] = 1;
	int root = GetRoot(x);
	dfs2(root, -1, 0);
	for(int i = 0; i < e[x].size(); ++ i){
		int u = e[x][i];
		if(!visit[u]){
			solve(u);
		}
	}
}
int main(void)
{
	int n, x, y, w;
	scanf("%d",&n);
	for(int i = 1; i < n; ++ i){
		cin >> x >> y >> w;
		e[x].PB(MP(y, w));
		e[y].PB(MP(x, w));
	}
	ans = 0;
	solve(1);
	cout << ans << endl;
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
	for(int i=1;i<=9;i++){
		for(int j=1;j<=9;j++){
			cout<<i<<"x"<<j<<"="<<i*j<<endl;
		}
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int main ()
{
    for (int i=1; i<=9; i++) {
        for (int j=1; j<=9; j++) {
            cout << i << 'x' << j << '=' << i*j << '\n';
        }
    }
    return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <string>
#include <algorithm>
#include <math.h>
#include <map>
#include <vector>

//#define PI 3.141592653589

using namespace std;



int main()
{
	for (int i=1; i<=9; i++)
	{
		for (int j=1; j<=9; j++)
		{
			cout << i << "x" << j << "=" << i*j << endl;
		}
	}
	
	return 0;
}

C++: #include <iostream>

using namespace std;

void tabuada(int valor) {
	for(int index = 1; index < 10; ++index)
		cout << valor << "x" << index << "=" << (valor * index) << endl;	
}

int main() {
	for(int index = 1; index < 10; ++index)
		tabuada(index);

	return 0;
}

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


using namespace std;

int main()
{
	int x;
	int i,j;

	for(i=1;i<=9;i++){
		for(j=1;j<=9;j++){
			x = i*j;
			cout << i << 'x' << j << '=' << x << endl;
		}
	}	
}

C++: #include<stdio.h>

int main(){
	while(true);
	return 0;
}

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

int main()
{
	for (int i = 1; i <= 9; ++i)
	{
		for (int j = 1; j <= 9; ++j)
		{
			cout << i << "x" << j << "=" << i*j << endl;
		}
	}
	system("pause");
	return 0;
}

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

int main(){
    for(int i = 1; i <= 9; i++){
        for(int j = 1; j <= 9; j++){
            cout << i << "x" << j << '=' << i * j << endl;
        }
    }


    return 0;
}

C++: #include <iostream>
using namespace std;
int main()
{
for (int i = 1; i < 10; ++i)
for (int j = 1; j < 10; ++j)
cout << i << "x" << j << "=" << i * j << endl;
return 0;
}

C++: #import<stdio.h>
i=0,k,j;main(){for(;j=i/9+1,k=i%9+1,i<81;i++)printf("%dx%d=%d\n",j,k,j*k);}

C++: #include <iostream>
int main(void)
{
for(int a = 1; a <= 9; a++){
for(int b = 1; b <= 9; b++){
std::cout << a << 'x' << b << '=' << a*b << std::endl;
}
}
return 0;
}

C++: #include<stdio.h>
int main()
{ int a,b;
for(a=1;a<10;a++)
{
for(b=1;b<10;b++)
{
printf("%dX%d=%d\n",a,b,a*b);
}
}
return 0;
}

C++: #include <stdio.h>

int main(void) {
	int i, j;
	
	for (i=1; i<=9; i++) {
		for (j=1; j<=9; j++) {
			printf("%dx%d=%d\n", i, j, i*j);
		}
	}
	
	return 0;
}

C++: #include<stdio.h>
int main(){
int i,j;
for(i=1;i<10;i++){
for(j=1;j<10;j++){
printf("i*j"/n);
}
}

return 0;
}

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

int main() {
	for(int i=1; i<=9; i++)
	for(int j=1; j<=9; j++)
		cout<<i<<'x'<<j<<'='<<i*j<<endl;
	return 0;
}