/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*
#include <stdio.h>
#include <string.h>
char *mysubstr(char *str, int start, int count)
{
int i;
for(i=start;i<=start+count;i++){
return i;
}
}
int main()
{
char str[10000]={};
int start,count,i;
scanf("%s",str);
scanf("%d %d",&start,&count);
printf("%s\n",mysubstr(str,start,count));
return 0;
}
*/
/*
#include <stdio.h>
struct student
{
int num;
int birth;
char name[10];
};
int main(){
struct student a;
a.birth = 2005;
a.num = 1;
printf("%d\n%d",a.birth,a.num);
return 0;
}
*/
/*
#include <stdio.h>
struct student
{
int pts;
int rank;
};
int main()
{
int a,i,j,cnt=0;
struct student st[201]={0};;
scanf("%d",&a);
for(i=0;i<a;i++){
scanf("%d",&st[i].pts);
}
for(i=0;i<a;i++){
cnt=1;
for(j=0;j<a;j++){
if(st[i].pts<st[j].pts){
cnt++;
}
}
st[i].rank=cnt;
printf("%d %d\n",st[i].pts,cnt);
}
return 0;
}
*/
/*
#include <stdio.h>
struct student
{
int country;
int num;
int pts;
};
int main()
{
int n,i,j,max=0,mi;
int c[100] = {};
struct student st[100]= {0};
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&st[i].country);
scanf("%d",&st[i].num);
scanf("%d",&st[i].pts);
}
max = st[0].pts;
mi=0;
for(i=0;i<3;i++){
max = 0;
for(j=0;j<n;j++){
if(st[j].pts>max){
max = st[j].pts;
mi=j;
}
}
printf("%d %d\n",st[mi].country,st[mi].num);
st[mi].pts = 0;
c[st[mi].country]++;
if(c[st[mi].country]>=2){
for(j = 0; j< n ; j++)
{
if(st[j].country==st[mi].country)
st[j].pts = 0;
}
}
}
return 0;
}
*/