#include<cstdio>
#ifdef WIN64
#define LL "%I64d"
#elif WIN32
#define LL "%I64d"
#else
#define LL "%lld"
#endif
const int mo=998244353;
long long a,b,c;
long long sigma(long long a)
{
	if(a%2==0)
		return (a/2)*(a+1)%mo;
	else
		return a*((a+1)/2)%mo;
}
int main()
{
	scanf(LL LL LL,&a,&b,&c);
	long long ans=sigma(c)%mo*sigma(b)%mo*sigma(a)%mo;
	printf(LL,ans);
	return 0;
}
#include<bits/stdc++.h>
using namespace std;

int main() {
  int X,Y,Z; cin >> X >> Y >> Z;
  double t = (double)Y/X;
  for (int i =1000000; i>=0; i--) {
    if (t > (double)i/Z) {
      cout << i << endl; break; } }
  return 0;
}