orphaned early in life and brought up in a state home for children , johann distinguished himself early in life with his academic talent and was assigned to the most prestigious gymnasium in his stadt/lander .