QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#350500 | #8330. Count off 3 | Crysfly | RE | 0ms | 0kb | C++17 | 147.2kb | 2024-03-10 19:33:39 | 2024-03-10 19:33:40 |
Judging History
answer
// what is matter? never mind.
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,sse4,popcnt,abm,mmx,avx,avx2")
#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
#define ll long long
//#define int unsigned long long
#define ull unsigned long long
#define SZ(x) ((int)((x).size()))
#define ALL(x) (x).begin(),(x).end()
using namespace std;
inline int read()
{
char c=getchar();int x=0;bool f=0;
for(;!isdigit(c);c=getchar())f^=!(c^45);
for(;isdigit(c);c=getchar())x=(x<<1)+(x<<3)+(c^48);
if(f)x=-x;return x;
}
#define mod 1000000007
struct modint{
int x;
modint(int o=0){x=o;}
modint &operator = (int o){return x=o,*this;}
modint &operator +=(modint o){return x=x+o.x>=mod?x+o.x-mod:x+o.x,*this;}
modint &operator -=(modint o){return x=x-o.x<0?x-o.x+mod:x-o.x,*this;}
modint &operator *=(modint o){return x=1ll*x*o.x%mod,*this;}
modint &operator ^=(int b){
modint a=*this,c=1;
for(;b;b>>=1,a*=a)if(b&1)c*=a;
return x=c.x,*this;
}
modint &operator /=(modint o){return *this *=o^=mod-2;}
friend modint operator +(modint a,modint b){return a+=b;}
friend modint operator -(modint a,modint b){return a-=b;}
friend modint operator *(modint a,modint b){return a*=b;}
friend modint operator /(modint a,modint b){return a/=b;}
friend modint operator ^(modint a,int b){return a^=b;}
friend bool operator ==(modint a,modint b){return a.x==b.x;}
friend bool operator !=(modint a,modint b){return a.x!=b.x;}
bool operator ! () {return !x;}
modint operator - () {return x?mod-x:0;}
bool operator <(const modint&b)const{return x<b.x;}
};
inline modint qpow(modint x,int y){return x^y;}
vector<modint> fac,ifac,iv;
inline void initC(int n)
{
if(iv.empty())fac=ifac=iv=vector<modint>(2,1);
int m=iv.size(); ++n;
if(m>=n)return;
iv.resize(n),fac.resize(n),ifac.resize(n);
For(i,m,n-1){
iv[i]=iv[mod%i]*(mod-mod/i);
fac[i]=fac[i-1]*i,ifac[i]=ifac[i-1]*iv[i];
}
}
inline modint C(int n,int m){
if(m<0||n<m)return 0;
return initC(n),fac[n]*ifac[m]*ifac[n-m];
}
inline modint sign(int n){return (n&1)?(mod-1):(1);}
#define fi first
#define se second
#define pb push_back
#define mkp make_pair
typedef pair<int,int>pii;
typedef vector<int>vi;
#define maxn 10005
#define inf 0x3f3f3f3f
int n;
char s[maxn];
int sum[maxn][7];
modint w[maxn][7];
modint g1[8][8][8],g2[8][8][8],res;
int cnt[maxn][7];
void wk(modint g1[8][8][8]){
For(a,0,6)For(b,0,6)For(c,0,6){
g1[7][b][c]+=g1[a][b][c];
g1[a][7][c]+=g1[a][b][c];
g1[a][b][7]+=g1[a][b][c];
g1[7][7][c]+=g1[a][b][c];
g1[a][7][7]+=g1[a][b][c];
g1[7][b][7]+=g1[a][b][c];
g1[7][7][7]+=g1[a][b][c];
}
}
vi O[13];
void solve(int pos)
{
// s[pos]=0 next .. pre ??
// cout<<"solve "<<pos<<"\n";
assert(pos>0);
memset(g1,0,sizeof g1);
memset(g2,0,sizeof g2);
For(i,0,6) For(j,0,6) For(k,0,6) {
int a=(i+sum[pos+1][0])%7,b=(j+sum[pos+1][2])%7,c=(k+sum[pos+1][4])%7;
modint coe=1;
coe*=w[cnt[pos-1][0]-1][(i-1+7)%7];
coe*=w[cnt[pos-1][2]][j];
coe*=w[cnt[pos-1][4]][k];
// if(coe.x) cout<<"add1 "<<i<<" "<<j<<" "<<k<<" "<<coe.x<<"\n";
g1[(a+b+c)%7][(a+4*b+2*c)%7][(a+2*b+4*c)%7]+=coe;
}
For(i,0,6) For(j,0,6) For(k,0,6) {
int a=(i+sum[pos+1][1])%7,b=(j+sum[pos+1][3])%7,c=(k+sum[pos+1][5])%7;
modint coe=1;
coe*=w[cnt[pos-1][1]][i];
coe*=w[cnt[pos-1][3]][j];
coe*=w[cnt[pos-1][5]][k];
// if(coe.x) cout<<"add2 "<<i<<" "<<j<<" "<<k<<" "<<coe.x<<"\n";
g2[(a+b+c)%7][(2*a+b+4*c)%7][(3*a+6*b+5*c)%7]+=coe;
}
// For(a,0,6)For(b,0,6)For(c,0,6)For(d,0,6)For(e,0,6)For(f,0,6)
// if(a!=d && (a+d)%7!=0 && (b!=e) && (b+e)%7!=0 && (c!=f) && (c+f)%7!=0)
// if(g1[a][b][c].x && g2[d][e][f].x)
// // cout<<"add "<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e<<" "<<f<<" "<<g1[a][b][c].x<<" "<<g2[d][e][f].x<<"\n",
// res+=g1[a][b][c]*g2[d][e][f];
//cout<<"res "<<res.x<<"\n";
wk(g2); modint t=0;
//
// For(a,0,6) For(b,0,6) For(c,0,6) {
// modint t=0;
// for(int xa:O[a])for(int xb:O[b])for(int xc:O[c]){
// modint now=g2[xa][xb][xc];
// if(xa!=7)now=-now;
// if(xb!=7)now=-now;
// if(xc!=7)now=-now;
// t+=now;
// }
// res+=g1[a][b][c]*t;
// }
t=0;
t-=g2[0][0][0];
t+=g2[0][0][7];
t+=g2[0][7][0];
t-=g2[0][7][7];
t+=g2[7][0][0];
t-=g2[7][0][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[0][0][0]*t;
t=0;
t-=g2[0][0][1];
t-=g2[0][0][6];
t+=g2[0][0][7];
t+=g2[0][7][1];
t+=g2[0][7][6];
t-=g2[0][7][7];
t+=g2[7][0][1];
t+=g2[7][0][6];
t-=g2[7][0][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[0][0][1]*t;
t=0;
t-=g2[0][0][2];
t-=g2[0][0][5];
t+=g2[0][0][7];
t+=g2[0][7][2];
t+=g2[0][7][5];
t-=g2[0][7][7];
t+=g2[7][0][2];
t+=g2[7][0][5];
t-=g2[7][0][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[0][0][2]*t;
t=0;
t-=g2[0][0][3];
t-=g2[0][0][4];
t+=g2[0][0][7];
t+=g2[0][7][3];
t+=g2[0][7][4];
t-=g2[0][7][7];
t+=g2[7][0][3];
t+=g2[7][0][4];
t-=g2[7][0][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[0][0][3]*t;
t=0;
t-=g2[0][0][4];
t-=g2[0][0][3];
t+=g2[0][0][7];
t+=g2[0][7][4];
t+=g2[0][7][3];
t-=g2[0][7][7];
t+=g2[7][0][4];
t+=g2[7][0][3];
t-=g2[7][0][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[0][0][4]*t;
t=0;
t-=g2[0][0][5];
t-=g2[0][0][2];
t+=g2[0][0][7];
t+=g2[0][7][5];
t+=g2[0][7][2];
t-=g2[0][7][7];
t+=g2[7][0][5];
t+=g2[7][0][2];
t-=g2[7][0][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[0][0][5]*t;
t=0;
t-=g2[0][0][6];
t-=g2[0][0][1];
t+=g2[0][0][7];
t+=g2[0][7][6];
t+=g2[0][7][1];
t-=g2[0][7][7];
t+=g2[7][0][6];
t+=g2[7][0][1];
t-=g2[7][0][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[0][0][6]*t;
t=0;
t-=g2[0][1][0];
t+=g2[0][1][7];
t-=g2[0][6][0];
t+=g2[0][6][7];
t+=g2[0][7][0];
t-=g2[0][7][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[0][1][0]*t;
t=0;
t-=g2[0][1][1];
t-=g2[0][1][6];
t+=g2[0][1][7];
t-=g2[0][6][1];
t-=g2[0][6][6];
t+=g2[0][6][7];
t+=g2[0][7][1];
t+=g2[0][7][6];
t-=g2[0][7][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[0][1][1]*t;
t=0;
t-=g2[0][1][2];
t-=g2[0][1][5];
t+=g2[0][1][7];
t-=g2[0][6][2];
t-=g2[0][6][5];
t+=g2[0][6][7];
t+=g2[0][7][2];
t+=g2[0][7][5];
t-=g2[0][7][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[0][1][2]*t;
t=0;
t-=g2[0][1][3];
t-=g2[0][1][4];
t+=g2[0][1][7];
t-=g2[0][6][3];
t-=g2[0][6][4];
t+=g2[0][6][7];
t+=g2[0][7][3];
t+=g2[0][7][4];
t-=g2[0][7][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[0][1][3]*t;
t=0;
t-=g2[0][1][4];
t-=g2[0][1][3];
t+=g2[0][1][7];
t-=g2[0][6][4];
t-=g2[0][6][3];
t+=g2[0][6][7];
t+=g2[0][7][4];
t+=g2[0][7][3];
t-=g2[0][7][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[0][1][4]*t;
t=0;
t-=g2[0][1][5];
t-=g2[0][1][2];
t+=g2[0][1][7];
t-=g2[0][6][5];
t-=g2[0][6][2];
t+=g2[0][6][7];
t+=g2[0][7][5];
t+=g2[0][7][2];
t-=g2[0][7][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[0][1][5]*t;
t=0;
t-=g2[0][1][6];
t-=g2[0][1][1];
t+=g2[0][1][7];
t-=g2[0][6][6];
t-=g2[0][6][1];
t+=g2[0][6][7];
t+=g2[0][7][6];
t+=g2[0][7][1];
t-=g2[0][7][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[0][1][6]*t;
t=0;
t-=g2[0][2][0];
t+=g2[0][2][7];
t-=g2[0][5][0];
t+=g2[0][5][7];
t+=g2[0][7][0];
t-=g2[0][7][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[0][2][0]*t;
t=0;
t-=g2[0][2][1];
t-=g2[0][2][6];
t+=g2[0][2][7];
t-=g2[0][5][1];
t-=g2[0][5][6];
t+=g2[0][5][7];
t+=g2[0][7][1];
t+=g2[0][7][6];
t-=g2[0][7][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[0][2][1]*t;
t=0;
t-=g2[0][2][2];
t-=g2[0][2][5];
t+=g2[0][2][7];
t-=g2[0][5][2];
t-=g2[0][5][5];
t+=g2[0][5][7];
t+=g2[0][7][2];
t+=g2[0][7][5];
t-=g2[0][7][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[0][2][2]*t;
t=0;
t-=g2[0][2][3];
t-=g2[0][2][4];
t+=g2[0][2][7];
t-=g2[0][5][3];
t-=g2[0][5][4];
t+=g2[0][5][7];
t+=g2[0][7][3];
t+=g2[0][7][4];
t-=g2[0][7][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[0][2][3]*t;
t=0;
t-=g2[0][2][4];
t-=g2[0][2][3];
t+=g2[0][2][7];
t-=g2[0][5][4];
t-=g2[0][5][3];
t+=g2[0][5][7];
t+=g2[0][7][4];
t+=g2[0][7][3];
t-=g2[0][7][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[0][2][4]*t;
t=0;
t-=g2[0][2][5];
t-=g2[0][2][2];
t+=g2[0][2][7];
t-=g2[0][5][5];
t-=g2[0][5][2];
t+=g2[0][5][7];
t+=g2[0][7][5];
t+=g2[0][7][2];
t-=g2[0][7][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[0][2][5]*t;
t=0;
t-=g2[0][2][6];
t-=g2[0][2][1];
t+=g2[0][2][7];
t-=g2[0][5][6];
t-=g2[0][5][1];
t+=g2[0][5][7];
t+=g2[0][7][6];
t+=g2[0][7][1];
t-=g2[0][7][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[0][2][6]*t;
t=0;
t-=g2[0][3][0];
t+=g2[0][3][7];
t-=g2[0][4][0];
t+=g2[0][4][7];
t+=g2[0][7][0];
t-=g2[0][7][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[0][3][0]*t;
t=0;
t-=g2[0][3][1];
t-=g2[0][3][6];
t+=g2[0][3][7];
t-=g2[0][4][1];
t-=g2[0][4][6];
t+=g2[0][4][7];
t+=g2[0][7][1];
t+=g2[0][7][6];
t-=g2[0][7][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[0][3][1]*t;
t=0;
t-=g2[0][3][2];
t-=g2[0][3][5];
t+=g2[0][3][7];
t-=g2[0][4][2];
t-=g2[0][4][5];
t+=g2[0][4][7];
t+=g2[0][7][2];
t+=g2[0][7][5];
t-=g2[0][7][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[0][3][2]*t;
t=0;
t-=g2[0][3][3];
t-=g2[0][3][4];
t+=g2[0][3][7];
t-=g2[0][4][3];
t-=g2[0][4][4];
t+=g2[0][4][7];
t+=g2[0][7][3];
t+=g2[0][7][4];
t-=g2[0][7][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[0][3][3]*t;
t=0;
t-=g2[0][3][4];
t-=g2[0][3][3];
t+=g2[0][3][7];
t-=g2[0][4][4];
t-=g2[0][4][3];
t+=g2[0][4][7];
t+=g2[0][7][4];
t+=g2[0][7][3];
t-=g2[0][7][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[0][3][4]*t;
t=0;
t-=g2[0][3][5];
t-=g2[0][3][2];
t+=g2[0][3][7];
t-=g2[0][4][5];
t-=g2[0][4][2];
t+=g2[0][4][7];
t+=g2[0][7][5];
t+=g2[0][7][2];
t-=g2[0][7][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[0][3][5]*t;
t=0;
t-=g2[0][3][6];
t-=g2[0][3][1];
t+=g2[0][3][7];
t-=g2[0][4][6];
t-=g2[0][4][1];
t+=g2[0][4][7];
t+=g2[0][7][6];
t+=g2[0][7][1];
t-=g2[0][7][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[0][3][6]*t;
t=0;
t-=g2[0][4][0];
t+=g2[0][4][7];
t-=g2[0][3][0];
t+=g2[0][3][7];
t+=g2[0][7][0];
t-=g2[0][7][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[0][4][0]*t;
t=0;
t-=g2[0][4][1];
t-=g2[0][4][6];
t+=g2[0][4][7];
t-=g2[0][3][1];
t-=g2[0][3][6];
t+=g2[0][3][7];
t+=g2[0][7][1];
t+=g2[0][7][6];
t-=g2[0][7][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[0][4][1]*t;
t=0;
t-=g2[0][4][2];
t-=g2[0][4][5];
t+=g2[0][4][7];
t-=g2[0][3][2];
t-=g2[0][3][5];
t+=g2[0][3][7];
t+=g2[0][7][2];
t+=g2[0][7][5];
t-=g2[0][7][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[0][4][2]*t;
t=0;
t-=g2[0][4][3];
t-=g2[0][4][4];
t+=g2[0][4][7];
t-=g2[0][3][3];
t-=g2[0][3][4];
t+=g2[0][3][7];
t+=g2[0][7][3];
t+=g2[0][7][4];
t-=g2[0][7][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[0][4][3]*t;
t=0;
t-=g2[0][4][4];
t-=g2[0][4][3];
t+=g2[0][4][7];
t-=g2[0][3][4];
t-=g2[0][3][3];
t+=g2[0][3][7];
t+=g2[0][7][4];
t+=g2[0][7][3];
t-=g2[0][7][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[0][4][4]*t;
t=0;
t-=g2[0][4][5];
t-=g2[0][4][2];
t+=g2[0][4][7];
t-=g2[0][3][5];
t-=g2[0][3][2];
t+=g2[0][3][7];
t+=g2[0][7][5];
t+=g2[0][7][2];
t-=g2[0][7][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[0][4][5]*t;
t=0;
t-=g2[0][4][6];
t-=g2[0][4][1];
t+=g2[0][4][7];
t-=g2[0][3][6];
t-=g2[0][3][1];
t+=g2[0][3][7];
t+=g2[0][7][6];
t+=g2[0][7][1];
t-=g2[0][7][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[0][4][6]*t;
t=0;
t-=g2[0][5][0];
t+=g2[0][5][7];
t-=g2[0][2][0];
t+=g2[0][2][7];
t+=g2[0][7][0];
t-=g2[0][7][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[0][5][0]*t;
t=0;
t-=g2[0][5][1];
t-=g2[0][5][6];
t+=g2[0][5][7];
t-=g2[0][2][1];
t-=g2[0][2][6];
t+=g2[0][2][7];
t+=g2[0][7][1];
t+=g2[0][7][6];
t-=g2[0][7][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[0][5][1]*t;
t=0;
t-=g2[0][5][2];
t-=g2[0][5][5];
t+=g2[0][5][7];
t-=g2[0][2][2];
t-=g2[0][2][5];
t+=g2[0][2][7];
t+=g2[0][7][2];
t+=g2[0][7][5];
t-=g2[0][7][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[0][5][2]*t;
t=0;
t-=g2[0][5][3];
t-=g2[0][5][4];
t+=g2[0][5][7];
t-=g2[0][2][3];
t-=g2[0][2][4];
t+=g2[0][2][7];
t+=g2[0][7][3];
t+=g2[0][7][4];
t-=g2[0][7][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[0][5][3]*t;
t=0;
t-=g2[0][5][4];
t-=g2[0][5][3];
t+=g2[0][5][7];
t-=g2[0][2][4];
t-=g2[0][2][3];
t+=g2[0][2][7];
t+=g2[0][7][4];
t+=g2[0][7][3];
t-=g2[0][7][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[0][5][4]*t;
t=0;
t-=g2[0][5][5];
t-=g2[0][5][2];
t+=g2[0][5][7];
t-=g2[0][2][5];
t-=g2[0][2][2];
t+=g2[0][2][7];
t+=g2[0][7][5];
t+=g2[0][7][2];
t-=g2[0][7][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[0][5][5]*t;
t=0;
t-=g2[0][5][6];
t-=g2[0][5][1];
t+=g2[0][5][7];
t-=g2[0][2][6];
t-=g2[0][2][1];
t+=g2[0][2][7];
t+=g2[0][7][6];
t+=g2[0][7][1];
t-=g2[0][7][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[0][5][6]*t;
t=0;
t-=g2[0][6][0];
t+=g2[0][6][7];
t-=g2[0][1][0];
t+=g2[0][1][7];
t+=g2[0][7][0];
t-=g2[0][7][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[0][6][0]*t;
t=0;
t-=g2[0][6][1];
t-=g2[0][6][6];
t+=g2[0][6][7];
t-=g2[0][1][1];
t-=g2[0][1][6];
t+=g2[0][1][7];
t+=g2[0][7][1];
t+=g2[0][7][6];
t-=g2[0][7][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[0][6][1]*t;
t=0;
t-=g2[0][6][2];
t-=g2[0][6][5];
t+=g2[0][6][7];
t-=g2[0][1][2];
t-=g2[0][1][5];
t+=g2[0][1][7];
t+=g2[0][7][2];
t+=g2[0][7][5];
t-=g2[0][7][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[0][6][2]*t;
t=0;
t-=g2[0][6][3];
t-=g2[0][6][4];
t+=g2[0][6][7];
t-=g2[0][1][3];
t-=g2[0][1][4];
t+=g2[0][1][7];
t+=g2[0][7][3];
t+=g2[0][7][4];
t-=g2[0][7][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[0][6][3]*t;
t=0;
t-=g2[0][6][4];
t-=g2[0][6][3];
t+=g2[0][6][7];
t-=g2[0][1][4];
t-=g2[0][1][3];
t+=g2[0][1][7];
t+=g2[0][7][4];
t+=g2[0][7][3];
t-=g2[0][7][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[0][6][4]*t;
t=0;
t-=g2[0][6][5];
t-=g2[0][6][2];
t+=g2[0][6][7];
t-=g2[0][1][5];
t-=g2[0][1][2];
t+=g2[0][1][7];
t+=g2[0][7][5];
t+=g2[0][7][2];
t-=g2[0][7][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[0][6][5]*t;
t=0;
t-=g2[0][6][6];
t-=g2[0][6][1];
t+=g2[0][6][7];
t-=g2[0][1][6];
t-=g2[0][1][1];
t+=g2[0][1][7];
t+=g2[0][7][6];
t+=g2[0][7][1];
t-=g2[0][7][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[0][6][6]*t;
t=0;
t-=g2[1][0][0];
t+=g2[1][0][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t-=g2[6][0][0];
t+=g2[6][0][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t+=g2[7][0][0];
t-=g2[7][0][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[1][0][0]*t;
t=0;
t-=g2[1][0][1];
t-=g2[1][0][6];
t+=g2[1][0][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t-=g2[6][0][1];
t-=g2[6][0][6];
t+=g2[6][0][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t+=g2[7][0][1];
t+=g2[7][0][6];
t-=g2[7][0][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[1][0][1]*t;
t=0;
t-=g2[1][0][2];
t-=g2[1][0][5];
t+=g2[1][0][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t-=g2[6][0][2];
t-=g2[6][0][5];
t+=g2[6][0][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t+=g2[7][0][2];
t+=g2[7][0][5];
t-=g2[7][0][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[1][0][2]*t;
t=0;
t-=g2[1][0][3];
t-=g2[1][0][4];
t+=g2[1][0][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t-=g2[6][0][3];
t-=g2[6][0][4];
t+=g2[6][0][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t+=g2[7][0][3];
t+=g2[7][0][4];
t-=g2[7][0][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[1][0][3]*t;
t=0;
t-=g2[1][0][4];
t-=g2[1][0][3];
t+=g2[1][0][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t-=g2[6][0][4];
t-=g2[6][0][3];
t+=g2[6][0][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t+=g2[7][0][4];
t+=g2[7][0][3];
t-=g2[7][0][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[1][0][4]*t;
t=0;
t-=g2[1][0][5];
t-=g2[1][0][2];
t+=g2[1][0][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t-=g2[6][0][5];
t-=g2[6][0][2];
t+=g2[6][0][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t+=g2[7][0][5];
t+=g2[7][0][2];
t-=g2[7][0][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[1][0][5]*t;
t=0;
t-=g2[1][0][6];
t-=g2[1][0][1];
t+=g2[1][0][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t-=g2[6][0][6];
t-=g2[6][0][1];
t+=g2[6][0][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t+=g2[7][0][6];
t+=g2[7][0][1];
t-=g2[7][0][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[1][0][6]*t;
t=0;
t-=g2[1][1][0];
t+=g2[1][1][7];
t-=g2[1][6][0];
t+=g2[1][6][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t-=g2[6][1][0];
t+=g2[6][1][7];
t-=g2[6][6][0];
t+=g2[6][6][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[1][1][0]*t;
t=0;
t-=g2[1][1][1];
t-=g2[1][1][6];
t+=g2[1][1][7];
t-=g2[1][6][1];
t-=g2[1][6][6];
t+=g2[1][6][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t-=g2[6][1][1];
t-=g2[6][1][6];
t+=g2[6][1][7];
t-=g2[6][6][1];
t-=g2[6][6][6];
t+=g2[6][6][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[1][1][1]*t;
t=0;
t-=g2[1][1][2];
t-=g2[1][1][5];
t+=g2[1][1][7];
t-=g2[1][6][2];
t-=g2[1][6][5];
t+=g2[1][6][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t-=g2[6][1][2];
t-=g2[6][1][5];
t+=g2[6][1][7];
t-=g2[6][6][2];
t-=g2[6][6][5];
t+=g2[6][6][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[1][1][2]*t;
t=0;
t-=g2[1][1][3];
t-=g2[1][1][4];
t+=g2[1][1][7];
t-=g2[1][6][3];
t-=g2[1][6][4];
t+=g2[1][6][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t-=g2[6][1][3];
t-=g2[6][1][4];
t+=g2[6][1][7];
t-=g2[6][6][3];
t-=g2[6][6][4];
t+=g2[6][6][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[1][1][3]*t;
t=0;
t-=g2[1][1][4];
t-=g2[1][1][3];
t+=g2[1][1][7];
t-=g2[1][6][4];
t-=g2[1][6][3];
t+=g2[1][6][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t-=g2[6][1][4];
t-=g2[6][1][3];
t+=g2[6][1][7];
t-=g2[6][6][4];
t-=g2[6][6][3];
t+=g2[6][6][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[1][1][4]*t;
t=0;
t-=g2[1][1][5];
t-=g2[1][1][2];
t+=g2[1][1][7];
t-=g2[1][6][5];
t-=g2[1][6][2];
t+=g2[1][6][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t-=g2[6][1][5];
t-=g2[6][1][2];
t+=g2[6][1][7];
t-=g2[6][6][5];
t-=g2[6][6][2];
t+=g2[6][6][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[1][1][5]*t;
t=0;
t-=g2[1][1][6];
t-=g2[1][1][1];
t+=g2[1][1][7];
t-=g2[1][6][6];
t-=g2[1][6][1];
t+=g2[1][6][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t-=g2[6][1][6];
t-=g2[6][1][1];
t+=g2[6][1][7];
t-=g2[6][6][6];
t-=g2[6][6][1];
t+=g2[6][6][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[1][1][6]*t;
t=0;
t-=g2[1][2][0];
t+=g2[1][2][7];
t-=g2[1][5][0];
t+=g2[1][5][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t-=g2[6][2][0];
t+=g2[6][2][7];
t-=g2[6][5][0];
t+=g2[6][5][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[1][2][0]*t;
t=0;
t-=g2[1][2][1];
t-=g2[1][2][6];
t+=g2[1][2][7];
t-=g2[1][5][1];
t-=g2[1][5][6];
t+=g2[1][5][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t-=g2[6][2][1];
t-=g2[6][2][6];
t+=g2[6][2][7];
t-=g2[6][5][1];
t-=g2[6][5][6];
t+=g2[6][5][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[1][2][1]*t;
t=0;
t-=g2[1][2][2];
t-=g2[1][2][5];
t+=g2[1][2][7];
t-=g2[1][5][2];
t-=g2[1][5][5];
t+=g2[1][5][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t-=g2[6][2][2];
t-=g2[6][2][5];
t+=g2[6][2][7];
t-=g2[6][5][2];
t-=g2[6][5][5];
t+=g2[6][5][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[1][2][2]*t;
t=0;
t-=g2[1][2][3];
t-=g2[1][2][4];
t+=g2[1][2][7];
t-=g2[1][5][3];
t-=g2[1][5][4];
t+=g2[1][5][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t-=g2[6][2][3];
t-=g2[6][2][4];
t+=g2[6][2][7];
t-=g2[6][5][3];
t-=g2[6][5][4];
t+=g2[6][5][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[1][2][3]*t;
t=0;
t-=g2[1][2][4];
t-=g2[1][2][3];
t+=g2[1][2][7];
t-=g2[1][5][4];
t-=g2[1][5][3];
t+=g2[1][5][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t-=g2[6][2][4];
t-=g2[6][2][3];
t+=g2[6][2][7];
t-=g2[6][5][4];
t-=g2[6][5][3];
t+=g2[6][5][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[1][2][4]*t;
t=0;
t-=g2[1][2][5];
t-=g2[1][2][2];
t+=g2[1][2][7];
t-=g2[1][5][5];
t-=g2[1][5][2];
t+=g2[1][5][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t-=g2[6][2][5];
t-=g2[6][2][2];
t+=g2[6][2][7];
t-=g2[6][5][5];
t-=g2[6][5][2];
t+=g2[6][5][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[1][2][5]*t;
t=0;
t-=g2[1][2][6];
t-=g2[1][2][1];
t+=g2[1][2][7];
t-=g2[1][5][6];
t-=g2[1][5][1];
t+=g2[1][5][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t-=g2[6][2][6];
t-=g2[6][2][1];
t+=g2[6][2][7];
t-=g2[6][5][6];
t-=g2[6][5][1];
t+=g2[6][5][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[1][2][6]*t;
t=0;
t-=g2[1][3][0];
t+=g2[1][3][7];
t-=g2[1][4][0];
t+=g2[1][4][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t-=g2[6][3][0];
t+=g2[6][3][7];
t-=g2[6][4][0];
t+=g2[6][4][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[1][3][0]*t;
t=0;
t-=g2[1][3][1];
t-=g2[1][3][6];
t+=g2[1][3][7];
t-=g2[1][4][1];
t-=g2[1][4][6];
t+=g2[1][4][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t-=g2[6][3][1];
t-=g2[6][3][6];
t+=g2[6][3][7];
t-=g2[6][4][1];
t-=g2[6][4][6];
t+=g2[6][4][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[1][3][1]*t;
t=0;
t-=g2[1][3][2];
t-=g2[1][3][5];
t+=g2[1][3][7];
t-=g2[1][4][2];
t-=g2[1][4][5];
t+=g2[1][4][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t-=g2[6][3][2];
t-=g2[6][3][5];
t+=g2[6][3][7];
t-=g2[6][4][2];
t-=g2[6][4][5];
t+=g2[6][4][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[1][3][2]*t;
t=0;
t-=g2[1][3][3];
t-=g2[1][3][4];
t+=g2[1][3][7];
t-=g2[1][4][3];
t-=g2[1][4][4];
t+=g2[1][4][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t-=g2[6][3][3];
t-=g2[6][3][4];
t+=g2[6][3][7];
t-=g2[6][4][3];
t-=g2[6][4][4];
t+=g2[6][4][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[1][3][3]*t;
t=0;
t-=g2[1][3][4];
t-=g2[1][3][3];
t+=g2[1][3][7];
t-=g2[1][4][4];
t-=g2[1][4][3];
t+=g2[1][4][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t-=g2[6][3][4];
t-=g2[6][3][3];
t+=g2[6][3][7];
t-=g2[6][4][4];
t-=g2[6][4][3];
t+=g2[6][4][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[1][3][4]*t;
t=0;
t-=g2[1][3][5];
t-=g2[1][3][2];
t+=g2[1][3][7];
t-=g2[1][4][5];
t-=g2[1][4][2];
t+=g2[1][4][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t-=g2[6][3][5];
t-=g2[6][3][2];
t+=g2[6][3][7];
t-=g2[6][4][5];
t-=g2[6][4][2];
t+=g2[6][4][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[1][3][5]*t;
t=0;
t-=g2[1][3][6];
t-=g2[1][3][1];
t+=g2[1][3][7];
t-=g2[1][4][6];
t-=g2[1][4][1];
t+=g2[1][4][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t-=g2[6][3][6];
t-=g2[6][3][1];
t+=g2[6][3][7];
t-=g2[6][4][6];
t-=g2[6][4][1];
t+=g2[6][4][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[1][3][6]*t;
t=0;
t-=g2[1][4][0];
t+=g2[1][4][7];
t-=g2[1][3][0];
t+=g2[1][3][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t-=g2[6][4][0];
t+=g2[6][4][7];
t-=g2[6][3][0];
t+=g2[6][3][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[1][4][0]*t;
t=0;
t-=g2[1][4][1];
t-=g2[1][4][6];
t+=g2[1][4][7];
t-=g2[1][3][1];
t-=g2[1][3][6];
t+=g2[1][3][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t-=g2[6][4][1];
t-=g2[6][4][6];
t+=g2[6][4][7];
t-=g2[6][3][1];
t-=g2[6][3][6];
t+=g2[6][3][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[1][4][1]*t;
t=0;
t-=g2[1][4][2];
t-=g2[1][4][5];
t+=g2[1][4][7];
t-=g2[1][3][2];
t-=g2[1][3][5];
t+=g2[1][3][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t-=g2[6][4][2];
t-=g2[6][4][5];
t+=g2[6][4][7];
t-=g2[6][3][2];
t-=g2[6][3][5];
t+=g2[6][3][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[1][4][2]*t;
t=0;
t-=g2[1][4][3];
t-=g2[1][4][4];
t+=g2[1][4][7];
t-=g2[1][3][3];
t-=g2[1][3][4];
t+=g2[1][3][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t-=g2[6][4][3];
t-=g2[6][4][4];
t+=g2[6][4][7];
t-=g2[6][3][3];
t-=g2[6][3][4];
t+=g2[6][3][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[1][4][3]*t;
t=0;
t-=g2[1][4][4];
t-=g2[1][4][3];
t+=g2[1][4][7];
t-=g2[1][3][4];
t-=g2[1][3][3];
t+=g2[1][3][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t-=g2[6][4][4];
t-=g2[6][4][3];
t+=g2[6][4][7];
t-=g2[6][3][4];
t-=g2[6][3][3];
t+=g2[6][3][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[1][4][4]*t;
t=0;
t-=g2[1][4][5];
t-=g2[1][4][2];
t+=g2[1][4][7];
t-=g2[1][3][5];
t-=g2[1][3][2];
t+=g2[1][3][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t-=g2[6][4][5];
t-=g2[6][4][2];
t+=g2[6][4][7];
t-=g2[6][3][5];
t-=g2[6][3][2];
t+=g2[6][3][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[1][4][5]*t;
t=0;
t-=g2[1][4][6];
t-=g2[1][4][1];
t+=g2[1][4][7];
t-=g2[1][3][6];
t-=g2[1][3][1];
t+=g2[1][3][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t-=g2[6][4][6];
t-=g2[6][4][1];
t+=g2[6][4][7];
t-=g2[6][3][6];
t-=g2[6][3][1];
t+=g2[6][3][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[1][4][6]*t;
t=0;
t-=g2[1][5][0];
t+=g2[1][5][7];
t-=g2[1][2][0];
t+=g2[1][2][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t-=g2[6][5][0];
t+=g2[6][5][7];
t-=g2[6][2][0];
t+=g2[6][2][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[1][5][0]*t;
t=0;
t-=g2[1][5][1];
t-=g2[1][5][6];
t+=g2[1][5][7];
t-=g2[1][2][1];
t-=g2[1][2][6];
t+=g2[1][2][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t-=g2[6][5][1];
t-=g2[6][5][6];
t+=g2[6][5][7];
t-=g2[6][2][1];
t-=g2[6][2][6];
t+=g2[6][2][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[1][5][1]*t;
t=0;
t-=g2[1][5][2];
t-=g2[1][5][5];
t+=g2[1][5][7];
t-=g2[1][2][2];
t-=g2[1][2][5];
t+=g2[1][2][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t-=g2[6][5][2];
t-=g2[6][5][5];
t+=g2[6][5][7];
t-=g2[6][2][2];
t-=g2[6][2][5];
t+=g2[6][2][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[1][5][2]*t;
t=0;
t-=g2[1][5][3];
t-=g2[1][5][4];
t+=g2[1][5][7];
t-=g2[1][2][3];
t-=g2[1][2][4];
t+=g2[1][2][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t-=g2[6][5][3];
t-=g2[6][5][4];
t+=g2[6][5][7];
t-=g2[6][2][3];
t-=g2[6][2][4];
t+=g2[6][2][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[1][5][3]*t;
t=0;
t-=g2[1][5][4];
t-=g2[1][5][3];
t+=g2[1][5][7];
t-=g2[1][2][4];
t-=g2[1][2][3];
t+=g2[1][2][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t-=g2[6][5][4];
t-=g2[6][5][3];
t+=g2[6][5][7];
t-=g2[6][2][4];
t-=g2[6][2][3];
t+=g2[6][2][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[1][5][4]*t;
t=0;
t-=g2[1][5][5];
t-=g2[1][5][2];
t+=g2[1][5][7];
t-=g2[1][2][5];
t-=g2[1][2][2];
t+=g2[1][2][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t-=g2[6][5][5];
t-=g2[6][5][2];
t+=g2[6][5][7];
t-=g2[6][2][5];
t-=g2[6][2][2];
t+=g2[6][2][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[1][5][5]*t;
t=0;
t-=g2[1][5][6];
t-=g2[1][5][1];
t+=g2[1][5][7];
t-=g2[1][2][6];
t-=g2[1][2][1];
t+=g2[1][2][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t-=g2[6][5][6];
t-=g2[6][5][1];
t+=g2[6][5][7];
t-=g2[6][2][6];
t-=g2[6][2][1];
t+=g2[6][2][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[1][5][6]*t;
t=0;
t-=g2[1][6][0];
t+=g2[1][6][7];
t-=g2[1][1][0];
t+=g2[1][1][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t-=g2[6][6][0];
t+=g2[6][6][7];
t-=g2[6][1][0];
t+=g2[6][1][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[1][6][0]*t;
t=0;
t-=g2[1][6][1];
t-=g2[1][6][6];
t+=g2[1][6][7];
t-=g2[1][1][1];
t-=g2[1][1][6];
t+=g2[1][1][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t-=g2[6][6][1];
t-=g2[6][6][6];
t+=g2[6][6][7];
t-=g2[6][1][1];
t-=g2[6][1][6];
t+=g2[6][1][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[1][6][1]*t;
t=0;
t-=g2[1][6][2];
t-=g2[1][6][5];
t+=g2[1][6][7];
t-=g2[1][1][2];
t-=g2[1][1][5];
t+=g2[1][1][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t-=g2[6][6][2];
t-=g2[6][6][5];
t+=g2[6][6][7];
t-=g2[6][1][2];
t-=g2[6][1][5];
t+=g2[6][1][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[1][6][2]*t;
t=0;
t-=g2[1][6][3];
t-=g2[1][6][4];
t+=g2[1][6][7];
t-=g2[1][1][3];
t-=g2[1][1][4];
t+=g2[1][1][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t-=g2[6][6][3];
t-=g2[6][6][4];
t+=g2[6][6][7];
t-=g2[6][1][3];
t-=g2[6][1][4];
t+=g2[6][1][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[1][6][3]*t;
t=0;
t-=g2[1][6][4];
t-=g2[1][6][3];
t+=g2[1][6][7];
t-=g2[1][1][4];
t-=g2[1][1][3];
t+=g2[1][1][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t-=g2[6][6][4];
t-=g2[6][6][3];
t+=g2[6][6][7];
t-=g2[6][1][4];
t-=g2[6][1][3];
t+=g2[6][1][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[1][6][4]*t;
t=0;
t-=g2[1][6][5];
t-=g2[1][6][2];
t+=g2[1][6][7];
t-=g2[1][1][5];
t-=g2[1][1][2];
t+=g2[1][1][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t-=g2[6][6][5];
t-=g2[6][6][2];
t+=g2[6][6][7];
t-=g2[6][1][5];
t-=g2[6][1][2];
t+=g2[6][1][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[1][6][5]*t;
t=0;
t-=g2[1][6][6];
t-=g2[1][6][1];
t+=g2[1][6][7];
t-=g2[1][1][6];
t-=g2[1][1][1];
t+=g2[1][1][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t-=g2[6][6][6];
t-=g2[6][6][1];
t+=g2[6][6][7];
t-=g2[6][1][6];
t-=g2[6][1][1];
t+=g2[6][1][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[1][6][6]*t;
t=0;
t-=g2[2][0][0];
t+=g2[2][0][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t-=g2[5][0][0];
t+=g2[5][0][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t+=g2[7][0][0];
t-=g2[7][0][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[2][0][0]*t;
t=0;
t-=g2[2][0][1];
t-=g2[2][0][6];
t+=g2[2][0][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t-=g2[5][0][1];
t-=g2[5][0][6];
t+=g2[5][0][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t+=g2[7][0][1];
t+=g2[7][0][6];
t-=g2[7][0][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[2][0][1]*t;
t=0;
t-=g2[2][0][2];
t-=g2[2][0][5];
t+=g2[2][0][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t-=g2[5][0][2];
t-=g2[5][0][5];
t+=g2[5][0][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t+=g2[7][0][2];
t+=g2[7][0][5];
t-=g2[7][0][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[2][0][2]*t;
t=0;
t-=g2[2][0][3];
t-=g2[2][0][4];
t+=g2[2][0][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t-=g2[5][0][3];
t-=g2[5][0][4];
t+=g2[5][0][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t+=g2[7][0][3];
t+=g2[7][0][4];
t-=g2[7][0][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[2][0][3]*t;
t=0;
t-=g2[2][0][4];
t-=g2[2][0][3];
t+=g2[2][0][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t-=g2[5][0][4];
t-=g2[5][0][3];
t+=g2[5][0][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t+=g2[7][0][4];
t+=g2[7][0][3];
t-=g2[7][0][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[2][0][4]*t;
t=0;
t-=g2[2][0][5];
t-=g2[2][0][2];
t+=g2[2][0][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t-=g2[5][0][5];
t-=g2[5][0][2];
t+=g2[5][0][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t+=g2[7][0][5];
t+=g2[7][0][2];
t-=g2[7][0][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[2][0][5]*t;
t=0;
t-=g2[2][0][6];
t-=g2[2][0][1];
t+=g2[2][0][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t-=g2[5][0][6];
t-=g2[5][0][1];
t+=g2[5][0][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t+=g2[7][0][6];
t+=g2[7][0][1];
t-=g2[7][0][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[2][0][6]*t;
t=0;
t-=g2[2][1][0];
t+=g2[2][1][7];
t-=g2[2][6][0];
t+=g2[2][6][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t-=g2[5][1][0];
t+=g2[5][1][7];
t-=g2[5][6][0];
t+=g2[5][6][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[2][1][0]*t;
t=0;
t-=g2[2][1][1];
t-=g2[2][1][6];
t+=g2[2][1][7];
t-=g2[2][6][1];
t-=g2[2][6][6];
t+=g2[2][6][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t-=g2[5][1][1];
t-=g2[5][1][6];
t+=g2[5][1][7];
t-=g2[5][6][1];
t-=g2[5][6][6];
t+=g2[5][6][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[2][1][1]*t;
t=0;
t-=g2[2][1][2];
t-=g2[2][1][5];
t+=g2[2][1][7];
t-=g2[2][6][2];
t-=g2[2][6][5];
t+=g2[2][6][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t-=g2[5][1][2];
t-=g2[5][1][5];
t+=g2[5][1][7];
t-=g2[5][6][2];
t-=g2[5][6][5];
t+=g2[5][6][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[2][1][2]*t;
t=0;
t-=g2[2][1][3];
t-=g2[2][1][4];
t+=g2[2][1][7];
t-=g2[2][6][3];
t-=g2[2][6][4];
t+=g2[2][6][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t-=g2[5][1][3];
t-=g2[5][1][4];
t+=g2[5][1][7];
t-=g2[5][6][3];
t-=g2[5][6][4];
t+=g2[5][6][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[2][1][3]*t;
t=0;
t-=g2[2][1][4];
t-=g2[2][1][3];
t+=g2[2][1][7];
t-=g2[2][6][4];
t-=g2[2][6][3];
t+=g2[2][6][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t-=g2[5][1][4];
t-=g2[5][1][3];
t+=g2[5][1][7];
t-=g2[5][6][4];
t-=g2[5][6][3];
t+=g2[5][6][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[2][1][4]*t;
t=0;
t-=g2[2][1][5];
t-=g2[2][1][2];
t+=g2[2][1][7];
t-=g2[2][6][5];
t-=g2[2][6][2];
t+=g2[2][6][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t-=g2[5][1][5];
t-=g2[5][1][2];
t+=g2[5][1][7];
t-=g2[5][6][5];
t-=g2[5][6][2];
t+=g2[5][6][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[2][1][5]*t;
t=0;
t-=g2[2][1][6];
t-=g2[2][1][1];
t+=g2[2][1][7];
t-=g2[2][6][6];
t-=g2[2][6][1];
t+=g2[2][6][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t-=g2[5][1][6];
t-=g2[5][1][1];
t+=g2[5][1][7];
t-=g2[5][6][6];
t-=g2[5][6][1];
t+=g2[5][6][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[2][1][6]*t;
t=0;
t-=g2[2][2][0];
t+=g2[2][2][7];
t-=g2[2][5][0];
t+=g2[2][5][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t-=g2[5][2][0];
t+=g2[5][2][7];
t-=g2[5][5][0];
t+=g2[5][5][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[2][2][0]*t;
t=0;
t-=g2[2][2][1];
t-=g2[2][2][6];
t+=g2[2][2][7];
t-=g2[2][5][1];
t-=g2[2][5][6];
t+=g2[2][5][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t-=g2[5][2][1];
t-=g2[5][2][6];
t+=g2[5][2][7];
t-=g2[5][5][1];
t-=g2[5][5][6];
t+=g2[5][5][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[2][2][1]*t;
t=0;
t-=g2[2][2][2];
t-=g2[2][2][5];
t+=g2[2][2][7];
t-=g2[2][5][2];
t-=g2[2][5][5];
t+=g2[2][5][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t-=g2[5][2][2];
t-=g2[5][2][5];
t+=g2[5][2][7];
t-=g2[5][5][2];
t-=g2[5][5][5];
t+=g2[5][5][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[2][2][2]*t;
t=0;
t-=g2[2][2][3];
t-=g2[2][2][4];
t+=g2[2][2][7];
t-=g2[2][5][3];
t-=g2[2][5][4];
t+=g2[2][5][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t-=g2[5][2][3];
t-=g2[5][2][4];
t+=g2[5][2][7];
t-=g2[5][5][3];
t-=g2[5][5][4];
t+=g2[5][5][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[2][2][3]*t;
t=0;
t-=g2[2][2][4];
t-=g2[2][2][3];
t+=g2[2][2][7];
t-=g2[2][5][4];
t-=g2[2][5][3];
t+=g2[2][5][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t-=g2[5][2][4];
t-=g2[5][2][3];
t+=g2[5][2][7];
t-=g2[5][5][4];
t-=g2[5][5][3];
t+=g2[5][5][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[2][2][4]*t;
t=0;
t-=g2[2][2][5];
t-=g2[2][2][2];
t+=g2[2][2][7];
t-=g2[2][5][5];
t-=g2[2][5][2];
t+=g2[2][5][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t-=g2[5][2][5];
t-=g2[5][2][2];
t+=g2[5][2][7];
t-=g2[5][5][5];
t-=g2[5][5][2];
t+=g2[5][5][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[2][2][5]*t;
t=0;
t-=g2[2][2][6];
t-=g2[2][2][1];
t+=g2[2][2][7];
t-=g2[2][5][6];
t-=g2[2][5][1];
t+=g2[2][5][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t-=g2[5][2][6];
t-=g2[5][2][1];
t+=g2[5][2][7];
t-=g2[5][5][6];
t-=g2[5][5][1];
t+=g2[5][5][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[2][2][6]*t;
t=0;
t-=g2[2][3][0];
t+=g2[2][3][7];
t-=g2[2][4][0];
t+=g2[2][4][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t-=g2[5][3][0];
t+=g2[5][3][7];
t-=g2[5][4][0];
t+=g2[5][4][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[2][3][0]*t;
t=0;
t-=g2[2][3][1];
t-=g2[2][3][6];
t+=g2[2][3][7];
t-=g2[2][4][1];
t-=g2[2][4][6];
t+=g2[2][4][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t-=g2[5][3][1];
t-=g2[5][3][6];
t+=g2[5][3][7];
t-=g2[5][4][1];
t-=g2[5][4][6];
t+=g2[5][4][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[2][3][1]*t;
t=0;
t-=g2[2][3][2];
t-=g2[2][3][5];
t+=g2[2][3][7];
t-=g2[2][4][2];
t-=g2[2][4][5];
t+=g2[2][4][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t-=g2[5][3][2];
t-=g2[5][3][5];
t+=g2[5][3][7];
t-=g2[5][4][2];
t-=g2[5][4][5];
t+=g2[5][4][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[2][3][2]*t;
t=0;
t-=g2[2][3][3];
t-=g2[2][3][4];
t+=g2[2][3][7];
t-=g2[2][4][3];
t-=g2[2][4][4];
t+=g2[2][4][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t-=g2[5][3][3];
t-=g2[5][3][4];
t+=g2[5][3][7];
t-=g2[5][4][3];
t-=g2[5][4][4];
t+=g2[5][4][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[2][3][3]*t;
t=0;
t-=g2[2][3][4];
t-=g2[2][3][3];
t+=g2[2][3][7];
t-=g2[2][4][4];
t-=g2[2][4][3];
t+=g2[2][4][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t-=g2[5][3][4];
t-=g2[5][3][3];
t+=g2[5][3][7];
t-=g2[5][4][4];
t-=g2[5][4][3];
t+=g2[5][4][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[2][3][4]*t;
t=0;
t-=g2[2][3][5];
t-=g2[2][3][2];
t+=g2[2][3][7];
t-=g2[2][4][5];
t-=g2[2][4][2];
t+=g2[2][4][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t-=g2[5][3][5];
t-=g2[5][3][2];
t+=g2[5][3][7];
t-=g2[5][4][5];
t-=g2[5][4][2];
t+=g2[5][4][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[2][3][5]*t;
t=0;
t-=g2[2][3][6];
t-=g2[2][3][1];
t+=g2[2][3][7];
t-=g2[2][4][6];
t-=g2[2][4][1];
t+=g2[2][4][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t-=g2[5][3][6];
t-=g2[5][3][1];
t+=g2[5][3][7];
t-=g2[5][4][6];
t-=g2[5][4][1];
t+=g2[5][4][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[2][3][6]*t;
t=0;
t-=g2[2][4][0];
t+=g2[2][4][7];
t-=g2[2][3][0];
t+=g2[2][3][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t-=g2[5][4][0];
t+=g2[5][4][7];
t-=g2[5][3][0];
t+=g2[5][3][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[2][4][0]*t;
t=0;
t-=g2[2][4][1];
t-=g2[2][4][6];
t+=g2[2][4][7];
t-=g2[2][3][1];
t-=g2[2][3][6];
t+=g2[2][3][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t-=g2[5][4][1];
t-=g2[5][4][6];
t+=g2[5][4][7];
t-=g2[5][3][1];
t-=g2[5][3][6];
t+=g2[5][3][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[2][4][1]*t;
t=0;
t-=g2[2][4][2];
t-=g2[2][4][5];
t+=g2[2][4][7];
t-=g2[2][3][2];
t-=g2[2][3][5];
t+=g2[2][3][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t-=g2[5][4][2];
t-=g2[5][4][5];
t+=g2[5][4][7];
t-=g2[5][3][2];
t-=g2[5][3][5];
t+=g2[5][3][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[2][4][2]*t;
t=0;
t-=g2[2][4][3];
t-=g2[2][4][4];
t+=g2[2][4][7];
t-=g2[2][3][3];
t-=g2[2][3][4];
t+=g2[2][3][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t-=g2[5][4][3];
t-=g2[5][4][4];
t+=g2[5][4][7];
t-=g2[5][3][3];
t-=g2[5][3][4];
t+=g2[5][3][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[2][4][3]*t;
t=0;
t-=g2[2][4][4];
t-=g2[2][4][3];
t+=g2[2][4][7];
t-=g2[2][3][4];
t-=g2[2][3][3];
t+=g2[2][3][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t-=g2[5][4][4];
t-=g2[5][4][3];
t+=g2[5][4][7];
t-=g2[5][3][4];
t-=g2[5][3][3];
t+=g2[5][3][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[2][4][4]*t;
t=0;
t-=g2[2][4][5];
t-=g2[2][4][2];
t+=g2[2][4][7];
t-=g2[2][3][5];
t-=g2[2][3][2];
t+=g2[2][3][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t-=g2[5][4][5];
t-=g2[5][4][2];
t+=g2[5][4][7];
t-=g2[5][3][5];
t-=g2[5][3][2];
t+=g2[5][3][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[2][4][5]*t;
t=0;
t-=g2[2][4][6];
t-=g2[2][4][1];
t+=g2[2][4][7];
t-=g2[2][3][6];
t-=g2[2][3][1];
t+=g2[2][3][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t-=g2[5][4][6];
t-=g2[5][4][1];
t+=g2[5][4][7];
t-=g2[5][3][6];
t-=g2[5][3][1];
t+=g2[5][3][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[2][4][6]*t;
t=0;
t-=g2[2][5][0];
t+=g2[2][5][7];
t-=g2[2][2][0];
t+=g2[2][2][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t-=g2[5][5][0];
t+=g2[5][5][7];
t-=g2[5][2][0];
t+=g2[5][2][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[2][5][0]*t;
t=0;
t-=g2[2][5][1];
t-=g2[2][5][6];
t+=g2[2][5][7];
t-=g2[2][2][1];
t-=g2[2][2][6];
t+=g2[2][2][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t-=g2[5][5][1];
t-=g2[5][5][6];
t+=g2[5][5][7];
t-=g2[5][2][1];
t-=g2[5][2][6];
t+=g2[5][2][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[2][5][1]*t;
t=0;
t-=g2[2][5][2];
t-=g2[2][5][5];
t+=g2[2][5][7];
t-=g2[2][2][2];
t-=g2[2][2][5];
t+=g2[2][2][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t-=g2[5][5][2];
t-=g2[5][5][5];
t+=g2[5][5][7];
t-=g2[5][2][2];
t-=g2[5][2][5];
t+=g2[5][2][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[2][5][2]*t;
t=0;
t-=g2[2][5][3];
t-=g2[2][5][4];
t+=g2[2][5][7];
t-=g2[2][2][3];
t-=g2[2][2][4];
t+=g2[2][2][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t-=g2[5][5][3];
t-=g2[5][5][4];
t+=g2[5][5][7];
t-=g2[5][2][3];
t-=g2[5][2][4];
t+=g2[5][2][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[2][5][3]*t;
t=0;
t-=g2[2][5][4];
t-=g2[2][5][3];
t+=g2[2][5][7];
t-=g2[2][2][4];
t-=g2[2][2][3];
t+=g2[2][2][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t-=g2[5][5][4];
t-=g2[5][5][3];
t+=g2[5][5][7];
t-=g2[5][2][4];
t-=g2[5][2][3];
t+=g2[5][2][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[2][5][4]*t;
t=0;
t-=g2[2][5][5];
t-=g2[2][5][2];
t+=g2[2][5][7];
t-=g2[2][2][5];
t-=g2[2][2][2];
t+=g2[2][2][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t-=g2[5][5][5];
t-=g2[5][5][2];
t+=g2[5][5][7];
t-=g2[5][2][5];
t-=g2[5][2][2];
t+=g2[5][2][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[2][5][5]*t;
t=0;
t-=g2[2][5][6];
t-=g2[2][5][1];
t+=g2[2][5][7];
t-=g2[2][2][6];
t-=g2[2][2][1];
t+=g2[2][2][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t-=g2[5][5][6];
t-=g2[5][5][1];
t+=g2[5][5][7];
t-=g2[5][2][6];
t-=g2[5][2][1];
t+=g2[5][2][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[2][5][6]*t;
t=0;
t-=g2[2][6][0];
t+=g2[2][6][7];
t-=g2[2][1][0];
t+=g2[2][1][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t-=g2[5][6][0];
t+=g2[5][6][7];
t-=g2[5][1][0];
t+=g2[5][1][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[2][6][0]*t;
t=0;
t-=g2[2][6][1];
t-=g2[2][6][6];
t+=g2[2][6][7];
t-=g2[2][1][1];
t-=g2[2][1][6];
t+=g2[2][1][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t-=g2[5][6][1];
t-=g2[5][6][6];
t+=g2[5][6][7];
t-=g2[5][1][1];
t-=g2[5][1][6];
t+=g2[5][1][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[2][6][1]*t;
t=0;
t-=g2[2][6][2];
t-=g2[2][6][5];
t+=g2[2][6][7];
t-=g2[2][1][2];
t-=g2[2][1][5];
t+=g2[2][1][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t-=g2[5][6][2];
t-=g2[5][6][5];
t+=g2[5][6][7];
t-=g2[5][1][2];
t-=g2[5][1][5];
t+=g2[5][1][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[2][6][2]*t;
t=0;
t-=g2[2][6][3];
t-=g2[2][6][4];
t+=g2[2][6][7];
t-=g2[2][1][3];
t-=g2[2][1][4];
t+=g2[2][1][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t-=g2[5][6][3];
t-=g2[5][6][4];
t+=g2[5][6][7];
t-=g2[5][1][3];
t-=g2[5][1][4];
t+=g2[5][1][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[2][6][3]*t;
t=0;
t-=g2[2][6][4];
t-=g2[2][6][3];
t+=g2[2][6][7];
t-=g2[2][1][4];
t-=g2[2][1][3];
t+=g2[2][1][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t-=g2[5][6][4];
t-=g2[5][6][3];
t+=g2[5][6][7];
t-=g2[5][1][4];
t-=g2[5][1][3];
t+=g2[5][1][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[2][6][4]*t;
t=0;
t-=g2[2][6][5];
t-=g2[2][6][2];
t+=g2[2][6][7];
t-=g2[2][1][5];
t-=g2[2][1][2];
t+=g2[2][1][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t-=g2[5][6][5];
t-=g2[5][6][2];
t+=g2[5][6][7];
t-=g2[5][1][5];
t-=g2[5][1][2];
t+=g2[5][1][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[2][6][5]*t;
t=0;
t-=g2[2][6][6];
t-=g2[2][6][1];
t+=g2[2][6][7];
t-=g2[2][1][6];
t-=g2[2][1][1];
t+=g2[2][1][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t-=g2[5][6][6];
t-=g2[5][6][1];
t+=g2[5][6][7];
t-=g2[5][1][6];
t-=g2[5][1][1];
t+=g2[5][1][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[2][6][6]*t;
t=0;
t-=g2[3][0][0];
t+=g2[3][0][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t-=g2[4][0][0];
t+=g2[4][0][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t+=g2[7][0][0];
t-=g2[7][0][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[3][0][0]*t;
t=0;
t-=g2[3][0][1];
t-=g2[3][0][6];
t+=g2[3][0][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t-=g2[4][0][1];
t-=g2[4][0][6];
t+=g2[4][0][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t+=g2[7][0][1];
t+=g2[7][0][6];
t-=g2[7][0][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[3][0][1]*t;
t=0;
t-=g2[3][0][2];
t-=g2[3][0][5];
t+=g2[3][0][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t-=g2[4][0][2];
t-=g2[4][0][5];
t+=g2[4][0][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t+=g2[7][0][2];
t+=g2[7][0][5];
t-=g2[7][0][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[3][0][2]*t;
t=0;
t-=g2[3][0][3];
t-=g2[3][0][4];
t+=g2[3][0][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t-=g2[4][0][3];
t-=g2[4][0][4];
t+=g2[4][0][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t+=g2[7][0][3];
t+=g2[7][0][4];
t-=g2[7][0][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[3][0][3]*t;
t=0;
t-=g2[3][0][4];
t-=g2[3][0][3];
t+=g2[3][0][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t-=g2[4][0][4];
t-=g2[4][0][3];
t+=g2[4][0][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t+=g2[7][0][4];
t+=g2[7][0][3];
t-=g2[7][0][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[3][0][4]*t;
t=0;
t-=g2[3][0][5];
t-=g2[3][0][2];
t+=g2[3][0][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t-=g2[4][0][5];
t-=g2[4][0][2];
t+=g2[4][0][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t+=g2[7][0][5];
t+=g2[7][0][2];
t-=g2[7][0][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[3][0][5]*t;
t=0;
t-=g2[3][0][6];
t-=g2[3][0][1];
t+=g2[3][0][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t-=g2[4][0][6];
t-=g2[4][0][1];
t+=g2[4][0][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t+=g2[7][0][6];
t+=g2[7][0][1];
t-=g2[7][0][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[3][0][6]*t;
t=0;
t-=g2[3][1][0];
t+=g2[3][1][7];
t-=g2[3][6][0];
t+=g2[3][6][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t-=g2[4][1][0];
t+=g2[4][1][7];
t-=g2[4][6][0];
t+=g2[4][6][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[3][1][0]*t;
t=0;
t-=g2[3][1][1];
t-=g2[3][1][6];
t+=g2[3][1][7];
t-=g2[3][6][1];
t-=g2[3][6][6];
t+=g2[3][6][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t-=g2[4][1][1];
t-=g2[4][1][6];
t+=g2[4][1][7];
t-=g2[4][6][1];
t-=g2[4][6][6];
t+=g2[4][6][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[3][1][1]*t;
t=0;
t-=g2[3][1][2];
t-=g2[3][1][5];
t+=g2[3][1][7];
t-=g2[3][6][2];
t-=g2[3][6][5];
t+=g2[3][6][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t-=g2[4][1][2];
t-=g2[4][1][5];
t+=g2[4][1][7];
t-=g2[4][6][2];
t-=g2[4][6][5];
t+=g2[4][6][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[3][1][2]*t;
t=0;
t-=g2[3][1][3];
t-=g2[3][1][4];
t+=g2[3][1][7];
t-=g2[3][6][3];
t-=g2[3][6][4];
t+=g2[3][6][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t-=g2[4][1][3];
t-=g2[4][1][4];
t+=g2[4][1][7];
t-=g2[4][6][3];
t-=g2[4][6][4];
t+=g2[4][6][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[3][1][3]*t;
t=0;
t-=g2[3][1][4];
t-=g2[3][1][3];
t+=g2[3][1][7];
t-=g2[3][6][4];
t-=g2[3][6][3];
t+=g2[3][6][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t-=g2[4][1][4];
t-=g2[4][1][3];
t+=g2[4][1][7];
t-=g2[4][6][4];
t-=g2[4][6][3];
t+=g2[4][6][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[3][1][4]*t;
t=0;
t-=g2[3][1][5];
t-=g2[3][1][2];
t+=g2[3][1][7];
t-=g2[3][6][5];
t-=g2[3][6][2];
t+=g2[3][6][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t-=g2[4][1][5];
t-=g2[4][1][2];
t+=g2[4][1][7];
t-=g2[4][6][5];
t-=g2[4][6][2];
t+=g2[4][6][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[3][1][5]*t;
t=0;
t-=g2[3][1][6];
t-=g2[3][1][1];
t+=g2[3][1][7];
t-=g2[3][6][6];
t-=g2[3][6][1];
t+=g2[3][6][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t-=g2[4][1][6];
t-=g2[4][1][1];
t+=g2[4][1][7];
t-=g2[4][6][6];
t-=g2[4][6][1];
t+=g2[4][6][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[3][1][6]*t;
t=0;
t-=g2[3][2][0];
t+=g2[3][2][7];
t-=g2[3][5][0];
t+=g2[3][5][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t-=g2[4][2][0];
t+=g2[4][2][7];
t-=g2[4][5][0];
t+=g2[4][5][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[3][2][0]*t;
t=0;
t-=g2[3][2][1];
t-=g2[3][2][6];
t+=g2[3][2][7];
t-=g2[3][5][1];
t-=g2[3][5][6];
t+=g2[3][5][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t-=g2[4][2][1];
t-=g2[4][2][6];
t+=g2[4][2][7];
t-=g2[4][5][1];
t-=g2[4][5][6];
t+=g2[4][5][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[3][2][1]*t;
t=0;
t-=g2[3][2][2];
t-=g2[3][2][5];
t+=g2[3][2][7];
t-=g2[3][5][2];
t-=g2[3][5][5];
t+=g2[3][5][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t-=g2[4][2][2];
t-=g2[4][2][5];
t+=g2[4][2][7];
t-=g2[4][5][2];
t-=g2[4][5][5];
t+=g2[4][5][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[3][2][2]*t;
t=0;
t-=g2[3][2][3];
t-=g2[3][2][4];
t+=g2[3][2][7];
t-=g2[3][5][3];
t-=g2[3][5][4];
t+=g2[3][5][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t-=g2[4][2][3];
t-=g2[4][2][4];
t+=g2[4][2][7];
t-=g2[4][5][3];
t-=g2[4][5][4];
t+=g2[4][5][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[3][2][3]*t;
t=0;
t-=g2[3][2][4];
t-=g2[3][2][3];
t+=g2[3][2][7];
t-=g2[3][5][4];
t-=g2[3][5][3];
t+=g2[3][5][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t-=g2[4][2][4];
t-=g2[4][2][3];
t+=g2[4][2][7];
t-=g2[4][5][4];
t-=g2[4][5][3];
t+=g2[4][5][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[3][2][4]*t;
t=0;
t-=g2[3][2][5];
t-=g2[3][2][2];
t+=g2[3][2][7];
t-=g2[3][5][5];
t-=g2[3][5][2];
t+=g2[3][5][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t-=g2[4][2][5];
t-=g2[4][2][2];
t+=g2[4][2][7];
t-=g2[4][5][5];
t-=g2[4][5][2];
t+=g2[4][5][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[3][2][5]*t;
t=0;
t-=g2[3][2][6];
t-=g2[3][2][1];
t+=g2[3][2][7];
t-=g2[3][5][6];
t-=g2[3][5][1];
t+=g2[3][5][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t-=g2[4][2][6];
t-=g2[4][2][1];
t+=g2[4][2][7];
t-=g2[4][5][6];
t-=g2[4][5][1];
t+=g2[4][5][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[3][2][6]*t;
t=0;
t-=g2[3][3][0];
t+=g2[3][3][7];
t-=g2[3][4][0];
t+=g2[3][4][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t-=g2[4][3][0];
t+=g2[4][3][7];
t-=g2[4][4][0];
t+=g2[4][4][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[3][3][0]*t;
t=0;
t-=g2[3][3][1];
t-=g2[3][3][6];
t+=g2[3][3][7];
t-=g2[3][4][1];
t-=g2[3][4][6];
t+=g2[3][4][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t-=g2[4][3][1];
t-=g2[4][3][6];
t+=g2[4][3][7];
t-=g2[4][4][1];
t-=g2[4][4][6];
t+=g2[4][4][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[3][3][1]*t;
t=0;
t-=g2[3][3][2];
t-=g2[3][3][5];
t+=g2[3][3][7];
t-=g2[3][4][2];
t-=g2[3][4][5];
t+=g2[3][4][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t-=g2[4][3][2];
t-=g2[4][3][5];
t+=g2[4][3][7];
t-=g2[4][4][2];
t-=g2[4][4][5];
t+=g2[4][4][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[3][3][2]*t;
t=0;
t-=g2[3][3][3];
t-=g2[3][3][4];
t+=g2[3][3][7];
t-=g2[3][4][3];
t-=g2[3][4][4];
t+=g2[3][4][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t-=g2[4][3][3];
t-=g2[4][3][4];
t+=g2[4][3][7];
t-=g2[4][4][3];
t-=g2[4][4][4];
t+=g2[4][4][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[3][3][3]*t;
t=0;
t-=g2[3][3][4];
t-=g2[3][3][3];
t+=g2[3][3][7];
t-=g2[3][4][4];
t-=g2[3][4][3];
t+=g2[3][4][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t-=g2[4][3][4];
t-=g2[4][3][3];
t+=g2[4][3][7];
t-=g2[4][4][4];
t-=g2[4][4][3];
t+=g2[4][4][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[3][3][4]*t;
t=0;
t-=g2[3][3][5];
t-=g2[3][3][2];
t+=g2[3][3][7];
t-=g2[3][4][5];
t-=g2[3][4][2];
t+=g2[3][4][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t-=g2[4][3][5];
t-=g2[4][3][2];
t+=g2[4][3][7];
t-=g2[4][4][5];
t-=g2[4][4][2];
t+=g2[4][4][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[3][3][5]*t;
t=0;
t-=g2[3][3][6];
t-=g2[3][3][1];
t+=g2[3][3][7];
t-=g2[3][4][6];
t-=g2[3][4][1];
t+=g2[3][4][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t-=g2[4][3][6];
t-=g2[4][3][1];
t+=g2[4][3][7];
t-=g2[4][4][6];
t-=g2[4][4][1];
t+=g2[4][4][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[3][3][6]*t;
t=0;
t-=g2[3][4][0];
t+=g2[3][4][7];
t-=g2[3][3][0];
t+=g2[3][3][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t-=g2[4][4][0];
t+=g2[4][4][7];
t-=g2[4][3][0];
t+=g2[4][3][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[3][4][0]*t;
t=0;
t-=g2[3][4][1];
t-=g2[3][4][6];
t+=g2[3][4][7];
t-=g2[3][3][1];
t-=g2[3][3][6];
t+=g2[3][3][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t-=g2[4][4][1];
t-=g2[4][4][6];
t+=g2[4][4][7];
t-=g2[4][3][1];
t-=g2[4][3][6];
t+=g2[4][3][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[3][4][1]*t;
t=0;
t-=g2[3][4][2];
t-=g2[3][4][5];
t+=g2[3][4][7];
t-=g2[3][3][2];
t-=g2[3][3][5];
t+=g2[3][3][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t-=g2[4][4][2];
t-=g2[4][4][5];
t+=g2[4][4][7];
t-=g2[4][3][2];
t-=g2[4][3][5];
t+=g2[4][3][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[3][4][2]*t;
t=0;
t-=g2[3][4][3];
t-=g2[3][4][4];
t+=g2[3][4][7];
t-=g2[3][3][3];
t-=g2[3][3][4];
t+=g2[3][3][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t-=g2[4][4][3];
t-=g2[4][4][4];
t+=g2[4][4][7];
t-=g2[4][3][3];
t-=g2[4][3][4];
t+=g2[4][3][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[3][4][3]*t;
t=0;
t-=g2[3][4][4];
t-=g2[3][4][3];
t+=g2[3][4][7];
t-=g2[3][3][4];
t-=g2[3][3][3];
t+=g2[3][3][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t-=g2[4][4][4];
t-=g2[4][4][3];
t+=g2[4][4][7];
t-=g2[4][3][4];
t-=g2[4][3][3];
t+=g2[4][3][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[3][4][4]*t;
t=0;
t-=g2[3][4][5];
t-=g2[3][4][2];
t+=g2[3][4][7];
t-=g2[3][3][5];
t-=g2[3][3][2];
t+=g2[3][3][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t-=g2[4][4][5];
t-=g2[4][4][2];
t+=g2[4][4][7];
t-=g2[4][3][5];
t-=g2[4][3][2];
t+=g2[4][3][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[3][4][5]*t;
t=0;
t-=g2[3][4][6];
t-=g2[3][4][1];
t+=g2[3][4][7];
t-=g2[3][3][6];
t-=g2[3][3][1];
t+=g2[3][3][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t-=g2[4][4][6];
t-=g2[4][4][1];
t+=g2[4][4][7];
t-=g2[4][3][6];
t-=g2[4][3][1];
t+=g2[4][3][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[3][4][6]*t;
t=0;
t-=g2[3][5][0];
t+=g2[3][5][7];
t-=g2[3][2][0];
t+=g2[3][2][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t-=g2[4][5][0];
t+=g2[4][5][7];
t-=g2[4][2][0];
t+=g2[4][2][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[3][5][0]*t;
t=0;
t-=g2[3][5][1];
t-=g2[3][5][6];
t+=g2[3][5][7];
t-=g2[3][2][1];
t-=g2[3][2][6];
t+=g2[3][2][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t-=g2[4][5][1];
t-=g2[4][5][6];
t+=g2[4][5][7];
t-=g2[4][2][1];
t-=g2[4][2][6];
t+=g2[4][2][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[3][5][1]*t;
t=0;
t-=g2[3][5][2];
t-=g2[3][5][5];
t+=g2[3][5][7];
t-=g2[3][2][2];
t-=g2[3][2][5];
t+=g2[3][2][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t-=g2[4][5][2];
t-=g2[4][5][5];
t+=g2[4][5][7];
t-=g2[4][2][2];
t-=g2[4][2][5];
t+=g2[4][2][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[3][5][2]*t;
t=0;
t-=g2[3][5][3];
t-=g2[3][5][4];
t+=g2[3][5][7];
t-=g2[3][2][3];
t-=g2[3][2][4];
t+=g2[3][2][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t-=g2[4][5][3];
t-=g2[4][5][4];
t+=g2[4][5][7];
t-=g2[4][2][3];
t-=g2[4][2][4];
t+=g2[4][2][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[3][5][3]*t;
t=0;
t-=g2[3][5][4];
t-=g2[3][5][3];
t+=g2[3][5][7];
t-=g2[3][2][4];
t-=g2[3][2][3];
t+=g2[3][2][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t-=g2[4][5][4];
t-=g2[4][5][3];
t+=g2[4][5][7];
t-=g2[4][2][4];
t-=g2[4][2][3];
t+=g2[4][2][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[3][5][4]*t;
t=0;
t-=g2[3][5][5];
t-=g2[3][5][2];
t+=g2[3][5][7];
t-=g2[3][2][5];
t-=g2[3][2][2];
t+=g2[3][2][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t-=g2[4][5][5];
t-=g2[4][5][2];
t+=g2[4][5][7];
t-=g2[4][2][5];
t-=g2[4][2][2];
t+=g2[4][2][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[3][5][5]*t;
t=0;
t-=g2[3][5][6];
t-=g2[3][5][1];
t+=g2[3][5][7];
t-=g2[3][2][6];
t-=g2[3][2][1];
t+=g2[3][2][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t-=g2[4][5][6];
t-=g2[4][5][1];
t+=g2[4][5][7];
t-=g2[4][2][6];
t-=g2[4][2][1];
t+=g2[4][2][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[3][5][6]*t;
t=0;
t-=g2[3][6][0];
t+=g2[3][6][7];
t-=g2[3][1][0];
t+=g2[3][1][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t-=g2[4][6][0];
t+=g2[4][6][7];
t-=g2[4][1][0];
t+=g2[4][1][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[3][6][0]*t;
t=0;
t-=g2[3][6][1];
t-=g2[3][6][6];
t+=g2[3][6][7];
t-=g2[3][1][1];
t-=g2[3][1][6];
t+=g2[3][1][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t-=g2[4][6][1];
t-=g2[4][6][6];
t+=g2[4][6][7];
t-=g2[4][1][1];
t-=g2[4][1][6];
t+=g2[4][1][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[3][6][1]*t;
t=0;
t-=g2[3][6][2];
t-=g2[3][6][5];
t+=g2[3][6][7];
t-=g2[3][1][2];
t-=g2[3][1][5];
t+=g2[3][1][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t-=g2[4][6][2];
t-=g2[4][6][5];
t+=g2[4][6][7];
t-=g2[4][1][2];
t-=g2[4][1][5];
t+=g2[4][1][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[3][6][2]*t;
t=0;
t-=g2[3][6][3];
t-=g2[3][6][4];
t+=g2[3][6][7];
t-=g2[3][1][3];
t-=g2[3][1][4];
t+=g2[3][1][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t-=g2[4][6][3];
t-=g2[4][6][4];
t+=g2[4][6][7];
t-=g2[4][1][3];
t-=g2[4][1][4];
t+=g2[4][1][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[3][6][3]*t;
t=0;
t-=g2[3][6][4];
t-=g2[3][6][3];
t+=g2[3][6][7];
t-=g2[3][1][4];
t-=g2[3][1][3];
t+=g2[3][1][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t-=g2[4][6][4];
t-=g2[4][6][3];
t+=g2[4][6][7];
t-=g2[4][1][4];
t-=g2[4][1][3];
t+=g2[4][1][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[3][6][4]*t;
t=0;
t-=g2[3][6][5];
t-=g2[3][6][2];
t+=g2[3][6][7];
t-=g2[3][1][5];
t-=g2[3][1][2];
t+=g2[3][1][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t-=g2[4][6][5];
t-=g2[4][6][2];
t+=g2[4][6][7];
t-=g2[4][1][5];
t-=g2[4][1][2];
t+=g2[4][1][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[3][6][5]*t;
t=0;
t-=g2[3][6][6];
t-=g2[3][6][1];
t+=g2[3][6][7];
t-=g2[3][1][6];
t-=g2[3][1][1];
t+=g2[3][1][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t-=g2[4][6][6];
t-=g2[4][6][1];
t+=g2[4][6][7];
t-=g2[4][1][6];
t-=g2[4][1][1];
t+=g2[4][1][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[3][6][6]*t;
t=0;
t-=g2[4][0][0];
t+=g2[4][0][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t-=g2[3][0][0];
t+=g2[3][0][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t+=g2[7][0][0];
t-=g2[7][0][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[4][0][0]*t;
t=0;
t-=g2[4][0][1];
t-=g2[4][0][6];
t+=g2[4][0][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t-=g2[3][0][1];
t-=g2[3][0][6];
t+=g2[3][0][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t+=g2[7][0][1];
t+=g2[7][0][6];
t-=g2[7][0][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[4][0][1]*t;
t=0;
t-=g2[4][0][2];
t-=g2[4][0][5];
t+=g2[4][0][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t-=g2[3][0][2];
t-=g2[3][0][5];
t+=g2[3][0][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t+=g2[7][0][2];
t+=g2[7][0][5];
t-=g2[7][0][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[4][0][2]*t;
t=0;
t-=g2[4][0][3];
t-=g2[4][0][4];
t+=g2[4][0][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t-=g2[3][0][3];
t-=g2[3][0][4];
t+=g2[3][0][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t+=g2[7][0][3];
t+=g2[7][0][4];
t-=g2[7][0][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[4][0][3]*t;
t=0;
t-=g2[4][0][4];
t-=g2[4][0][3];
t+=g2[4][0][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t-=g2[3][0][4];
t-=g2[3][0][3];
t+=g2[3][0][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t+=g2[7][0][4];
t+=g2[7][0][3];
t-=g2[7][0][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[4][0][4]*t;
t=0;
t-=g2[4][0][5];
t-=g2[4][0][2];
t+=g2[4][0][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t-=g2[3][0][5];
t-=g2[3][0][2];
t+=g2[3][0][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t+=g2[7][0][5];
t+=g2[7][0][2];
t-=g2[7][0][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[4][0][5]*t;
t=0;
t-=g2[4][0][6];
t-=g2[4][0][1];
t+=g2[4][0][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t-=g2[3][0][6];
t-=g2[3][0][1];
t+=g2[3][0][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t+=g2[7][0][6];
t+=g2[7][0][1];
t-=g2[7][0][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[4][0][6]*t;
t=0;
t-=g2[4][1][0];
t+=g2[4][1][7];
t-=g2[4][6][0];
t+=g2[4][6][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t-=g2[3][1][0];
t+=g2[3][1][7];
t-=g2[3][6][0];
t+=g2[3][6][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[4][1][0]*t;
t=0;
t-=g2[4][1][1];
t-=g2[4][1][6];
t+=g2[4][1][7];
t-=g2[4][6][1];
t-=g2[4][6][6];
t+=g2[4][6][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t-=g2[3][1][1];
t-=g2[3][1][6];
t+=g2[3][1][7];
t-=g2[3][6][1];
t-=g2[3][6][6];
t+=g2[3][6][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[4][1][1]*t;
t=0;
t-=g2[4][1][2];
t-=g2[4][1][5];
t+=g2[4][1][7];
t-=g2[4][6][2];
t-=g2[4][6][5];
t+=g2[4][6][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t-=g2[3][1][2];
t-=g2[3][1][5];
t+=g2[3][1][7];
t-=g2[3][6][2];
t-=g2[3][6][5];
t+=g2[3][6][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[4][1][2]*t;
t=0;
t-=g2[4][1][3];
t-=g2[4][1][4];
t+=g2[4][1][7];
t-=g2[4][6][3];
t-=g2[4][6][4];
t+=g2[4][6][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t-=g2[3][1][3];
t-=g2[3][1][4];
t+=g2[3][1][7];
t-=g2[3][6][3];
t-=g2[3][6][4];
t+=g2[3][6][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[4][1][3]*t;
t=0;
t-=g2[4][1][4];
t-=g2[4][1][3];
t+=g2[4][1][7];
t-=g2[4][6][4];
t-=g2[4][6][3];
t+=g2[4][6][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t-=g2[3][1][4];
t-=g2[3][1][3];
t+=g2[3][1][7];
t-=g2[3][6][4];
t-=g2[3][6][3];
t+=g2[3][6][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[4][1][4]*t;
t=0;
t-=g2[4][1][5];
t-=g2[4][1][2];
t+=g2[4][1][7];
t-=g2[4][6][5];
t-=g2[4][6][2];
t+=g2[4][6][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t-=g2[3][1][5];
t-=g2[3][1][2];
t+=g2[3][1][7];
t-=g2[3][6][5];
t-=g2[3][6][2];
t+=g2[3][6][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[4][1][5]*t;
t=0;
t-=g2[4][1][6];
t-=g2[4][1][1];
t+=g2[4][1][7];
t-=g2[4][6][6];
t-=g2[4][6][1];
t+=g2[4][6][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t-=g2[3][1][6];
t-=g2[3][1][1];
t+=g2[3][1][7];
t-=g2[3][6][6];
t-=g2[3][6][1];
t+=g2[3][6][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[4][1][6]*t;
t=0;
t-=g2[4][2][0];
t+=g2[4][2][7];
t-=g2[4][5][0];
t+=g2[4][5][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t-=g2[3][2][0];
t+=g2[3][2][7];
t-=g2[3][5][0];
t+=g2[3][5][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[4][2][0]*t;
t=0;
t-=g2[4][2][1];
t-=g2[4][2][6];
t+=g2[4][2][7];
t-=g2[4][5][1];
t-=g2[4][5][6];
t+=g2[4][5][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t-=g2[3][2][1];
t-=g2[3][2][6];
t+=g2[3][2][7];
t-=g2[3][5][1];
t-=g2[3][5][6];
t+=g2[3][5][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[4][2][1]*t;
t=0;
t-=g2[4][2][2];
t-=g2[4][2][5];
t+=g2[4][2][7];
t-=g2[4][5][2];
t-=g2[4][5][5];
t+=g2[4][5][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t-=g2[3][2][2];
t-=g2[3][2][5];
t+=g2[3][2][7];
t-=g2[3][5][2];
t-=g2[3][5][5];
t+=g2[3][5][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[4][2][2]*t;
t=0;
t-=g2[4][2][3];
t-=g2[4][2][4];
t+=g2[4][2][7];
t-=g2[4][5][3];
t-=g2[4][5][4];
t+=g2[4][5][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t-=g2[3][2][3];
t-=g2[3][2][4];
t+=g2[3][2][7];
t-=g2[3][5][3];
t-=g2[3][5][4];
t+=g2[3][5][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[4][2][3]*t;
t=0;
t-=g2[4][2][4];
t-=g2[4][2][3];
t+=g2[4][2][7];
t-=g2[4][5][4];
t-=g2[4][5][3];
t+=g2[4][5][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t-=g2[3][2][4];
t-=g2[3][2][3];
t+=g2[3][2][7];
t-=g2[3][5][4];
t-=g2[3][5][3];
t+=g2[3][5][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[4][2][4]*t;
t=0;
t-=g2[4][2][5];
t-=g2[4][2][2];
t+=g2[4][2][7];
t-=g2[4][5][5];
t-=g2[4][5][2];
t+=g2[4][5][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t-=g2[3][2][5];
t-=g2[3][2][2];
t+=g2[3][2][7];
t-=g2[3][5][5];
t-=g2[3][5][2];
t+=g2[3][5][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[4][2][5]*t;
t=0;
t-=g2[4][2][6];
t-=g2[4][2][1];
t+=g2[4][2][7];
t-=g2[4][5][6];
t-=g2[4][5][1];
t+=g2[4][5][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t-=g2[3][2][6];
t-=g2[3][2][1];
t+=g2[3][2][7];
t-=g2[3][5][6];
t-=g2[3][5][1];
t+=g2[3][5][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[4][2][6]*t;
t=0;
t-=g2[4][3][0];
t+=g2[4][3][7];
t-=g2[4][4][0];
t+=g2[4][4][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t-=g2[3][3][0];
t+=g2[3][3][7];
t-=g2[3][4][0];
t+=g2[3][4][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[4][3][0]*t;
t=0;
t-=g2[4][3][1];
t-=g2[4][3][6];
t+=g2[4][3][7];
t-=g2[4][4][1];
t-=g2[4][4][6];
t+=g2[4][4][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t-=g2[3][3][1];
t-=g2[3][3][6];
t+=g2[3][3][7];
t-=g2[3][4][1];
t-=g2[3][4][6];
t+=g2[3][4][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[4][3][1]*t;
t=0;
t-=g2[4][3][2];
t-=g2[4][3][5];
t+=g2[4][3][7];
t-=g2[4][4][2];
t-=g2[4][4][5];
t+=g2[4][4][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t-=g2[3][3][2];
t-=g2[3][3][5];
t+=g2[3][3][7];
t-=g2[3][4][2];
t-=g2[3][4][5];
t+=g2[3][4][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[4][3][2]*t;
t=0;
t-=g2[4][3][3];
t-=g2[4][3][4];
t+=g2[4][3][7];
t-=g2[4][4][3];
t-=g2[4][4][4];
t+=g2[4][4][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t-=g2[3][3][3];
t-=g2[3][3][4];
t+=g2[3][3][7];
t-=g2[3][4][3];
t-=g2[3][4][4];
t+=g2[3][4][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[4][3][3]*t;
t=0;
t-=g2[4][3][4];
t-=g2[4][3][3];
t+=g2[4][3][7];
t-=g2[4][4][4];
t-=g2[4][4][3];
t+=g2[4][4][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t-=g2[3][3][4];
t-=g2[3][3][3];
t+=g2[3][3][7];
t-=g2[3][4][4];
t-=g2[3][4][3];
t+=g2[3][4][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[4][3][4]*t;
t=0;
t-=g2[4][3][5];
t-=g2[4][3][2];
t+=g2[4][3][7];
t-=g2[4][4][5];
t-=g2[4][4][2];
t+=g2[4][4][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t-=g2[3][3][5];
t-=g2[3][3][2];
t+=g2[3][3][7];
t-=g2[3][4][5];
t-=g2[3][4][2];
t+=g2[3][4][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[4][3][5]*t;
t=0;
t-=g2[4][3][6];
t-=g2[4][3][1];
t+=g2[4][3][7];
t-=g2[4][4][6];
t-=g2[4][4][1];
t+=g2[4][4][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t-=g2[3][3][6];
t-=g2[3][3][1];
t+=g2[3][3][7];
t-=g2[3][4][6];
t-=g2[3][4][1];
t+=g2[3][4][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[4][3][6]*t;
t=0;
t-=g2[4][4][0];
t+=g2[4][4][7];
t-=g2[4][3][0];
t+=g2[4][3][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t-=g2[3][4][0];
t+=g2[3][4][7];
t-=g2[3][3][0];
t+=g2[3][3][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[4][4][0]*t;
t=0;
t-=g2[4][4][1];
t-=g2[4][4][6];
t+=g2[4][4][7];
t-=g2[4][3][1];
t-=g2[4][3][6];
t+=g2[4][3][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t-=g2[3][4][1];
t-=g2[3][4][6];
t+=g2[3][4][7];
t-=g2[3][3][1];
t-=g2[3][3][6];
t+=g2[3][3][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[4][4][1]*t;
t=0;
t-=g2[4][4][2];
t-=g2[4][4][5];
t+=g2[4][4][7];
t-=g2[4][3][2];
t-=g2[4][3][5];
t+=g2[4][3][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t-=g2[3][4][2];
t-=g2[3][4][5];
t+=g2[3][4][7];
t-=g2[3][3][2];
t-=g2[3][3][5];
t+=g2[3][3][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[4][4][2]*t;
t=0;
t-=g2[4][4][3];
t-=g2[4][4][4];
t+=g2[4][4][7];
t-=g2[4][3][3];
t-=g2[4][3][4];
t+=g2[4][3][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t-=g2[3][4][3];
t-=g2[3][4][4];
t+=g2[3][4][7];
t-=g2[3][3][3];
t-=g2[3][3][4];
t+=g2[3][3][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[4][4][3]*t;
t=0;
t-=g2[4][4][4];
t-=g2[4][4][3];
t+=g2[4][4][7];
t-=g2[4][3][4];
t-=g2[4][3][3];
t+=g2[4][3][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t-=g2[3][4][4];
t-=g2[3][4][3];
t+=g2[3][4][7];
t-=g2[3][3][4];
t-=g2[3][3][3];
t+=g2[3][3][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[4][4][4]*t;
t=0;
t-=g2[4][4][5];
t-=g2[4][4][2];
t+=g2[4][4][7];
t-=g2[4][3][5];
t-=g2[4][3][2];
t+=g2[4][3][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t-=g2[3][4][5];
t-=g2[3][4][2];
t+=g2[3][4][7];
t-=g2[3][3][5];
t-=g2[3][3][2];
t+=g2[3][3][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[4][4][5]*t;
t=0;
t-=g2[4][4][6];
t-=g2[4][4][1];
t+=g2[4][4][7];
t-=g2[4][3][6];
t-=g2[4][3][1];
t+=g2[4][3][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t-=g2[3][4][6];
t-=g2[3][4][1];
t+=g2[3][4][7];
t-=g2[3][3][6];
t-=g2[3][3][1];
t+=g2[3][3][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[4][4][6]*t;
t=0;
t-=g2[4][5][0];
t+=g2[4][5][7];
t-=g2[4][2][0];
t+=g2[4][2][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t-=g2[3][5][0];
t+=g2[3][5][7];
t-=g2[3][2][0];
t+=g2[3][2][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[4][5][0]*t;
t=0;
t-=g2[4][5][1];
t-=g2[4][5][6];
t+=g2[4][5][7];
t-=g2[4][2][1];
t-=g2[4][2][6];
t+=g2[4][2][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t-=g2[3][5][1];
t-=g2[3][5][6];
t+=g2[3][5][7];
t-=g2[3][2][1];
t-=g2[3][2][6];
t+=g2[3][2][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[4][5][1]*t;
t=0;
t-=g2[4][5][2];
t-=g2[4][5][5];
t+=g2[4][5][7];
t-=g2[4][2][2];
t-=g2[4][2][5];
t+=g2[4][2][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t-=g2[3][5][2];
t-=g2[3][5][5];
t+=g2[3][5][7];
t-=g2[3][2][2];
t-=g2[3][2][5];
t+=g2[3][2][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[4][5][2]*t;
t=0;
t-=g2[4][5][3];
t-=g2[4][5][4];
t+=g2[4][5][7];
t-=g2[4][2][3];
t-=g2[4][2][4];
t+=g2[4][2][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t-=g2[3][5][3];
t-=g2[3][5][4];
t+=g2[3][5][7];
t-=g2[3][2][3];
t-=g2[3][2][4];
t+=g2[3][2][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[4][5][3]*t;
t=0;
t-=g2[4][5][4];
t-=g2[4][5][3];
t+=g2[4][5][7];
t-=g2[4][2][4];
t-=g2[4][2][3];
t+=g2[4][2][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t-=g2[3][5][4];
t-=g2[3][5][3];
t+=g2[3][5][7];
t-=g2[3][2][4];
t-=g2[3][2][3];
t+=g2[3][2][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[4][5][4]*t;
t=0;
t-=g2[4][5][5];
t-=g2[4][5][2];
t+=g2[4][5][7];
t-=g2[4][2][5];
t-=g2[4][2][2];
t+=g2[4][2][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t-=g2[3][5][5];
t-=g2[3][5][2];
t+=g2[3][5][7];
t-=g2[3][2][5];
t-=g2[3][2][2];
t+=g2[3][2][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[4][5][5]*t;
t=0;
t-=g2[4][5][6];
t-=g2[4][5][1];
t+=g2[4][5][7];
t-=g2[4][2][6];
t-=g2[4][2][1];
t+=g2[4][2][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t-=g2[3][5][6];
t-=g2[3][5][1];
t+=g2[3][5][7];
t-=g2[3][2][6];
t-=g2[3][2][1];
t+=g2[3][2][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[4][5][6]*t;
t=0;
t-=g2[4][6][0];
t+=g2[4][6][7];
t-=g2[4][1][0];
t+=g2[4][1][7];
t+=g2[4][7][0];
t-=g2[4][7][7];
t-=g2[3][6][0];
t+=g2[3][6][7];
t-=g2[3][1][0];
t+=g2[3][1][7];
t+=g2[3][7][0];
t-=g2[3][7][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[4][6][0]*t;
t=0;
t-=g2[4][6][1];
t-=g2[4][6][6];
t+=g2[4][6][7];
t-=g2[4][1][1];
t-=g2[4][1][6];
t+=g2[4][1][7];
t+=g2[4][7][1];
t+=g2[4][7][6];
t-=g2[4][7][7];
t-=g2[3][6][1];
t-=g2[3][6][6];
t+=g2[3][6][7];
t-=g2[3][1][1];
t-=g2[3][1][6];
t+=g2[3][1][7];
t+=g2[3][7][1];
t+=g2[3][7][6];
t-=g2[3][7][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[4][6][1]*t;
t=0;
t-=g2[4][6][2];
t-=g2[4][6][5];
t+=g2[4][6][7];
t-=g2[4][1][2];
t-=g2[4][1][5];
t+=g2[4][1][7];
t+=g2[4][7][2];
t+=g2[4][7][5];
t-=g2[4][7][7];
t-=g2[3][6][2];
t-=g2[3][6][5];
t+=g2[3][6][7];
t-=g2[3][1][2];
t-=g2[3][1][5];
t+=g2[3][1][7];
t+=g2[3][7][2];
t+=g2[3][7][5];
t-=g2[3][7][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[4][6][2]*t;
t=0;
t-=g2[4][6][3];
t-=g2[4][6][4];
t+=g2[4][6][7];
t-=g2[4][1][3];
t-=g2[4][1][4];
t+=g2[4][1][7];
t+=g2[4][7][3];
t+=g2[4][7][4];
t-=g2[4][7][7];
t-=g2[3][6][3];
t-=g2[3][6][4];
t+=g2[3][6][7];
t-=g2[3][1][3];
t-=g2[3][1][4];
t+=g2[3][1][7];
t+=g2[3][7][3];
t+=g2[3][7][4];
t-=g2[3][7][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[4][6][3]*t;
t=0;
t-=g2[4][6][4];
t-=g2[4][6][3];
t+=g2[4][6][7];
t-=g2[4][1][4];
t-=g2[4][1][3];
t+=g2[4][1][7];
t+=g2[4][7][4];
t+=g2[4][7][3];
t-=g2[4][7][7];
t-=g2[3][6][4];
t-=g2[3][6][3];
t+=g2[3][6][7];
t-=g2[3][1][4];
t-=g2[3][1][3];
t+=g2[3][1][7];
t+=g2[3][7][4];
t+=g2[3][7][3];
t-=g2[3][7][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[4][6][4]*t;
t=0;
t-=g2[4][6][5];
t-=g2[4][6][2];
t+=g2[4][6][7];
t-=g2[4][1][5];
t-=g2[4][1][2];
t+=g2[4][1][7];
t+=g2[4][7][5];
t+=g2[4][7][2];
t-=g2[4][7][7];
t-=g2[3][6][5];
t-=g2[3][6][2];
t+=g2[3][6][7];
t-=g2[3][1][5];
t-=g2[3][1][2];
t+=g2[3][1][7];
t+=g2[3][7][5];
t+=g2[3][7][2];
t-=g2[3][7][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[4][6][5]*t;
t=0;
t-=g2[4][6][6];
t-=g2[4][6][1];
t+=g2[4][6][7];
t-=g2[4][1][6];
t-=g2[4][1][1];
t+=g2[4][1][7];
t+=g2[4][7][6];
t+=g2[4][7][1];
t-=g2[4][7][7];
t-=g2[3][6][6];
t-=g2[3][6][1];
t+=g2[3][6][7];
t-=g2[3][1][6];
t-=g2[3][1][1];
t+=g2[3][1][7];
t+=g2[3][7][6];
t+=g2[3][7][1];
t-=g2[3][7][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[4][6][6]*t;
t=0;
t-=g2[5][0][0];
t+=g2[5][0][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t-=g2[2][0][0];
t+=g2[2][0][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t+=g2[7][0][0];
t-=g2[7][0][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[5][0][0]*t;
t=0;
t-=g2[5][0][1];
t-=g2[5][0][6];
t+=g2[5][0][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t-=g2[2][0][1];
t-=g2[2][0][6];
t+=g2[2][0][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t+=g2[7][0][1];
t+=g2[7][0][6];
t-=g2[7][0][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[5][0][1]*t;
t=0;
t-=g2[5][0][2];
t-=g2[5][0][5];
t+=g2[5][0][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t-=g2[2][0][2];
t-=g2[2][0][5];
t+=g2[2][0][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t+=g2[7][0][2];
t+=g2[7][0][5];
t-=g2[7][0][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[5][0][2]*t;
t=0;
t-=g2[5][0][3];
t-=g2[5][0][4];
t+=g2[5][0][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t-=g2[2][0][3];
t-=g2[2][0][4];
t+=g2[2][0][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t+=g2[7][0][3];
t+=g2[7][0][4];
t-=g2[7][0][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[5][0][3]*t;
t=0;
t-=g2[5][0][4];
t-=g2[5][0][3];
t+=g2[5][0][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t-=g2[2][0][4];
t-=g2[2][0][3];
t+=g2[2][0][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t+=g2[7][0][4];
t+=g2[7][0][3];
t-=g2[7][0][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[5][0][4]*t;
t=0;
t-=g2[5][0][5];
t-=g2[5][0][2];
t+=g2[5][0][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t-=g2[2][0][5];
t-=g2[2][0][2];
t+=g2[2][0][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t+=g2[7][0][5];
t+=g2[7][0][2];
t-=g2[7][0][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[5][0][5]*t;
t=0;
t-=g2[5][0][6];
t-=g2[5][0][1];
t+=g2[5][0][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t-=g2[2][0][6];
t-=g2[2][0][1];
t+=g2[2][0][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t+=g2[7][0][6];
t+=g2[7][0][1];
t-=g2[7][0][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[5][0][6]*t;
t=0;
t-=g2[5][1][0];
t+=g2[5][1][7];
t-=g2[5][6][0];
t+=g2[5][6][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t-=g2[2][1][0];
t+=g2[2][1][7];
t-=g2[2][6][0];
t+=g2[2][6][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[5][1][0]*t;
t=0;
t-=g2[5][1][1];
t-=g2[5][1][6];
t+=g2[5][1][7];
t-=g2[5][6][1];
t-=g2[5][6][6];
t+=g2[5][6][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t-=g2[2][1][1];
t-=g2[2][1][6];
t+=g2[2][1][7];
t-=g2[2][6][1];
t-=g2[2][6][6];
t+=g2[2][6][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[5][1][1]*t;
t=0;
t-=g2[5][1][2];
t-=g2[5][1][5];
t+=g2[5][1][7];
t-=g2[5][6][2];
t-=g2[5][6][5];
t+=g2[5][6][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t-=g2[2][1][2];
t-=g2[2][1][5];
t+=g2[2][1][7];
t-=g2[2][6][2];
t-=g2[2][6][5];
t+=g2[2][6][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[5][1][2]*t;
t=0;
t-=g2[5][1][3];
t-=g2[5][1][4];
t+=g2[5][1][7];
t-=g2[5][6][3];
t-=g2[5][6][4];
t+=g2[5][6][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t-=g2[2][1][3];
t-=g2[2][1][4];
t+=g2[2][1][7];
t-=g2[2][6][3];
t-=g2[2][6][4];
t+=g2[2][6][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[5][1][3]*t;
t=0;
t-=g2[5][1][4];
t-=g2[5][1][3];
t+=g2[5][1][7];
t-=g2[5][6][4];
t-=g2[5][6][3];
t+=g2[5][6][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t-=g2[2][1][4];
t-=g2[2][1][3];
t+=g2[2][1][7];
t-=g2[2][6][4];
t-=g2[2][6][3];
t+=g2[2][6][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[5][1][4]*t;
t=0;
t-=g2[5][1][5];
t-=g2[5][1][2];
t+=g2[5][1][7];
t-=g2[5][6][5];
t-=g2[5][6][2];
t+=g2[5][6][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t-=g2[2][1][5];
t-=g2[2][1][2];
t+=g2[2][1][7];
t-=g2[2][6][5];
t-=g2[2][6][2];
t+=g2[2][6][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[5][1][5]*t;
t=0;
t-=g2[5][1][6];
t-=g2[5][1][1];
t+=g2[5][1][7];
t-=g2[5][6][6];
t-=g2[5][6][1];
t+=g2[5][6][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t-=g2[2][1][6];
t-=g2[2][1][1];
t+=g2[2][1][7];
t-=g2[2][6][6];
t-=g2[2][6][1];
t+=g2[2][6][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[5][1][6]*t;
t=0;
t-=g2[5][2][0];
t+=g2[5][2][7];
t-=g2[5][5][0];
t+=g2[5][5][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t-=g2[2][2][0];
t+=g2[2][2][7];
t-=g2[2][5][0];
t+=g2[2][5][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[5][2][0]*t;
t=0;
t-=g2[5][2][1];
t-=g2[5][2][6];
t+=g2[5][2][7];
t-=g2[5][5][1];
t-=g2[5][5][6];
t+=g2[5][5][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t-=g2[2][2][1];
t-=g2[2][2][6];
t+=g2[2][2][7];
t-=g2[2][5][1];
t-=g2[2][5][6];
t+=g2[2][5][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[5][2][1]*t;
t=0;
t-=g2[5][2][2];
t-=g2[5][2][5];
t+=g2[5][2][7];
t-=g2[5][5][2];
t-=g2[5][5][5];
t+=g2[5][5][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t-=g2[2][2][2];
t-=g2[2][2][5];
t+=g2[2][2][7];
t-=g2[2][5][2];
t-=g2[2][5][5];
t+=g2[2][5][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[5][2][2]*t;
t=0;
t-=g2[5][2][3];
t-=g2[5][2][4];
t+=g2[5][2][7];
t-=g2[5][5][3];
t-=g2[5][5][4];
t+=g2[5][5][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t-=g2[2][2][3];
t-=g2[2][2][4];
t+=g2[2][2][7];
t-=g2[2][5][3];
t-=g2[2][5][4];
t+=g2[2][5][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[5][2][3]*t;
t=0;
t-=g2[5][2][4];
t-=g2[5][2][3];
t+=g2[5][2][7];
t-=g2[5][5][4];
t-=g2[5][5][3];
t+=g2[5][5][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t-=g2[2][2][4];
t-=g2[2][2][3];
t+=g2[2][2][7];
t-=g2[2][5][4];
t-=g2[2][5][3];
t+=g2[2][5][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[5][2][4]*t;
t=0;
t-=g2[5][2][5];
t-=g2[5][2][2];
t+=g2[5][2][7];
t-=g2[5][5][5];
t-=g2[5][5][2];
t+=g2[5][5][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t-=g2[2][2][5];
t-=g2[2][2][2];
t+=g2[2][2][7];
t-=g2[2][5][5];
t-=g2[2][5][2];
t+=g2[2][5][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[5][2][5]*t;
t=0;
t-=g2[5][2][6];
t-=g2[5][2][1];
t+=g2[5][2][7];
t-=g2[5][5][6];
t-=g2[5][5][1];
t+=g2[5][5][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t-=g2[2][2][6];
t-=g2[2][2][1];
t+=g2[2][2][7];
t-=g2[2][5][6];
t-=g2[2][5][1];
t+=g2[2][5][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[5][2][6]*t;
t=0;
t-=g2[5][3][0];
t+=g2[5][3][7];
t-=g2[5][4][0];
t+=g2[5][4][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t-=g2[2][3][0];
t+=g2[2][3][7];
t-=g2[2][4][0];
t+=g2[2][4][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[5][3][0]*t;
t=0;
t-=g2[5][3][1];
t-=g2[5][3][6];
t+=g2[5][3][7];
t-=g2[5][4][1];
t-=g2[5][4][6];
t+=g2[5][4][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t-=g2[2][3][1];
t-=g2[2][3][6];
t+=g2[2][3][7];
t-=g2[2][4][1];
t-=g2[2][4][6];
t+=g2[2][4][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[5][3][1]*t;
t=0;
t-=g2[5][3][2];
t-=g2[5][3][5];
t+=g2[5][3][7];
t-=g2[5][4][2];
t-=g2[5][4][5];
t+=g2[5][4][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t-=g2[2][3][2];
t-=g2[2][3][5];
t+=g2[2][3][7];
t-=g2[2][4][2];
t-=g2[2][4][5];
t+=g2[2][4][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[5][3][2]*t;
t=0;
t-=g2[5][3][3];
t-=g2[5][3][4];
t+=g2[5][3][7];
t-=g2[5][4][3];
t-=g2[5][4][4];
t+=g2[5][4][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t-=g2[2][3][3];
t-=g2[2][3][4];
t+=g2[2][3][7];
t-=g2[2][4][3];
t-=g2[2][4][4];
t+=g2[2][4][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[5][3][3]*t;
t=0;
t-=g2[5][3][4];
t-=g2[5][3][3];
t+=g2[5][3][7];
t-=g2[5][4][4];
t-=g2[5][4][3];
t+=g2[5][4][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t-=g2[2][3][4];
t-=g2[2][3][3];
t+=g2[2][3][7];
t-=g2[2][4][4];
t-=g2[2][4][3];
t+=g2[2][4][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[5][3][4]*t;
t=0;
t-=g2[5][3][5];
t-=g2[5][3][2];
t+=g2[5][3][7];
t-=g2[5][4][5];
t-=g2[5][4][2];
t+=g2[5][4][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t-=g2[2][3][5];
t-=g2[2][3][2];
t+=g2[2][3][7];
t-=g2[2][4][5];
t-=g2[2][4][2];
t+=g2[2][4][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[5][3][5]*t;
t=0;
t-=g2[5][3][6];
t-=g2[5][3][1];
t+=g2[5][3][7];
t-=g2[5][4][6];
t-=g2[5][4][1];
t+=g2[5][4][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t-=g2[2][3][6];
t-=g2[2][3][1];
t+=g2[2][3][7];
t-=g2[2][4][6];
t-=g2[2][4][1];
t+=g2[2][4][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[5][3][6]*t;
t=0;
t-=g2[5][4][0];
t+=g2[5][4][7];
t-=g2[5][3][0];
t+=g2[5][3][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t-=g2[2][4][0];
t+=g2[2][4][7];
t-=g2[2][3][0];
t+=g2[2][3][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[5][4][0]*t;
t=0;
t-=g2[5][4][1];
t-=g2[5][4][6];
t+=g2[5][4][7];
t-=g2[5][3][1];
t-=g2[5][3][6];
t+=g2[5][3][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t-=g2[2][4][1];
t-=g2[2][4][6];
t+=g2[2][4][7];
t-=g2[2][3][1];
t-=g2[2][3][6];
t+=g2[2][3][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[5][4][1]*t;
t=0;
t-=g2[5][4][2];
t-=g2[5][4][5];
t+=g2[5][4][7];
t-=g2[5][3][2];
t-=g2[5][3][5];
t+=g2[5][3][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t-=g2[2][4][2];
t-=g2[2][4][5];
t+=g2[2][4][7];
t-=g2[2][3][2];
t-=g2[2][3][5];
t+=g2[2][3][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[5][4][2]*t;
t=0;
t-=g2[5][4][3];
t-=g2[5][4][4];
t+=g2[5][4][7];
t-=g2[5][3][3];
t-=g2[5][3][4];
t+=g2[5][3][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t-=g2[2][4][3];
t-=g2[2][4][4];
t+=g2[2][4][7];
t-=g2[2][3][3];
t-=g2[2][3][4];
t+=g2[2][3][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[5][4][3]*t;
t=0;
t-=g2[5][4][4];
t-=g2[5][4][3];
t+=g2[5][4][7];
t-=g2[5][3][4];
t-=g2[5][3][3];
t+=g2[5][3][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t-=g2[2][4][4];
t-=g2[2][4][3];
t+=g2[2][4][7];
t-=g2[2][3][4];
t-=g2[2][3][3];
t+=g2[2][3][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[5][4][4]*t;
t=0;
t-=g2[5][4][5];
t-=g2[5][4][2];
t+=g2[5][4][7];
t-=g2[5][3][5];
t-=g2[5][3][2];
t+=g2[5][3][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t-=g2[2][4][5];
t-=g2[2][4][2];
t+=g2[2][4][7];
t-=g2[2][3][5];
t-=g2[2][3][2];
t+=g2[2][3][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[5][4][5]*t;
t=0;
t-=g2[5][4][6];
t-=g2[5][4][1];
t+=g2[5][4][7];
t-=g2[5][3][6];
t-=g2[5][3][1];
t+=g2[5][3][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t-=g2[2][4][6];
t-=g2[2][4][1];
t+=g2[2][4][7];
t-=g2[2][3][6];
t-=g2[2][3][1];
t+=g2[2][3][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[5][4][6]*t;
t=0;
t-=g2[5][5][0];
t+=g2[5][5][7];
t-=g2[5][2][0];
t+=g2[5][2][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t-=g2[2][5][0];
t+=g2[2][5][7];
t-=g2[2][2][0];
t+=g2[2][2][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[5][5][0]*t;
t=0;
t-=g2[5][5][1];
t-=g2[5][5][6];
t+=g2[5][5][7];
t-=g2[5][2][1];
t-=g2[5][2][6];
t+=g2[5][2][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t-=g2[2][5][1];
t-=g2[2][5][6];
t+=g2[2][5][7];
t-=g2[2][2][1];
t-=g2[2][2][6];
t+=g2[2][2][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[5][5][1]*t;
t=0;
t-=g2[5][5][2];
t-=g2[5][5][5];
t+=g2[5][5][7];
t-=g2[5][2][2];
t-=g2[5][2][5];
t+=g2[5][2][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t-=g2[2][5][2];
t-=g2[2][5][5];
t+=g2[2][5][7];
t-=g2[2][2][2];
t-=g2[2][2][5];
t+=g2[2][2][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[5][5][2]*t;
t=0;
t-=g2[5][5][3];
t-=g2[5][5][4];
t+=g2[5][5][7];
t-=g2[5][2][3];
t-=g2[5][2][4];
t+=g2[5][2][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t-=g2[2][5][3];
t-=g2[2][5][4];
t+=g2[2][5][7];
t-=g2[2][2][3];
t-=g2[2][2][4];
t+=g2[2][2][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[5][5][3]*t;
t=0;
t-=g2[5][5][4];
t-=g2[5][5][3];
t+=g2[5][5][7];
t-=g2[5][2][4];
t-=g2[5][2][3];
t+=g2[5][2][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t-=g2[2][5][4];
t-=g2[2][5][3];
t+=g2[2][5][7];
t-=g2[2][2][4];
t-=g2[2][2][3];
t+=g2[2][2][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[5][5][4]*t;
t=0;
t-=g2[5][5][5];
t-=g2[5][5][2];
t+=g2[5][5][7];
t-=g2[5][2][5];
t-=g2[5][2][2];
t+=g2[5][2][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t-=g2[2][5][5];
t-=g2[2][5][2];
t+=g2[2][5][7];
t-=g2[2][2][5];
t-=g2[2][2][2];
t+=g2[2][2][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[5][5][5]*t;
t=0;
t-=g2[5][5][6];
t-=g2[5][5][1];
t+=g2[5][5][7];
t-=g2[5][2][6];
t-=g2[5][2][1];
t+=g2[5][2][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t-=g2[2][5][6];
t-=g2[2][5][1];
t+=g2[2][5][7];
t-=g2[2][2][6];
t-=g2[2][2][1];
t+=g2[2][2][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[5][5][6]*t;
t=0;
t-=g2[5][6][0];
t+=g2[5][6][7];
t-=g2[5][1][0];
t+=g2[5][1][7];
t+=g2[5][7][0];
t-=g2[5][7][7];
t-=g2[2][6][0];
t+=g2[2][6][7];
t-=g2[2][1][0];
t+=g2[2][1][7];
t+=g2[2][7][0];
t-=g2[2][7][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[5][6][0]*t;
t=0;
t-=g2[5][6][1];
t-=g2[5][6][6];
t+=g2[5][6][7];
t-=g2[5][1][1];
t-=g2[5][1][6];
t+=g2[5][1][7];
t+=g2[5][7][1];
t+=g2[5][7][6];
t-=g2[5][7][7];
t-=g2[2][6][1];
t-=g2[2][6][6];
t+=g2[2][6][7];
t-=g2[2][1][1];
t-=g2[2][1][6];
t+=g2[2][1][7];
t+=g2[2][7][1];
t+=g2[2][7][6];
t-=g2[2][7][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[5][6][1]*t;
t=0;
t-=g2[5][6][2];
t-=g2[5][6][5];
t+=g2[5][6][7];
t-=g2[5][1][2];
t-=g2[5][1][5];
t+=g2[5][1][7];
t+=g2[5][7][2];
t+=g2[5][7][5];
t-=g2[5][7][7];
t-=g2[2][6][2];
t-=g2[2][6][5];
t+=g2[2][6][7];
t-=g2[2][1][2];
t-=g2[2][1][5];
t+=g2[2][1][7];
t+=g2[2][7][2];
t+=g2[2][7][5];
t-=g2[2][7][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[5][6][2]*t;
t=0;
t-=g2[5][6][3];
t-=g2[5][6][4];
t+=g2[5][6][7];
t-=g2[5][1][3];
t-=g2[5][1][4];
t+=g2[5][1][7];
t+=g2[5][7][3];
t+=g2[5][7][4];
t-=g2[5][7][7];
t-=g2[2][6][3];
t-=g2[2][6][4];
t+=g2[2][6][7];
t-=g2[2][1][3];
t-=g2[2][1][4];
t+=g2[2][1][7];
t+=g2[2][7][3];
t+=g2[2][7][4];
t-=g2[2][7][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[5][6][3]*t;
t=0;
t-=g2[5][6][4];
t-=g2[5][6][3];
t+=g2[5][6][7];
t-=g2[5][1][4];
t-=g2[5][1][3];
t+=g2[5][1][7];
t+=g2[5][7][4];
t+=g2[5][7][3];
t-=g2[5][7][7];
t-=g2[2][6][4];
t-=g2[2][6][3];
t+=g2[2][6][7];
t-=g2[2][1][4];
t-=g2[2][1][3];
t+=g2[2][1][7];
t+=g2[2][7][4];
t+=g2[2][7][3];
t-=g2[2][7][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[5][6][4]*t;
t=0;
t-=g2[5][6][5];
t-=g2[5][6][2];
t+=g2[5][6][7];
t-=g2[5][1][5];
t-=g2[5][1][2];
t+=g2[5][1][7];
t+=g2[5][7][5];
t+=g2[5][7][2];
t-=g2[5][7][7];
t-=g2[2][6][5];
t-=g2[2][6][2];
t+=g2[2][6][7];
t-=g2[2][1][5];
t-=g2[2][1][2];
t+=g2[2][1][7];
t+=g2[2][7][5];
t+=g2[2][7][2];
t-=g2[2][7][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[5][6][5]*t;
t=0;
t-=g2[5][6][6];
t-=g2[5][6][1];
t+=g2[5][6][7];
t-=g2[5][1][6];
t-=g2[5][1][1];
t+=g2[5][1][7];
t+=g2[5][7][6];
t+=g2[5][7][1];
t-=g2[5][7][7];
t-=g2[2][6][6];
t-=g2[2][6][1];
t+=g2[2][6][7];
t-=g2[2][1][6];
t-=g2[2][1][1];
t+=g2[2][1][7];
t+=g2[2][7][6];
t+=g2[2][7][1];
t-=g2[2][7][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[5][6][6]*t;
t=0;
t-=g2[6][0][0];
t+=g2[6][0][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t-=g2[1][0][0];
t+=g2[1][0][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t+=g2[7][0][0];
t-=g2[7][0][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[6][0][0]*t;
t=0;
t-=g2[6][0][1];
t-=g2[6][0][6];
t+=g2[6][0][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t-=g2[1][0][1];
t-=g2[1][0][6];
t+=g2[1][0][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t+=g2[7][0][1];
t+=g2[7][0][6];
t-=g2[7][0][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[6][0][1]*t;
t=0;
t-=g2[6][0][2];
t-=g2[6][0][5];
t+=g2[6][0][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t-=g2[1][0][2];
t-=g2[1][0][5];
t+=g2[1][0][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t+=g2[7][0][2];
t+=g2[7][0][5];
t-=g2[7][0][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[6][0][2]*t;
t=0;
t-=g2[6][0][3];
t-=g2[6][0][4];
t+=g2[6][0][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t-=g2[1][0][3];
t-=g2[1][0][4];
t+=g2[1][0][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t+=g2[7][0][3];
t+=g2[7][0][4];
t-=g2[7][0][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[6][0][3]*t;
t=0;
t-=g2[6][0][4];
t-=g2[6][0][3];
t+=g2[6][0][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t-=g2[1][0][4];
t-=g2[1][0][3];
t+=g2[1][0][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t+=g2[7][0][4];
t+=g2[7][0][3];
t-=g2[7][0][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[6][0][4]*t;
t=0;
t-=g2[6][0][5];
t-=g2[6][0][2];
t+=g2[6][0][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t-=g2[1][0][5];
t-=g2[1][0][2];
t+=g2[1][0][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t+=g2[7][0][5];
t+=g2[7][0][2];
t-=g2[7][0][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[6][0][5]*t;
t=0;
t-=g2[6][0][6];
t-=g2[6][0][1];
t+=g2[6][0][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t-=g2[1][0][6];
t-=g2[1][0][1];
t+=g2[1][0][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t+=g2[7][0][6];
t+=g2[7][0][1];
t-=g2[7][0][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[6][0][6]*t;
t=0;
t-=g2[6][1][0];
t+=g2[6][1][7];
t-=g2[6][6][0];
t+=g2[6][6][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t-=g2[1][1][0];
t+=g2[1][1][7];
t-=g2[1][6][0];
t+=g2[1][6][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[6][1][0]*t;
t=0;
t-=g2[6][1][1];
t-=g2[6][1][6];
t+=g2[6][1][7];
t-=g2[6][6][1];
t-=g2[6][6][6];
t+=g2[6][6][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t-=g2[1][1][1];
t-=g2[1][1][6];
t+=g2[1][1][7];
t-=g2[1][6][1];
t-=g2[1][6][6];
t+=g2[1][6][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[6][1][1]*t;
t=0;
t-=g2[6][1][2];
t-=g2[6][1][5];
t+=g2[6][1][7];
t-=g2[6][6][2];
t-=g2[6][6][5];
t+=g2[6][6][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t-=g2[1][1][2];
t-=g2[1][1][5];
t+=g2[1][1][7];
t-=g2[1][6][2];
t-=g2[1][6][5];
t+=g2[1][6][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[6][1][2]*t;
t=0;
t-=g2[6][1][3];
t-=g2[6][1][4];
t+=g2[6][1][7];
t-=g2[6][6][3];
t-=g2[6][6][4];
t+=g2[6][6][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t-=g2[1][1][3];
t-=g2[1][1][4];
t+=g2[1][1][7];
t-=g2[1][6][3];
t-=g2[1][6][4];
t+=g2[1][6][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[6][1][3]*t;
t=0;
t-=g2[6][1][4];
t-=g2[6][1][3];
t+=g2[6][1][7];
t-=g2[6][6][4];
t-=g2[6][6][3];
t+=g2[6][6][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t-=g2[1][1][4];
t-=g2[1][1][3];
t+=g2[1][1][7];
t-=g2[1][6][4];
t-=g2[1][6][3];
t+=g2[1][6][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[6][1][4]*t;
t=0;
t-=g2[6][1][5];
t-=g2[6][1][2];
t+=g2[6][1][7];
t-=g2[6][6][5];
t-=g2[6][6][2];
t+=g2[6][6][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t-=g2[1][1][5];
t-=g2[1][1][2];
t+=g2[1][1][7];
t-=g2[1][6][5];
t-=g2[1][6][2];
t+=g2[1][6][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[6][1][5]*t;
t=0;
t-=g2[6][1][6];
t-=g2[6][1][1];
t+=g2[6][1][7];
t-=g2[6][6][6];
t-=g2[6][6][1];
t+=g2[6][6][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t-=g2[1][1][6];
t-=g2[1][1][1];
t+=g2[1][1][7];
t-=g2[1][6][6];
t-=g2[1][6][1];
t+=g2[1][6][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[6][1][6]*t;
t=0;
t-=g2[6][2][0];
t+=g2[6][2][7];
t-=g2[6][5][0];
t+=g2[6][5][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t-=g2[1][2][0];
t+=g2[1][2][7];
t-=g2[1][5][0];
t+=g2[1][5][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[6][2][0]*t;
t=0;
t-=g2[6][2][1];
t-=g2[6][2][6];
t+=g2[6][2][7];
t-=g2[6][5][1];
t-=g2[6][5][6];
t+=g2[6][5][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t-=g2[1][2][1];
t-=g2[1][2][6];
t+=g2[1][2][7];
t-=g2[1][5][1];
t-=g2[1][5][6];
t+=g2[1][5][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[6][2][1]*t;
t=0;
t-=g2[6][2][2];
t-=g2[6][2][5];
t+=g2[6][2][7];
t-=g2[6][5][2];
t-=g2[6][5][5];
t+=g2[6][5][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t-=g2[1][2][2];
t-=g2[1][2][5];
t+=g2[1][2][7];
t-=g2[1][5][2];
t-=g2[1][5][5];
t+=g2[1][5][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[6][2][2]*t;
t=0;
t-=g2[6][2][3];
t-=g2[6][2][4];
t+=g2[6][2][7];
t-=g2[6][5][3];
t-=g2[6][5][4];
t+=g2[6][5][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t-=g2[1][2][3];
t-=g2[1][2][4];
t+=g2[1][2][7];
t-=g2[1][5][3];
t-=g2[1][5][4];
t+=g2[1][5][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[6][2][3]*t;
t=0;
t-=g2[6][2][4];
t-=g2[6][2][3];
t+=g2[6][2][7];
t-=g2[6][5][4];
t-=g2[6][5][3];
t+=g2[6][5][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t-=g2[1][2][4];
t-=g2[1][2][3];
t+=g2[1][2][7];
t-=g2[1][5][4];
t-=g2[1][5][3];
t+=g2[1][5][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[6][2][4]*t;
t=0;
t-=g2[6][2][5];
t-=g2[6][2][2];
t+=g2[6][2][7];
t-=g2[6][5][5];
t-=g2[6][5][2];
t+=g2[6][5][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t-=g2[1][2][5];
t-=g2[1][2][2];
t+=g2[1][2][7];
t-=g2[1][5][5];
t-=g2[1][5][2];
t+=g2[1][5][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[6][2][5]*t;
t=0;
t-=g2[6][2][6];
t-=g2[6][2][1];
t+=g2[6][2][7];
t-=g2[6][5][6];
t-=g2[6][5][1];
t+=g2[6][5][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t-=g2[1][2][6];
t-=g2[1][2][1];
t+=g2[1][2][7];
t-=g2[1][5][6];
t-=g2[1][5][1];
t+=g2[1][5][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[6][2][6]*t;
t=0;
t-=g2[6][3][0];
t+=g2[6][3][7];
t-=g2[6][4][0];
t+=g2[6][4][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t-=g2[1][3][0];
t+=g2[1][3][7];
t-=g2[1][4][0];
t+=g2[1][4][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[6][3][0]*t;
t=0;
t-=g2[6][3][1];
t-=g2[6][3][6];
t+=g2[6][3][7];
t-=g2[6][4][1];
t-=g2[6][4][6];
t+=g2[6][4][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t-=g2[1][3][1];
t-=g2[1][3][6];
t+=g2[1][3][7];
t-=g2[1][4][1];
t-=g2[1][4][6];
t+=g2[1][4][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[6][3][1]*t;
t=0;
t-=g2[6][3][2];
t-=g2[6][3][5];
t+=g2[6][3][7];
t-=g2[6][4][2];
t-=g2[6][4][5];
t+=g2[6][4][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t-=g2[1][3][2];
t-=g2[1][3][5];
t+=g2[1][3][7];
t-=g2[1][4][2];
t-=g2[1][4][5];
t+=g2[1][4][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[6][3][2]*t;
t=0;
t-=g2[6][3][3];
t-=g2[6][3][4];
t+=g2[6][3][7];
t-=g2[6][4][3];
t-=g2[6][4][4];
t+=g2[6][4][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t-=g2[1][3][3];
t-=g2[1][3][4];
t+=g2[1][3][7];
t-=g2[1][4][3];
t-=g2[1][4][4];
t+=g2[1][4][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[6][3][3]*t;
t=0;
t-=g2[6][3][4];
t-=g2[6][3][3];
t+=g2[6][3][7];
t-=g2[6][4][4];
t-=g2[6][4][3];
t+=g2[6][4][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t-=g2[1][3][4];
t-=g2[1][3][3];
t+=g2[1][3][7];
t-=g2[1][4][4];
t-=g2[1][4][3];
t+=g2[1][4][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[6][3][4]*t;
t=0;
t-=g2[6][3][5];
t-=g2[6][3][2];
t+=g2[6][3][7];
t-=g2[6][4][5];
t-=g2[6][4][2];
t+=g2[6][4][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t-=g2[1][3][5];
t-=g2[1][3][2];
t+=g2[1][3][7];
t-=g2[1][4][5];
t-=g2[1][4][2];
t+=g2[1][4][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[6][3][5]*t;
t=0;
t-=g2[6][3][6];
t-=g2[6][3][1];
t+=g2[6][3][7];
t-=g2[6][4][6];
t-=g2[6][4][1];
t+=g2[6][4][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t-=g2[1][3][6];
t-=g2[1][3][1];
t+=g2[1][3][7];
t-=g2[1][4][6];
t-=g2[1][4][1];
t+=g2[1][4][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[6][3][6]*t;
t=0;
t-=g2[6][4][0];
t+=g2[6][4][7];
t-=g2[6][3][0];
t+=g2[6][3][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t-=g2[1][4][0];
t+=g2[1][4][7];
t-=g2[1][3][0];
t+=g2[1][3][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t+=g2[7][4][0];
t-=g2[7][4][7];
t+=g2[7][3][0];
t-=g2[7][3][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[6][4][0]*t;
t=0;
t-=g2[6][4][1];
t-=g2[6][4][6];
t+=g2[6][4][7];
t-=g2[6][3][1];
t-=g2[6][3][6];
t+=g2[6][3][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t-=g2[1][4][1];
t-=g2[1][4][6];
t+=g2[1][4][7];
t-=g2[1][3][1];
t-=g2[1][3][6];
t+=g2[1][3][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t+=g2[7][4][1];
t+=g2[7][4][6];
t-=g2[7][4][7];
t+=g2[7][3][1];
t+=g2[7][3][6];
t-=g2[7][3][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[6][4][1]*t;
t=0;
t-=g2[6][4][2];
t-=g2[6][4][5];
t+=g2[6][4][7];
t-=g2[6][3][2];
t-=g2[6][3][5];
t+=g2[6][3][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t-=g2[1][4][2];
t-=g2[1][4][5];
t+=g2[1][4][7];
t-=g2[1][3][2];
t-=g2[1][3][5];
t+=g2[1][3][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t+=g2[7][4][2];
t+=g2[7][4][5];
t-=g2[7][4][7];
t+=g2[7][3][2];
t+=g2[7][3][5];
t-=g2[7][3][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[6][4][2]*t;
t=0;
t-=g2[6][4][3];
t-=g2[6][4][4];
t+=g2[6][4][7];
t-=g2[6][3][3];
t-=g2[6][3][4];
t+=g2[6][3][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t-=g2[1][4][3];
t-=g2[1][4][4];
t+=g2[1][4][7];
t-=g2[1][3][3];
t-=g2[1][3][4];
t+=g2[1][3][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t+=g2[7][4][3];
t+=g2[7][4][4];
t-=g2[7][4][7];
t+=g2[7][3][3];
t+=g2[7][3][4];
t-=g2[7][3][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[6][4][3]*t;
t=0;
t-=g2[6][4][4];
t-=g2[6][4][3];
t+=g2[6][4][7];
t-=g2[6][3][4];
t-=g2[6][3][3];
t+=g2[6][3][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t-=g2[1][4][4];
t-=g2[1][4][3];
t+=g2[1][4][7];
t-=g2[1][3][4];
t-=g2[1][3][3];
t+=g2[1][3][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t+=g2[7][4][4];
t+=g2[7][4][3];
t-=g2[7][4][7];
t+=g2[7][3][4];
t+=g2[7][3][3];
t-=g2[7][3][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[6][4][4]*t;
t=0;
t-=g2[6][4][5];
t-=g2[6][4][2];
t+=g2[6][4][7];
t-=g2[6][3][5];
t-=g2[6][3][2];
t+=g2[6][3][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t-=g2[1][4][5];
t-=g2[1][4][2];
t+=g2[1][4][7];
t-=g2[1][3][5];
t-=g2[1][3][2];
t+=g2[1][3][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t+=g2[7][4][5];
t+=g2[7][4][2];
t-=g2[7][4][7];
t+=g2[7][3][5];
t+=g2[7][3][2];
t-=g2[7][3][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[6][4][5]*t;
t=0;
t-=g2[6][4][6];
t-=g2[6][4][1];
t+=g2[6][4][7];
t-=g2[6][3][6];
t-=g2[6][3][1];
t+=g2[6][3][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t-=g2[1][4][6];
t-=g2[1][4][1];
t+=g2[1][4][7];
t-=g2[1][3][6];
t-=g2[1][3][1];
t+=g2[1][3][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t+=g2[7][4][6];
t+=g2[7][4][1];
t-=g2[7][4][7];
t+=g2[7][3][6];
t+=g2[7][3][1];
t-=g2[7][3][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[6][4][6]*t;
t=0;
t-=g2[6][5][0];
t+=g2[6][5][7];
t-=g2[6][2][0];
t+=g2[6][2][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t-=g2[1][5][0];
t+=g2[1][5][7];
t-=g2[1][2][0];
t+=g2[1][2][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t+=g2[7][5][0];
t-=g2[7][5][7];
t+=g2[7][2][0];
t-=g2[7][2][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[6][5][0]*t;
t=0;
t-=g2[6][5][1];
t-=g2[6][5][6];
t+=g2[6][5][7];
t-=g2[6][2][1];
t-=g2[6][2][6];
t+=g2[6][2][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t-=g2[1][5][1];
t-=g2[1][5][6];
t+=g2[1][5][7];
t-=g2[1][2][1];
t-=g2[1][2][6];
t+=g2[1][2][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t+=g2[7][5][1];
t+=g2[7][5][6];
t-=g2[7][5][7];
t+=g2[7][2][1];
t+=g2[7][2][6];
t-=g2[7][2][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[6][5][1]*t;
t=0;
t-=g2[6][5][2];
t-=g2[6][5][5];
t+=g2[6][5][7];
t-=g2[6][2][2];
t-=g2[6][2][5];
t+=g2[6][2][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t-=g2[1][5][2];
t-=g2[1][5][5];
t+=g2[1][5][7];
t-=g2[1][2][2];
t-=g2[1][2][5];
t+=g2[1][2][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t+=g2[7][5][2];
t+=g2[7][5][5];
t-=g2[7][5][7];
t+=g2[7][2][2];
t+=g2[7][2][5];
t-=g2[7][2][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[6][5][2]*t;
t=0;
t-=g2[6][5][3];
t-=g2[6][5][4];
t+=g2[6][5][7];
t-=g2[6][2][3];
t-=g2[6][2][4];
t+=g2[6][2][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t-=g2[1][5][3];
t-=g2[1][5][4];
t+=g2[1][5][7];
t-=g2[1][2][3];
t-=g2[1][2][4];
t+=g2[1][2][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t+=g2[7][5][3];
t+=g2[7][5][4];
t-=g2[7][5][7];
t+=g2[7][2][3];
t+=g2[7][2][4];
t-=g2[7][2][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[6][5][3]*t;
t=0;
t-=g2[6][5][4];
t-=g2[6][5][3];
t+=g2[6][5][7];
t-=g2[6][2][4];
t-=g2[6][2][3];
t+=g2[6][2][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t-=g2[1][5][4];
t-=g2[1][5][3];
t+=g2[1][5][7];
t-=g2[1][2][4];
t-=g2[1][2][3];
t+=g2[1][2][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t+=g2[7][5][4];
t+=g2[7][5][3];
t-=g2[7][5][7];
t+=g2[7][2][4];
t+=g2[7][2][3];
t-=g2[7][2][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[6][5][4]*t;
t=0;
t-=g2[6][5][5];
t-=g2[6][5][2];
t+=g2[6][5][7];
t-=g2[6][2][5];
t-=g2[6][2][2];
t+=g2[6][2][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t-=g2[1][5][5];
t-=g2[1][5][2];
t+=g2[1][5][7];
t-=g2[1][2][5];
t-=g2[1][2][2];
t+=g2[1][2][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t+=g2[7][5][5];
t+=g2[7][5][2];
t-=g2[7][5][7];
t+=g2[7][2][5];
t+=g2[7][2][2];
t-=g2[7][2][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[6][5][5]*t;
t=0;
t-=g2[6][5][6];
t-=g2[6][5][1];
t+=g2[6][5][7];
t-=g2[6][2][6];
t-=g2[6][2][1];
t+=g2[6][2][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t-=g2[1][5][6];
t-=g2[1][5][1];
t+=g2[1][5][7];
t-=g2[1][2][6];
t-=g2[1][2][1];
t+=g2[1][2][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t+=g2[7][5][6];
t+=g2[7][5][1];
t-=g2[7][5][7];
t+=g2[7][2][6];
t+=g2[7][2][1];
t-=g2[7][2][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[6][5][6]*t;
t=0;
t-=g2[6][6][0];
t+=g2[6][6][7];
t-=g2[6][1][0];
t+=g2[6][1][7];
t+=g2[6][7][0];
t-=g2[6][7][7];
t-=g2[1][6][0];
t+=g2[1][6][7];
t-=g2[1][1][0];
t+=g2[1][1][7];
t+=g2[1][7][0];
t-=g2[1][7][7];
t+=g2[7][6][0];
t-=g2[7][6][7];
t+=g2[7][1][0];
t-=g2[7][1][7];
t-=g2[7][7][0];
t+=g2[7][7][7];
res+=g1[6][6][0]*t;
t=0;
t-=g2[6][6][1];
t-=g2[6][6][6];
t+=g2[6][6][7];
t-=g2[6][1][1];
t-=g2[6][1][6];
t+=g2[6][1][7];
t+=g2[6][7][1];
t+=g2[6][7][6];
t-=g2[6][7][7];
t-=g2[1][6][1];
t-=g2[1][6][6];
t+=g2[1][6][7];
t-=g2[1][1][1];
t-=g2[1][1][6];
t+=g2[1][1][7];
t+=g2[1][7][1];
t+=g2[1][7][6];
t-=g2[1][7][7];
t+=g2[7][6][1];
t+=g2[7][6][6];
t-=g2[7][6][7];
t+=g2[7][1][1];
t+=g2[7][1][6];
t-=g2[7][1][7];
t-=g2[7][7][1];
t-=g2[7][7][6];
t+=g2[7][7][7];
res+=g1[6][6][1]*t;
t=0;
t-=g2[6][6][2];
t-=g2[6][6][5];
t+=g2[6][6][7];
t-=g2[6][1][2];
t-=g2[6][1][5];
t+=g2[6][1][7];
t+=g2[6][7][2];
t+=g2[6][7][5];
t-=g2[6][7][7];
t-=g2[1][6][2];
t-=g2[1][6][5];
t+=g2[1][6][7];
t-=g2[1][1][2];
t-=g2[1][1][5];
t+=g2[1][1][7];
t+=g2[1][7][2];
t+=g2[1][7][5];
t-=g2[1][7][7];
t+=g2[7][6][2];
t+=g2[7][6][5];
t-=g2[7][6][7];
t+=g2[7][1][2];
t+=g2[7][1][5];
t-=g2[7][1][7];
t-=g2[7][7][2];
t-=g2[7][7][5];
t+=g2[7][7][7];
res+=g1[6][6][2]*t;
t=0;
t-=g2[6][6][3];
t-=g2[6][6][4];
t+=g2[6][6][7];
t-=g2[6][1][3];
t-=g2[6][1][4];
t+=g2[6][1][7];
t+=g2[6][7][3];
t+=g2[6][7][4];
t-=g2[6][7][7];
t-=g2[1][6][3];
t-=g2[1][6][4];
t+=g2[1][6][7];
t-=g2[1][1][3];
t-=g2[1][1][4];
t+=g2[1][1][7];
t+=g2[1][7][3];
t+=g2[1][7][4];
t-=g2[1][7][7];
t+=g2[7][6][3];
t+=g2[7][6][4];
t-=g2[7][6][7];
t+=g2[7][1][3];
t+=g2[7][1][4];
t-=g2[7][1][7];
t-=g2[7][7][3];
t-=g2[7][7][4];
t+=g2[7][7][7];
res+=g1[6][6][3]*t;
t=0;
t-=g2[6][6][4];
t-=g2[6][6][3];
t+=g2[6][6][7];
t-=g2[6][1][4];
t-=g2[6][1][3];
t+=g2[6][1][7];
t+=g2[6][7][4];
t+=g2[6][7][3];
t-=g2[6][7][7];
t-=g2[1][6][4];
t-=g2[1][6][3];
t+=g2[1][6][7];
t-=g2[1][1][4];
t-=g2[1][1][3];
t+=g2[1][1][7];
t+=g2[1][7][4];
t+=g2[1][7][3];
t-=g2[1][7][7];
t+=g2[7][6][4];
t+=g2[7][6][3];
t-=g2[7][6][7];
t+=g2[7][1][4];
t+=g2[7][1][3];
t-=g2[7][1][7];
t-=g2[7][7][4];
t-=g2[7][7][3];
t+=g2[7][7][7];
res+=g1[6][6][4]*t;
t=0;
t-=g2[6][6][5];
t-=g2[6][6][2];
t+=g2[6][6][7];
t-=g2[6][1][5];
t-=g2[6][1][2];
t+=g2[6][1][7];
t+=g2[6][7][5];
t+=g2[6][7][2];
t-=g2[6][7][7];
t-=g2[1][6][5];
t-=g2[1][6][2];
t+=g2[1][6][7];
t-=g2[1][1][5];
t-=g2[1][1][2];
t+=g2[1][1][7];
t+=g2[1][7][5];
t+=g2[1][7][2];
t-=g2[1][7][7];
t+=g2[7][6][5];
t+=g2[7][6][2];
t-=g2[7][6][7];
t+=g2[7][1][5];
t+=g2[7][1][2];
t-=g2[7][1][7];
t-=g2[7][7][5];
t-=g2[7][7][2];
t+=g2[7][7][7];
res+=g1[6][6][5]*t;
t=0;
t-=g2[6][6][6];
t-=g2[6][6][1];
t+=g2[6][6][7];
t-=g2[6][1][6];
t-=g2[6][1][1];
t+=g2[6][1][7];
t+=g2[6][7][6];
t+=g2[6][7][1];
t-=g2[6][7][7];
t-=g2[1][6][6];
t-=g2[1][6][1];
t+=g2[1][6][7];
t-=g2[1][1][6];
t-=g2[1][1][1];
t+=g2[1][1][7];
t+=g2[1][7][6];
t+=g2[1][7][1];
t-=g2[1][7][7];
t+=g2[7][6][6];
t+=g2[7][6][1];
t-=g2[7][6][7];
t+=g2[7][1][6];
t+=g2[7][1][1];
t-=g2[7][1][7];
t-=g2[7][7][6];
t-=g2[7][7][1];
t+=g2[7][7][7];
res+=g1[6][6][6]*t;
}
void work()
{
cin>>s;
n=strlen(s);
reverse(s,s+n);
res=0;
int pp=0;
while(pp<n && s[pp]=='1')s[pp]='0',++pp;
if(pp>=n)++n,s[n-1]='1';
else s[pp]='1';
// For(i,0,n-1)cout<<s[i];puts(" s");
For(i,0,6) sum[n][i]=sum[n+1][i]=0;
Rep(i,n-1,0){
For(j,0,6) sum[i][j]=sum[i+1][j];
if(s[i]&1) sum[i][i%6]++;
}
For(i,1,n-1){
if(s[i]&1){
solve(i);
}
}
cout<<res.x<<"\n";
}
signed main()
{
For(i,0,6){
O[i]={i,7-i,7};
if(i==0)O[i]={0,7};
}
freopen("tmp.cpp","w",stdout);
For(a,0,6)For(b,0,6)For(c,0,6){
cout<<"t=0;\n";
for(int xa:O[a])for(int xb:O[b])for(int xc:O[c]){
int now=1;
if(xa!=7)now=-now;
if(xb!=7)now=-now;
if(xc!=7)now=-now;
if(now==1) cout<<"t+=";
else cout<<"t-=";
cout<<"g2["<<xa<<"]["<<xb<<"]["<<xc<<"];\n";
}
cout<<"res+=g1["<<a<<"]["<<b<<"]["<<c<<"]*t;\n";
}exit(0);
For(i,0,10000){
if(i){
For(j,0,6)cnt[i][j]=cnt[i-1][j];
}
cnt[i][i%6]+=1;
}
For(i,0,10000){
For(j,0,i){
w[i][j%7]+=C(i,j);
}
}
int T=read();
while(T--)work();
return 0;
}
/*
*/
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Dangerous Syscalls
input:
5 1 1010 110101 1000111000 101101001000