#include <bits/stdc++.h>
using namespace std;
#define IO ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define whilet int T;cin>>T;while(T--)
#define clr(a,x) memset(a,x,sizeof(a));
#define ll long long
#define PI 3.1415926535897932384626
#define mp make_pair
#define fi first
#define se second
#define pb push_back
#define endl "\n"
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int,int> ii;
#define MOD 998244353

int d4x[] = {0, 0, 1, -1};
int d4y[] = {1, -1, 0, 0};

int d8x[] = {-1, -1, -1, 0, 0, 1, 1, 1};
int d8y[] = {-1, 0, 1, -1, 1, -1, 0, 1};

ll a, b, c;

int main() {
    IO;

    cin >> a >> b >> c;
    ll res = ((((a*(a+1)/2)%MOD) * ((b*(b+1)/2)%MOD)%MOD) * ((c*(c+1)/2)%MOD))%MOD;
    cout << res << endl;
    return 0;
}
#include <bits/stdc++.h>
using namespace std;

int main(){
	long long a,b,c;
	cin >> a >> b >> c;

	long long mod = 998244353;
	cout << ( (a) * (a+1) / 2 % mod) * ( (b) * (b+1) / 2 % mod) % mod * ( (c) * (c+1) / 2 % mod ) % mod;
}