#include
using namespace std;
//#define l long long
int main()
{
int a,b,c;
cin>>a>>b>>c;
if(a>=1 && a<= 100000 && b>=1 && b<= 100000 && c>=1 && c<= 100000 )
{
int d= ((a%c)*(b%c))%c;
cout<<d;
}
return 0;
}
code is this it is not getting submitted…kindly check