import java.util.Scanner;
import java.io.File;
import java.io.IOException;

public class scoresScanner
{
    public static void main(String[] args) throws IOException
    {   String name;
        int score;
        Scanner s = new Scanner(new File("scores.dat"));
        
        final int NUM_LINES = 5;
        
        for(int i = 0; i < NUM_LINES; i++)
        {   score = s.nextInt();
            name = s.next();
            
            System.out.println(name + " " + score);
        }
    }
}
