#include <bits/stdc++.h>

using namespace std;

const int MOD = 1e9+7;
int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    int n;
    cin >> n;
    int xmax, xmin, ymax, ymin;
    vector<pair<int, int>> c;
    for (int i = 0; i < n; ++i) {
        int a, b;
        cin >> a >> b;
        c.push_back({a, b});
        if (i == 0) {
            xmax =a, xmin =a;
            ymax =b, ymin =b;
            cout << 0 << '\n';
        }
        else if (i == 1) {
            cout << abs(xmax - a) * abs(ymax-b) << '\n';
        }
        else {
            long long s1=0,s2=0,s3=0,s4=0;
            for (auto i : c) {
                s1 += abs(i.first - xmax)*1LL*abs(i.second-ymax);
                s1%=MOD;
                s2 += abs(i.first - xmin)*1LL*abs(i.second-ymax);
                s2%=MOD;
                s3 += abs(i.first-xmax)*1LL*abs(i.second-ymin);
                s3%=MOD;
                s4 += abs(i.first-xmin)*1LL*abs(i.second-ymin);
                s4%=MOD;
            }
            cout << max(s1, max(s2, max(s3, s4))) << '\n';
        }
    }
    return 0;
}