Balancing

/ ip firewall mangle
add chain=prerouting in-interface=CLIENT connection-state=new nth=1,1,0
action=mark-connection new-connection-mark=odd passthrough=yes comment=“”
disabled=no
add chain=prerouting in-interface=CLIENT connection-mark=odd action=mark-routing
new-routing-mark=odd passthrough=no comment=“” disabled=no
add chain=prerouting in-interface=CLIENT connection-state=new nth=1,1,1
action=mark-connection new-connection-mark=even passthrough=yes comment=“”
disabled=no
add chain=prerouting in-interface=CLIENT connection-mark=even action=mark-routing
new-routing-mark=even passthrough=no comment=“” disabled=no
/ ip firewall nat
add chain=srcnat connection-mark=odd action=src-nat to-addresses=124.81.133.130
to-ports=0-65535 comment=“” disabled=no
add chain=srcnat connection-mark=even action=src-nat to-addresses=124.81.138.32
to-ports=0-65535 comment=“” disabled=no
/ ip route
add dst-address=0.0.0.0/0 gateway=124.81.132.1 scope=255 target-scope=10 routing-mark=odd
comment=“” disabled=no
add dst-address=0.0.0.0/0 gateway=124.81.138.1 scope=255 target-scope=10 routing-mark=even
comment=“” disabled=no
add dst-address=0.0.0.0/0 gateway=124.81.138.1 scope=255 target-scope=10 comment=“”
disabled=no

This is script for balancing 2 gateway. How about 3 gateway or more? How to set the nth

/ ip firewall mangle
add chain=prerouting in-interface=CLIENT connection-state=new nth=1,1,0
action=mark-connection new-connection-mark=one passthrough=yes comment=“”
disabled=no
add chain=prerouting in-interface=CLIENT connection-mark=one action=mark-routing
new-routing-mark=odd passthrough=no comment=“” disabled=no
add chain=prerouting in-interface=CLIENT connection-state=new nth=1,1,1
action=mark-connection new-connection-mark=two passthrough=yes comment=“”
disabled=no
add chain=prerouting in-interface=CLIENT connection-mark=two action=mark-routing
new-routing-mark=even passthrough=no comment=“” disabled=no
add chain=prerouting in-interface=CLIENT connection-state=new nth=1,1,2
action=mark-connection new-connection-mark=three passthrough=yes comment=“”
disabled=no
add chain=prerouting in-interface=CLIENT connection-mark=three action=mark-routing
new-routing-mark=even passthrough=no comment=“” disabled=no