N,M,K = list(map(int,input().split()))

mod = 10**9 + 7

A = ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6
A = A*(M**2)
A %= mod
B = 1
for i in range(1,K-1):
    B *= N*M-1-i
    B %= mod
    B *= pow(i,mod-2,mod)
    B %= mod
ans1 = A*B

N,M = M,N
A = ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6
A = A*(M**2)
A %= mod
B = 1
for i in range(1,K-1):
    B *= N*M-1-i
    B %= mod
    B *= pow(i,mod-2,mod)
    B %= mod
ans2 = A*B

print((ans1+ans2)%mod) N,M,K = list(map(int,input().split())) N list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split M K mod = 10**9 + 7 mod 10**9 + 7 10**9 10 9 7 A = ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6 A ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6 ((N**2)*(N-1))//2 (N**2)*(N-1) N**2 N 2 N-1 N 1 2 (N*(2*N-1)*(N-1))//6 N*(2*N-1)*(N-1) N*(2*N-1) N 2*N-1 2*N 2 N 1 N-1 N 1 6 A = A*(M**2) A A*(M**2) A M**2 M 2 A %= mod A mod B = 1 B 1 for i in range(1,K-1):
    B *= N*M-1-i
    B %= mod
    B *= pow(i,mod-2,mod)
    B %= mod i range(1,K-1) range 1 K-1 K 1 B *= N*M-1-i B N*M-1-i N*M-1 N*M N M 1 i B %= mod B mod B *= pow(i,mod-2,mod) B pow(i,mod-2,mod) pow i mod-2 mod 2 mod B %= mod B mod ans1 = A*B ans1 A*B A B N,M = M,N N M M N A = ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6 A ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6 ((N**2)*(N-1))//2 (N**2)*(N-1) N**2 N 2 N-1 N 1 2 (N*(2*N-1)*(N-1))//6 N*(2*N-1)*(N-1) N*(2*N-1) N 2*N-1 2*N 2 N 1 N-1 N 1 6 A = A*(M**2) A A*(M**2) A M**2 M 2 A %= mod A mod B = 1 B 1 for i in range(1,K-1):
    B *= N*M-1-i
    B %= mod
    B *= pow(i,mod-2,mod)
    B %= mod i range(1,K-1) range 1 K-1 K 1 B *= N*M-1-i B N*M-1-i N*M-1 N*M N M 1 i B %= mod B mod B *= pow(i,mod-2,mod) B pow(i,mod-2,mod) pow i mod-2 mod 2 mod B %= mod B mod ans2 = A*B ans2 A*B A B print((ans1+ans2)%mod) print (ans1+ans2)%mod ans1+ans2 ans1 ans2 mod B = 1 1 B A = ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6 ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6 A B *= N*M-1-i N*M-1-i B B %= mod mod B mod = 10**9 + 7 10**9 + 7 mod M = M,N N M B = 1 1 B M,K = list(map(int,input().split())) list(map(int,input().split())) M K = list(map(int,input().split())) list(map(int,input().split())) K ans2 = A*B A*B ans2 A %= mod mod A A = A*(M**2) A*(M**2) A B *= N*M-1-i N*M-1-i B A = ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6 ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6 A A %= mod mod A B %= mod mod B B *= pow(i,mod-2,mod) pow(i,mod-2,mod) B B %= mod mod B N,M,K = list(map(int,input().split())) list(map(int,input().split())) N B *= pow(i,mod-2,mod) pow(i,mod-2,mod) B ans1 = A*B A*B ans1 B %= mod mod B A = A*(M**2) A*(M**2) A N,M = M,N M N
N,M,K = list(map(int,input().split()))

mod = 10**9 + 7

A = ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6
A = A*(M**2)
A %= mod
B = 1
for i in range(1,K-1):
    B *= N*M-1-i
    B %= mod
    B *= pow(i,mod-2,mod)
    B %= mod
ans1 = A*B

N,M = M,N
A = ((N**2)*(N-1))//2 - (N*(2*N-1)*(N-1))//6
A = A*(M**2)
A %= mod
B = 1
for i in range(1,K-1):
    B *= N*M-1-i
    B %= mod
    B *= pow(i,mod-2,mod)
    B %= mod
ans2 = A*B

print((ans1+ans2)%mod)