CF939E Maximize!
Description
You are given a multiset $ S $ consisting of positive integers (initially empty). There are two kind of queries:
1. Add a positive integer to $ S $ , the newly added integer is not less than any number in it.
2. Find a subset $ s $ of the set $ S $ such that the value  is maximum possible. Here $ max(s) $ means maximum value of elements in $ s $ ,  — the average value of numbers in $ s $ . Output this maximum possible value of .
Input Format
The first line contains a single integer $ Q $ ( $ 1
Output Format
Output the answer for each query of the second type in the order these queries are given in input. Each number should be printed in separate line.
Your answer is considered correct, if each of your answers has absolute or relative error not greater than $ 10^{-6} $ .
Formally, let your answer be $ a $ , and the jury's answer be $ b $ . Your answer is considered correct if .