from sys import stdin
import ast
x = ast.literal_eval(stdin.readline())

for i in x:
    print i['age'], i['name']