#include<stdio.h>
int main()
{
    int n;
    scanf("%d",&n);
    double sum=0;
    double x=(double)n;
    for(int i=0;i<5;i++)
    {
        sum += x+x/2;
        x/=2;
    }
    printf("%lf\n%lf",sum-x,x);
    return 0;
}