from math import gcd n=int(input()) a=list(map(int, input().split())) sz=1 while sz=b: return 0 a1=a+sz b1=b+sz ret=0 while a1>=1 b1>>=1 return ret ans=0 r=1 for i in range(n): while r<=n: if query(i, r)==1: break r+=1 ans+=(n+1-r) print(ans)