#輸入
n = int(input())
#x, y座標陣列
x = []
y = []
# 輸入頂點座標
for _ in range(n):
#新輸入的座標存進陣列
nx, ny = map(int, input().split())
x.append(nx)
y.append(ny)
# 確保多邊形閉合
x.append(x[0])
y.append(y[0])
# 計算多邊形面積(行列式)
f = 0
s = 0
for i in range(n):
f += x[i] * y[i + 1]
s += y[i] * x[i + 1]
ans = round(abs(f - s) / 2)
#輸出
print(ans)