import heapq


def smallest(n, data):
    heapq.nsmallest(n, data)


def largest(n, data):
    heapq.nlargest(n, data)

387e7c96869479774c7fa0b9293b47b7f6f345a5
<mask token>

<mask token>


def largest(n, data):
    heapq.nlargest(n, data)

<mask token>


def smallest(n, data):
    heapq.nsmallest(n, data)


def largest(n, data):
    heapq.nlargest(n, data)

import heapq


def smallest(n, data):
    heapq.nsmallest(n, data)


def largest(n, data):
    heapq.nlargest(n, data)
