Super minimum#2248

Super minimum

1 second
128 megabytes
Easy

Given numbers. For every consecutive numbers, find the minimum among them.

Input

The first line contains the numbers and (1 \leq n \leq 10^6, 1 \leq k \leq n). The second line contains integers in the range from to .

Output

For every consecutive numbers, print the minimum among them.

Examples

Example 1

Loading
Loading