frederik 3rd died at copenhagen castle 60 years old, and became buried at roskilde cathedral. sofie amalie died 20th february 1685, and was buried besides her husband.

Please write the text above using proper case.
Frederik 3rd died at Copenhagen Castle 60 years old, and became buried at Roskilde Cathedral. Sofie Amalie died 20th February 1685, and was buried besides her husband.