Minor fix to 9225e3a (linear grading function for OI)

Strange, but under some conditions isinstance(X * Y / 100, (int, long)) returns
false.

Change-Id: I88b36e96e78d14d34ba37d1e0f3d8f9e89336926