An asymptotic relationship for ruin probabilities under heavy-tailed claims