class Solution(object):
    def findRelativeRanks(self, nums):
        """
        :type nums: List[int]
        :rtype: List[str]
        """
        medals = ["Gold Medal", "Silver Medal", "Bronze Medal"]
        s = sorted(list(enumerate(nums)), key=lambda x: x[1], reverse=True)
        for i, n in enumerate(s):
            if i < 3:
                nums[n[0]] = medals[i]
            else:
                nums[n[0]] = str(i+1)
        return nums

483f132e599de982a66be14d2e733bdf96eb02e4
<mask token>

class Solution(object):
    <mask token>

class Solution(object):

    def findRelativeRanks(self, nums):
        """
        :type nums: List[int]
        :rtype: List[str]
        """
        medals = ['Gold Medal', 'Silver Medal', 'Bronze Medal']
        s = sorted(list(enumerate(nums)), key=lambda x: x[1], reverse=True)
        for i, n in enumerate(s):
            if i < 3:
                nums[n[0]] = medals[i]
            else:
                nums[n[0]] = str(i + 1)
        return nums

class Solution(object):
    def findRelativeRanks(self, nums):
        """
        :type nums: List[int]
        :rtype: List[str]
        """
        medals = ["Gold Medal", "Silver Medal", "Bronze Medal"]
        s = sorted(list(enumerate(nums)), key=lambda x: x[1], reverse=True)
        for i, n in enumerate(s):
            if i < 3:
                nums[n[0]] = medals[i]
            else:
                nums[n[0]] = str(i+1)
        return nums
