#CCBCHBAHAI0000002. In kèm chỉ số 0-based (Print with 0-Based Indices)

In kèm chỉ số 0-based (Print with 0-Based Indices)

Print with 0-Based Indices

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

You are given an integer array aa of length nn, indexed from 00 to n−1n-1. For every index ii, print the index together with the value aia_i stored at that index.

Input

  • The first line contains the integer nn, the number of array elements.
  • The second line contains exactly nn integers a0,a1,…,an−1a_0,a_1,\ldots,a_{n-1} in increasing index order.

Output

Print exactly nn lines. Line i+1i+1 contains ii and aia_i, separated by one space.

Subtasks

Subtask 1 (20 points): n=1n=1, −9≤a0≤9-9 \le a_0 \le 9.

Subtask 2 (30 points): 2≤n≤202 \le n \le 20, 0≤ai≤1040 \le a_i \le 10^4 for every 0≤i<n0 \le i<n.

Subtask 3 (50 points): 1≤n≤10001 \le n \le 1000, −109≤ai≤109-10^9 \le a_i \le 10^9 for every 0≤i<n0 \le i<n.

Examples

Input

4
12 -5 7 7

Output

0 12
1 -5
2 7
3 7

Explanation

The four array entries are a0=12a_0=12, a1=−5a_1=-5, a2=7a_2=7, and a3=7a_3=7. Therefore the required index-value pairs are 0 12, 1 -5, 2 7, and 3 7.