AT_abc448_a [ABC448A] chmin

Description

You are given a length- $ N $ integer sequence $ A=(A_1,A_2,\dots,A_N) $ and an integer $ X $ . For $ i=1,2,\dots,N $ in this order, do the following. - If $ A_i

Input Format

The input is given from Standard Input in the following format: > $ N $ $ X $ $ A_1 $ $ A_2 $ $ \dots $ $ A_N $

Output Format

Output $ N $ lines. The $ k $ -th line should contain the output for $ i=k $ .

Explanation/Hint

### Sample Explanation 1 - Initially, $ X=10 $ . - For $ i=1 $ : since $ A_1=6