Working solution for 33.
Added check for 33.
Use from_integer for initial ratio.