#include <bits/stdc++.h>
using namespace std;
//定义结构体类型Student,包含姓名,年龄,分数三个成员变量
struct Student {
string name;
int age;
int score;
} ;
Student px(Student t) { //参数是student类型
t.age += 1;
t.score += (int)(t.score * 0.2); //需要强制类型转换为int
if (t.score > 600) t.score = 600;
return t; //返回该student对象
}
int main() {
int n;
cin >> n;
Student t[n];
for (int i = 0; i < n; i++) {
cin >> t[i].name >> t[i].age >> t[i].score;
}
for (int i = 0; i < n; i++) {
t[i] = px(t[i]);
cout << t[i].name << " " << t[i].age << " " << t[i].score << endl;
}
return 0;
}