sentence1: He began his studies in Budapest in 1946 at the Main Gimnázium , and from 1947 to 1951 he visited the Madách Gimnázium in Debrecen .
sentence2: He began his studies in 1946 at the Reformed Gimnázium in Debrecen and from 1947 to 1951 he visited Madách Gimnázium in Budapest .