San Marino becomes smallest medal nation