const HEIGHT = parseInt( readline() )

const step = 5;

const heightArr = []

const sumArr = []

for( let i = 0; i < step; i++ ) {
  
  if( i === 0 ) {
    
    heightArr.push( HEIGHT / 2 )
    sumArr.push( HEIGHT )
    
  }else {
    
    heightArr[ i ] = heightArr[ i - 1 ] / 2
    sumArr.push( heightArr[ i - 1 ] * 2 )
    
  }

}

const total = sumArr.reduce( ( total, current ) => total + current )

console.log( total.toFixed(6) ) 
console.log( heightArr[ step - 1 ].toFixed(6) )