LearnPy Hub
← Arena
IntermediateRating 1400

Wait for Warmer

For each day, print how many days you must wait for a warmer temperature (0 if never).

Input

n, then n temperatures.

Output

One line.

Sample 1

Input
8
73 74 75 71 69 72 76 73
Output
1 1 4 2 1 1 0 0

Sample 2

Input
4
30 40 50 60
Output
1 1 1 0
solution.py
Output appears here
Wait for Warmer · Python Arena problem · LearnPy Hub