import java.util.Arrays;
class Hello {
    public static void main(String[] args) {
        int arr[] = { 2, 3, 12, 4, 12, -2 };
        int[] copy = Arrays.copyOfRange(arr, 1, 4);
        String[] names = { "MESSI", "RONALDO", "NEYMAR" };
        for (int i : copy)
            System.out.print(names[i-2] + " ");
    }
}