/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.ArrayList;
import java.util.List;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int avanco = 3;
        int numSoma = 500;
        List <Long> lista = new ArrayList<>();
        for (long a = 1; a <= 10; ++a){
            lista.add(a % avanco == 0 ? a + numSoma: a);
        }

        System.out.println(lista);
	}
}