K-variance#11317

K-variance

1 second
128 megabytes
Very easy

Consider the variance of the sequence a_1, a_2, ..., a_n as

\sqrt{\sum_{i=1}^n (a_i - \bar{a})^2 \over n - 1}

where

\bar{a} = {\sum_{i=1}^n a_i \over n}

Consider the K-variance as the variance of the consecutive subsequence of length .

Your task is to calculate all (n - k + 1) K-variances for the given sequence and .

Formally, the -th (1 \le i \le n - k + 1) K-variance r_i is the variance of sequence \{a_i, a_{i+1}, ..., a_{i+k-1}\}.

Input

The first line contains two integers and k~(2 \le k \le n \le 10^5).

The second line contains integers a_1, a_2, ..., a_n~(|a_i| \le 100).

Output

Print (n - k + 1) lines with real numbers r_1, r_2, ..., r_{n-k+1}.

The answer is considered correct if its absolute or relative error does not exceed 10^{-4}.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading