#include<bits/stdc++.h>
using namespace std;
int t,n,a[10000],cnt,f,h;
int main() {
cin>>t;
for(int i=1;i<=t;i++){
cin>>n;
for(int j=1;i<=n;i++)cin>>a[i];
for(int j=1;j<=n;j++)h+=a[i];
for(int j=1;j<=n;j++){
f=0;
cnt+=j;
if(cnt==h-cnt)f=0;
else f=1;
}
}
if(f==0)cout<<"Yes";
else cout<<"No";
return 0;
}