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