program main
Implicit None
	integer i,N
	integer,allocatable :: P(:)
	character(10) s(:)
	allocatable :: s
	
	read*,N
	allocate(S(N),P(N))
	
	do i=1,N
		read*,S(i),P(i)
	end do

	do i=1,N
		write(6,'(i0,x,i0)') S(i),P(i)
	end do
!wakannai	
end program main