#include <stdio.h>
int main()
{
int n;
scanf("%d", &n);
printf("%.12f\n", 1080.0 / (n - 1));
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWludCBuOwoJCglzY2FuZigiJWQiLCAmbik7CgkKCXByaW50ZigiJS4xMmZcbiIsIDEwODAuMCAvIChuIC0gMSkpOwoJCglyZXR1cm4gMDsKfQ==