get last three digits of an integer,int(str(x)[-3:])