#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); ll N, M, C, ans=0; cin >> N >> M >> C; vector a(N), b(M); for (int i=0; i> a[i]; for (int j=0; j> b[j]; sort(b.begin(), b.end()); for (int i=0; i