K = gets.chomp.to_i
str = gets.split
X,Y = str[0].to_i, str[1].to_i
if X<0
    v=-1
else
    v=1
end
if Y<0
    w=-1
else
    w=1
end
ZZ = X+Y
Z = X.abs+Y.abs
x = 0
y = 0
if K%2 == 0
    if Z % K == 0
        puts ZZ.abs/K
        while x + K < X.abs
            x += K
            print v*x," 0"
            puts
        end
        y = K-(X.abs-x)
        print X," ",y
        puts
        while y + K <= Y.abs
            y += K
            print X," ",w*y
            puts
        end
    elsif Z % 2 == 1
        puts -1
    else
        a = ZZ.abs/K+1
        puts a
        for i in 1..a-2 do
            if x + K < X.abs
                x += K
                print v*x," 0"
                puts
            elsif x != X.abs
                x = X.abs
                y = K-(X.abs-x)
                print X," ",w*y
                puts
            else
                y += K
                print X," ",w*y
                puts
            end
        end
        b = (2*K-(X.abs-x)-(Y.abs-y))/2
        print v*(x+b)," ",w*(y+(K-b))
        puts
        print X," ",Y
        puts
    end
else
    if Z % K == 0
        puts ZZ.abs/K
        while x + K < X.abs
            x += K
            print v*x," 0"
            puts
        end
        y = K-(X-x).abs
        print X," ",w*y
        puts
        while y + K <= Y.abs
            y += K
            print X," ",y.abs
            puts
        end
    else
        a = ZZ.abs/K+1
        if Z % 2 == 0
            if a % 2 == 0
                puts a
                for i in 1..a-2 do
                    if x + K < X.abs
                        x += K
                        print v*x," 0"
                        puts
                    elsif x != X.abs
                        x = X,abs
                        y = K-(X.abs-x)
                        print X," ",w*y
                        puts
                    else
                        y += K
                        print X," ",w*y
                        puts
                    end
                end
                b = (2*K-(X.abs-x)-(Y.abs-y))/2
                print v*(x+b)," ",w*(y+(K-b))
                puts
                print X," ",Y
                puts
            else
                a += 1
                puts a
                for i in 1..a-2 do
                    if x + K < X.abs
                        x += K
                        print v*x," 0"
                        puts
                    elsif x != X.abs
                        x = X.abs
                        y = K-(X.abs-x)
                        print X," ",w*y
                        puts
                    else
                        y += K
                        print X," ",w*y
                        puts
                    end
                end
                b = (2*K-(X.abs-x)-(Y.abs-y))/2
                print v*(x+b)," ",w*(y+(K-b))
                puts
                print X," ",Y
                puts
            end
        else
            if a % 2 == 1 && a > 1
                puts a
                for i in 1..a-2 do
                    if x + K < X.abs
                        x += K
                        print v*x," 0"
                        puts
                    elsif x != X.abs
                        x = X.abs
                        y = K-(X.abs-x)
                        print X," ",w*y
                        puts
                    else
                        y += K
                        print X," ",w*y
                        puts
                    end
                end
                b = (2*K-(X.abs-x)-(Y.abs-y))/2
                print v*(x+b)," ",w*(y+(K-b))
                puts
                print X," ",Y
                puts
            elsif a % 2 == 1
                puts 3
                x = -K
                print v*x," ",y
                puts
                b = (2*K-(X.abs-x)-(Y.abs-y))/2
                print v*(x+b)," ",w*(y+(K-b))
                puts
                print X," ",Y
                puts
            else
                a += 1
                puts a
                for i in 1..a-2 do
                    if x + K < X.abs
                        x += K
                        print v*x," 0"
                        puts
                    elsif x != X.abs
                        x = X.abs
                        y = K-(X.abs-x)
                        print X," ",w*y
                        puts
                    else
                        y += K
                        print X," ",w*y
                        puts
                    end
                end
                b = (2*K-(X.abs-x)-(Y.abs-y))/2
                print v*(x+b)," ",w*(y+(K-b))
                puts
                print X," ",Y
                puts
            end
        end
    end
end