# -*- coding: utf-8 -*- n = int(input()) r = pow(n/3, 0.5) print(r+1)