# Pseudocode in Latex without ending if and for

Is there such a package where the ending of a for loop or an if statement is not displayed? I don't mind for the LaTeX code itself, but for the result.

For example, I am using this:

\documentclass{article}

\usepackage{algorithm}
\usepackage{algorithmic}
\newcommand{\algorithmicinput}{\textbf{input}}
\newcommand{\INPUT}{\item[\algorithmicinput]}

\begin{document}

\begin{algorithm}[H]
\caption{Dolphinn: Preprocessing (data structure)}
\label{DolphinnPrep}
\begin{algorithmic}
\INPUT{Parameter $d'$.}
\STATE Initialize empty hashtable $T$.
\FOR{$i = 1$ to $d'$}
\STATE Sample $h_i \in F$ u.a.r.
\FOR{each $x \in h_i(P)$}
\STATE{Flip a fair coin and assign the result to $f_i(x)$.}
\ENDFOR
\ENDFOR
\STATE{For all $p \in P$, $f(p)=(f_1(h_1(p)), \ldots, f_{d'}(h_{d'}(p)))$.}
\end{algorithmic}
\end{algorithm}

\end{document}