#include using namespace std; typedef long long ll; typedef long double ld; #define REP(i, n) for (int i = 0; i < (n); ++i) #define REPR(i, n) for (int i = n - 1; i >= 0; --i) #define FOR(i, m, n) for (int i = m; i < n; ++i) #define FORR(i, m, n) for (int i = m; i >= n; --i) #define ALL(v) (v).begin(),(v).end() templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> n; vector x(n),y(n); REP(i,n) cin >> x[i] >> y[i]; ll ans=0; FOR(i,1,n-1){ int a=x[i]-x[0],b=y[i]-y[0],c=x[i+1]-x[0],d=y[i+1]-y[0]; ans+=abs(a*d-b*c); } cout << ans << endl; }