San Marino is an independent republic and a mountainous microstate enclosed by Italy. It is popular as one of the…