#B3677. Panic Parity and Sign

    ID: 11336 Type: Default 1000ms 256MiB

Panic Parity and Sign

Panic Parity and Sign

In a parallel universe of the game Fifth Identity, survivors have a hidden statistic called Panic Value. Initially, when a survivor is not being chased by the regulator, the panic value is given by the initial amount \(y_0\). Once the survivor is chased for \(t\) seconds, the panic value is updated as follows:

  • At the 1st second, the panic value is \(y_0\).
  • For every subsequent second, the panic value is multiplied by the initial amount \(y_0\). Thus, if \(t > 0\), the panic value becomes \(y_0^t\).
  • If \(t = 0\), then the panic value is defined as 1.

Your task is to compute the parity (i.e. whether it is Odd or Even) and the sign (Positive, Negative, or Zero) of the panic value after \(t\) seconds.

Note: 0 is considered Even, and if the computed value is 0, its sign should be output as "Zero".

inputFormat

The input consists of two integers \(y_0\) and \(t\) separated by a space. \(y_0\) represents the survivor's initial panic value, and \(t\) represents the number of seconds the survivor is chased.

outputFormat

Output two strings separated by a space: the first is the parity ("Odd" or "Even"), and the second is the sign ("Positive", "Negative", or "Zero").

sample

3 0
Odd Positive