G. Megadice
time limit per test
0.25 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
2
Output
6.66667