// 10  5  2.5  1.25  0.625 


let line;
while(line=readline()){
    const res=getRoad(parseFloat(line))
    console.log(res.road)
    console.log(res.num)
}
function getRoad(num){
    let road=num;
    let i=5;
    while(i){
        i!==1?road=road+num:""; 
        num=num/2;
        i-=1;
    }
    let obj={num,road};
    return obj
}