n = int(input()) points = [tuple(map(int, input().split())) for _ in range(n)] total = 0 for i in range(n): x, y = points[i] next_x, next_y = points[(i + 1) % n] total += x * next_y - next_x * y print(abs(total))