@skirpichev I forgot to change int(y/x) --> y//x . I have done that change in the other two functions. Will update this function in the next PR . I hope everything else in fine.