/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.Scanner;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
double k = 1;
int n;
Scanner in
= new Scanner
(System.
in); while (in.hasNextInt())
{
n = in.nextInt();
for ( int i = 366 - n; i <= 365; i++ ) {
k = k * i;
k = k / 365;
}
System.
out.
printf("%.8f",
100 * ( 1 - k
)); k=1;
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJZG91YmxlIGsgPSAxOwoJCWludCBuOwoJCVNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCQl3aGlsZSAoaW4uaGFzTmV4dEludCgpKQoJCQl7CgkJCQluID0gaW4ubmV4dEludCgpOwoJCQkJZm9yICggaW50IGkgPSAzNjYgLSBuOyBpIDw9IDM2NTsgaSsrICkgewogICAgICAgIAkJCWsgPSBrICogaTsKICAgICAgICAJCQlrID0gayAvIDM2NTsKICAgICAgICAJCX0KICAgICAgICAJCVN5c3RlbS5vdXQucHJpbnRmKCIlLjhmIiwxMDAgKiAoIDEgLSBrICkpOwogICAgICAgIAkJU3lzdGVtLm91dC5wcmludGxuKCIlIik7CiAgICAgICAgCQlrPTE7CgkJCX0KCX0KfQ==