import java.util.ArrayList;
import java.util.List;
public class program {
public static List<Integer> uniqueIntegersSumUpToZero(int n) {
List<Integer> result = new ArrayList<>(n);
for (int i = 0; i < n; i++) {
result.add(2 * i - n + 1);
}
return result;
}
public static void main(String[] args) {
int n = 6;
List<Integer> result = uniqueIntegersSumUpToZero(n);
for (int val : result) {
System.out.print(val + " ");
}
}
}
/*
run:
-5 -3 -1 1 3 5
*/