puts Integer.sqrt(gets.to_s.to_i.fdiv(3)) + 1