const input = require('fs').readFileSync('/dev/stdin', 'utf8'); const n = +input; console.log(Math.sqrt(n / 3)| 0);