] [Problem Description
input a positive integer, m, the output of a 2% m, which represents the power, i.e., a ^ 2 denotes a square, and% indicates modulo.
[Input format
input contains two integers a, m, a not more than 10000.
[] Output format
output an integer, i.e., a ^ 2% m values.
[Sample input]
56
[Output] Sample
1
#include<stdio.h>
int main(int argc,char argv[])
{
int a,m;
scanf("%d%d",&a,&m);
printf("%d\n",a*a%m);
return 0;
}