/* 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
{
{
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);
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwuQXJyYXlMaXN0OwppbXBvcnQgamF2YS51dGlsLkxpc3Q7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCWludCBhdmFuY28gPSAzOwogICAgICAgIGludCBudW1Tb21hID0gNTAwOwogICAgICAgIExpc3QgPExvbmc+IGxpc3RhID0gbmV3IEFycmF5TGlzdDw+KCk7CiAgICAgICAgZm9yIChsb25nIGEgPSAxOyBhIDw9IDEwOyArK2EpewogICAgICAgICAgICBsaXN0YS5hZGQoYSAlIGF2YW5jbyA9PSAwID8gYSArIG51bVNvbWE6IGEpOwogICAgICAgIH0KCiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKGxpc3RhKTsKCX0KfQ==