Math in Input Text

Hi, I am trying to find an equivalent of this code. Basically, I want to show user the greek letters and subscripts using good math during number request.

gamma_c = st.number_input("$\gamma _c$")

#This works in st.write
st.write("$\gamma _c$")