#include <bits/stdc++.h>   using namespace std;   int main() {     int a, b, c, d, e, f;     cin >> a >> b >> c >> d >> e >> f;     cout << (a + b + c) * (a + b + c) - (a * a + c * c + e * e);     return 0;   }   