const height = parseInt(readline());

let total = height;
for (let i=1; i<=4; i++) {
    total += height/(2**i) * 2;
}
print(total);
const height5 = height / (2**5);
print(height5);