CF441E Valera and Number
Description
Valera is a coder. Recently he wrote a funny program. The pseudo code for this program is given below:
```plain
//input: integers x, k, p
a = x;
for(step = 1; step
Input Format
N/A
Output Format
N/A
Explanation/Hint
If the concept of expected value is new to you, you can read about it by the link:
http://en.wikipedia.org/wiki/Expected\_value