n = int(input()) xy = [list(map(int,input().split())) for _ in range(n)] xy += [xy[0]] v = 0 for X,Y in zip(xy,xy[1:]): x,y = X xx,yy = Y v -= xx*y-yy*x print(v)