package yukicoder146; import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); long n=sc.nextLong(); long sum=0; long mod=(long)Math.pow(10, 9)+7; for(int i=0;i