(1) He began his studies at the Main Gimnazium in Budapest in 1946 , and from 1947 to 1951 he visited Madach Gimnazium in Debrecen .
(2) He began his studies in 1946 at the Main Reformed Gimnazium in Debrecen , and from 1947 to 1951 , he attended the Madach Gimnazium in Budapest .

Do these two sentences mean the same thing?
no