#BS0000004. Viên bi ở đâu? (Where is the Marble?)

Viên bi ở đâu? (Where is the Marble?)

Where is the Marble?

Source: UVa

Version: Phuoc Hung OJ Extended

Problem Statement

There are nn marbles. Each marble has a non-negative integer written on it. The marbles are initially unsorted.

Sort the marbles in increasing order. After sorting, positions are numbered from 11 to nn.

For each of qq query values xx:

  • if xx occurs, find its first position in the sorted sequence;
  • otherwise report that it was not found.

Input

The first line contains nn and qq.

The second line contains the nn marble values.

The third line contains qq query values.

Output

First print:

CASE# 1:

For each query xx, print either:

x found at y

where yy is the first 1-based position of xx, or:

x not found

Subtasks

  • Subtask 1 — 20%: 1≤n,q≤1001\le n,q\le100.
  • Subtask 2 — 30%: 1≤n,q≤20001\le n,q\le2000.
  • Subtask 3 — 50%: 1≤n,q≤100001\le n,q\le10000, every input value is in [0,10000][0,10000].

Examples

Input

5 2
1 3 3 3 1
2 3

Output

CASE# 1:
2 not found
3 found at 3

Explanation

After sorting, the sequence is [1,1,3,3,3][1,1,3,3,3]. The value 22 is absent, while the first 33 is at 1-based position 33.