#CCBCHBAHAI0000135. Chuẩn hóa dấu (Sign Normalization)

Chuẩn hóa dấu (Sign Normalization)

Sign Normalization

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given an integer array A=(a0,a1,…,an−1)A=(a_0,a_1,\ldots,a_{n-1}), replace each value by its sign:

$$s_i=\begin{cases} -1,&a_i<0,\\ 0,&a_i=0,\\ 1,&a_i>0. \end{cases}$$

Print S=(s0,s1,…,sn−1)S=(s_0,s_1,\ldots,s_{n-1}).

Input

  • The first line contains nn.
  • The second line contains nn integers aia_i.

Output

Print one line containing nn values from {−1,0,1}\{-1,0,1\} separated by single spaces.

Subtasks

Subtask 1 (100 points): 1≤n≤1051\le n\le10^5 and −1018≤ai≤1018-10^{18}\le a_i\le10^{18}.

Examples

Input

7
-5 0 8 -1 1 0 20

Output

-1 0 1 -1 1 0 1

Explanation

Negative values -5 and -1 become -1; zeros remain 0; positive values 8, 1, and 20 become 1.