import itertools
from numpy import array
n = int(input())
a = [0]*n
b = [0]*n
v = [0]*n
for i in range(n):
	a[i],b[i] = map(int,input().split())
ans = 0
k = 0
for l in range(1,n+1):
	for T in itertools.combinations(range(0,n),l):
		for  O in itertools.combinations(T,2):
			if a[O[0]]*a[O[1]]+b[O[0]]*b[O[1]] != 0:
				k += 1
		if k == l*(l-1)//2:
			ans += 1
print(ans%1000000007)