import itertools
import random


class Solution:

    def __init__(self, nums):
        """
        :type nums: List[int]
        """
        self.nums = nums

    def reset(self):
        """
        Resets the array to its original configuration and return it.
        :rtype: List[int]
        """
        return self.nums

    def shuffle(self):
        """
        Returns a random shuffling of the array.
        :rtype: List[int]
        """
        ans = self.nums[:]
        n = len(self.nums)
        for i in range(n):
            j = random.randint(0, n - 1)
            ans[i], ans[j] = ans[j], ans[i]
        return ans


s = Solution()
print(s.minMalwareSpread(graph, initial))

104df4b4cb91a360996dd0f64aca851e4760627a
<mask token>


class Solution:

    def __init__(self, nums):
        """
        :type nums: List[int]
        """
        self.nums = nums

    def reset(self):
        """
        Resets the array to its original configuration and return it.
        :rtype: List[int]
        """
        return self.nums

    def shuffle(self):
        """
        Returns a random shuffling of the array.
        :rtype: List[int]
        """
        ans = self.nums[:]
        n = len(self.nums)
        for i in range(n):
            j = random.randint(0, n - 1)
            ans[i], ans[j] = ans[j], ans[i]
        return ans


<mask token>

<mask token>


class Solution:

    def __init__(self, nums):
        """
        :type nums: List[int]
        """
        self.nums = nums

    def reset(self):
        """
        Resets the array to its original configuration and return it.
        :rtype: List[int]
        """
        return self.nums

    def shuffle(self):
        """
        Returns a random shuffling of the array.
        :rtype: List[int]
        """
        ans = self.nums[:]
        n = len(self.nums)
        for i in range(n):
            j = random.randint(0, n - 1)
            ans[i], ans[j] = ans[j], ans[i]
        return ans


<mask token>
print(s.minMalwareSpread(graph, initial))

<mask token>


class Solution:

    def __init__(self, nums):
        """
        :type nums: List[int]
        """
        self.nums = nums

    def reset(self):
        """
        Resets the array to its original configuration and return it.
        :rtype: List[int]
        """
        return self.nums

    def shuffle(self):
        """
        Returns a random shuffling of the array.
        :rtype: List[int]
        """
        ans = self.nums[:]
        n = len(self.nums)
        for i in range(n):
            j = random.randint(0, n - 1)
            ans[i], ans[j] = ans[j], ans[i]
        return ans


s = Solution()
print(s.minMalwareSpread(graph, initial))

import itertools
import random


class Solution:

    def __init__(self, nums):
        """
        :type nums: List[int]
        """
        self.nums = nums

    def reset(self):
        """
        Resets the array to its original configuration and return it.
        :rtype: List[int]
        """
        return self.nums

    def shuffle(self):
        """
        Returns a random shuffling of the array.
        :rtype: List[int]
        """
        ans = self.nums[:]
        n = len(self.nums)
        for i in range(n):
            j = random.randint(0, n - 1)
            ans[i], ans[j] = ans[j], ans[i]
        return ans


s = Solution()
print(s.minMalwareSpread(graph, initial))
