Question
The Alchemist's Cipher Chest

A treasure vault is secured with a two-key lock. The vault contains a list of n numbered keys arranged in a rack in strictly increasing order. To open the vault, two keys must be chosen whose numbers sum to a secret target code.

Given the sorted rack of key numbers and the target code, find the two keys that open the vault. There is guaranteed to be exactly one valid pair. Return their positions in the rack (1-indexed).

Input

The first line contains KaTeX can only parse string typed expression. The second line contains KaTeX can only parse string typed expression space-separated integers in strictly increasing order. The third line contains the integer target.

Output

Two space-separated integers — the 1-indexed positions of the two keys.

Example
Example 1:
Input
4

2 7 11 15
9
Output
1 2
Explanation
Keys at positions 1 and 2 have values 2 and 7, which sum to 9.

Example 2:
Input
3

2 3 4
6
Output
1 3

Online