#!/usr/bin/env python from math import sqrt, ceil s = int(input()) rans = sqrt(s/3) ans = ceil(rans) print(ans)