In late 1872, David Hilbert entered the Friedrichskolleg Gymnasium; but, after an unhappy period, he transferred to (late 1879) and graduated from (early 1880) the more science-oriented Wilhelm Gymnasium.