Forks of Ruler and ants problem