working for 5 operators with two positive integers