#include<bits/stdc++.h>
using namespace std;
int n;
struct xx{
string name;
int old,cj;
void wind(){
cout<<name<<' '<<++old<<' ';
if(cj*1.2<600)cj=1.2*cj;
else cj=600;
cout<<cj<<'\n';
}
}k[10];
int main(){
cin>>n;
for(int i=1;i<=n;i++){
cin>>k[i].name>>k[i].old>>k[i].cj;
}
for(int i=1;i<=n;i++){
k[i].wind();
}
return 0;
}