he studied philosophy and history in cracow