"""
P5744 【深基7.习9】培训(python3实现)
https://www.luogu.com.cn/problem/P5744
"""
n=int( input() )
while n>0:
a=input().split()
name=a[0]
age = int(a[1])
v = int(a[2])
age += 1
v = int(v * 1.2)
if v >= 600:
v = 600
print("%s %d %d"%(name, age, v))
n-=1
P1287 盒子与球(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122768360
P1303 A*B Problem(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122710997
P1307 [NOIP2011 普及组] 数字反转(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122738816
P1319 压缩技术(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122807738
P1403 [AHOI2005]约数研究--100分(python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122769915
P1414 又是毕业季II (80分 python3实现)
https://blog.csdn.net/dllglvzhenfeng/article/details/122774554