using System; using System.Collections.Generic; using System.IO; using System.Linq; class Solution { static void Main(String[] args) { int n = Convert.ToInt32(Console.ReadLine()); string[] m_temp = Console.ReadLine().Split(' '); int[] m = Array.ConvertAll(m_temp, Int32.Parse); if(n%2==0) { Console.WriteLine((n - 1) % 1000000007); } else Console.WriteLine((n+1) % 1000000007); Console.ReadLine(); } }