import java.util.Scanner; public class Main { static final int MOD = 1000000007; public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.next()); long[] x = new long[n]; long[] y = new long[n]; for ( int i = 0 ; i < n ; i++ ) { x[i] = Long.parseLong(sc.next()); y[i] = Long.parseLong(sc.next()); } sc.close(); long ans = 0; for ( int i = 0 ; i < n ; i++ ) { for ( int j = i + 1 ; j < n ; j++ ) { for ( int k = j + 1 ; k < n ; k++ ) { ans += Math.abs((x[k] - x[i]) * (y[j] - y[i]) - (y[k] - y[i]) * (x[j] - x[i])); ans = ans % MOD; } } } System.out.println(ans); } }