#import the NumPy library
import numpy as np

#Creating an array
arr = np.array([1, 3, 2, 4, 5])

#Setting n as 3
n = 3

#Splits the array into two partitions and then fetching 
#'n' (3) largest values from the right partition
largest_n_values = np.partition(arr, -n)[-n:]

#displays the answer (ascending)
print(largest_n_values)