in python -1/10 = -1 ,however it is 0 in java. So in this question we should use int(float(a2))