# Include <iostream>
# Include <iomanip>
Using namespace STD;
Int Shu [100], up [2], down [2];
Int main ()
{
Int I, j, temp, jishu, Baoji;
Double A, B;
While (CIN> Shu [0]) & Shu [0]! = 0)
{
A = 0;
B = 0;
Up [0] = 0;
Up [1] = 0;
Down [0] = 0;
Down [1] = 0;
I = 0;
Do
{
I ++;
Cin> Shu [I];
} While (Shu [I]! = 0 );
J = 0;
While (j <i-1)
{
Temp = 0;
If (Shu [J] = Shu [J + 1] & J <i-1)
{
Jishu = 0;
While (Shu [J] = Shu [J + 1])
{
Jishu ++;
J ++;
}
Temp = jishu;
If (Shu [J] <Shu [J + 1])
Baoji = 0;
Else
Baoji = 1;
}
If (Shu [J] <Shu [J + 1] & J <i-1)
{
Up [0] ++;
Baoji = 0;
Jishu = temp;
Temp = 0;
While (Shu [J] <= Shu [J + 1] & J <i-1)
{
Jishu ++;
J ++;
}
Up [1] + = jishu;
}
If (Shu [J]> Shu [J + 1] & J <i-1)
{
Down [0] ++;
Baoji = 1;
Jishu = temp;
Temp = 0;
While (Shu [J]> = Shu [J + 1] & J <i-1)
{
Jishu ++;
J ++;
}
Down [1] + = jishu;
}
}
If (up [0]! = 0)
A = double (up [1])/up [0];
If (down [0]! = 0)
B = double (down [1])/down [0];
Cout <"Nr values =" <I <":" <setiosflags (IOs: fixed) <
<"" <Setiosflags (IOs: fixed) <B <Endl;
}
Return 0;
}