All problems

Do They Move Together?

hardPythonStatisticsCorrelation

Fenwick Insurance holds two numbers for every policy — how far the driver commutes and how much they have claimed — and before anyone builds a model the analyst wants only the direction of the relationship. Does a larger value in the first column tend to arrive with a larger value in the second, with a smaller one, or with neither? That direction is the sign of the covariance between the columns: positive when pairs tend to sit above both column averages together or below both together, negative when one runs high while the other runs low, and zero when the two tendencies cancel exactly.

Task: Print the direction of the relationship between the two columns.

Input

The first line holds one integer n, how many pairs follow. Each of the next n lines holds two plain numbers separated by a single space: the first column's value, then the second column's. Either may carry a decimal point.

Output

One line holding exactly one of these three lowercase words: positive, negative, or zero.

Example:

Input:
4
1 2
2 4
3 5
4 8

Output:
positive

Sign in to solve this problem

Reading problems is free for everyone — solving them (Run, Submit, and tracking what you've solved) needs an account.

Sign in

Discussion

Sign in to join the discussion — reading is open to everyone.

Loading comments…