#include<bits/stdc++.h>
#define N 200000
#define LL long long
using namespace std;

LL a,b,c;
const LL mod=998244353;

inline LL qr()
{
	char a=0;LL x=0,w=1;
	while(a<'0'||a>'9'){if(a=='-')w=-1;a=getchar();}
	while(a<='9'&&a>='0'){x=(x<<3)+(x<<1)+(a^48);a=getchar();}
	return x*w;
}

inline LL poww(LL a,LL b)
{
	if(a==0)
		return 0;
	LL ans=1;
	LL ba=a;
	while(b)
	{
		if(b&1)
			ans=(ans*ba)%mod;
		b>>=1;
		ba=(ba*ba)%mod;
	}
	return (ans%mod+mod)%mod;
}


int main()
{
	a=qr();
	b=qr();
	c=qr();
	a=a*(a+1)%mod/**pow(2,mod-2)*/;
	b=b*(b+1)%mod/**pow(2,mod-2)*/;
	c=c*(c+1)%mod/**pow(2,mod-2)*/;
	//cout<<a<<' '<<b<<' '<<c<<endl;
	cout<<a*b%mod*c%mod*poww(8,mod-2)%mod<<endl;
	return 0;
}
/*
10
1 0
2 0
3 0
4 0
10 0
*/
#include <bits/stdc++.h>
     
#define all(A) begin(A), end(A)
#define rall(A) rbegin(A), rend(A)
#define sz(A) int(A.size())
#define pb push_back
#define mp make_pair
     
using namespace std;
     
typedef long long ll;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
typedef vector <int> vi;
typedef vector <ll> vll;
typedef vector <pii> vpii;
typedef vector <pll> vpll;

int main () {
  ios::sync_with_stdio(false); cin.tie(0);
  int a, b;
  cin >> a >> b;
  int ans = 1;
  for (int g = 2; g < b; g++) {
    // a <= g * x
    int l = g * ((a + g - 1) / g);
    // g * y <= b
    int r = g * (b / g);
    if (l < r) ans = g;
  }
  cout << ans << '\n';
  return (0);
}
