// Sample input 4, in Java. | 2499999
public class sandwich {
  public sandwich() {
  }

  public static long GetN() {
    return (long)5e6;
  }

  public static long GetTaste(long index) {
    return (index % 2 == 0) ? index : -index;
  }
}