#if true
//#if false
#define UTAKA_DEBUG
#endif

using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using static System.Math;


namespace UtakaApp
{
    public class Program
    {
        public const string ContestName = "abc135";
        public const string ProblemName = "E";

        public const int ModLarge = 1000000007;

        public static void Main(string[] args)
        {
#if UTAKA_LOCAL
            new TestCaseChecker().TestProblems();
#else
            new Program().Solve(Console.In, new ConsoleWriter());
#endif
        }

        public void Solve(TextReader textReader, IConsoleWriter consoleWriter)
        {
            var cin = new ConsoleInput(textReader, ' ');

            int K = cin.ReadInt;
            int X = cin.ReadInt;
            int Y = cin.ReadInt;


            bool xFlag = false;
            bool yFlag = false;
            bool xySwap = false;

            if (X < 0)
            {
                X = -X;
                xFlag = true;
            }

            if (Y < 0)
            {
                Y = -Y;
                yFlag = true;
            }

            if (X < Y)
            {
                Swap(ref X, ref Y);
                xySwap = true;
            }

            int[,] ans = InnerSolve(X, Y, K);

            if (ans.Length == 0)
            {
                consoleWriter.WriteLine((-1).ToString());
                return;
            }

            if (xySwap)
            {
                for (int i = 0; i < ans.GetLength(0); i++)
                {
                    Swap(ref ans[i, 0], ref ans[i, 1]);
                }
            }

            if (xFlag)
            {
                for (int i = 0; i < ans.GetLength(0); i++)
                {
                    ans[i, 0] = -ans[i, 0];
                }
            }

            if (yFlag)
            {
                for (int i = 0; i < ans.GetLength(0); i++)
                {
                    ans[i, 1] = -ans[i, 1];
                }
            }

            consoleWriter.WriteLine(ans.GetLength(0).ToString());

            for (int i = 0; i < ans.GetLength(0); i++)
            {
                consoleWriter.WriteLine(ans[i, 0] + " " + ans[i, 1]);
            }


//            consoleWriter.WriteLine($"=======");
//            consoleWriter.WriteLine($"{K} {X} {Y}");
//            consoleWriter.WriteLine($"=======?????????/");
        }

        // X, Y >= 0
        // X >= Y
        private int[,] InnerSolve(int X, int Y, int K)
        {
            if ((X + Y) % 2 == 1 && K % 2 == 0)
            {
                return new int[0, 0];
            }

            // 1回で行けるパターン
            if (X + Y == K)
            {
                int[,] ans = new int[1, 2];
                ans[0, 0] = X;
                ans[0, 1] = Y;
                return ans;
            }

            int N = (X + Y + K - 1) / K;

            if (N <= 1)
            {
                N = 2;
            }

            if ((X + Y) % 2 != (N * K) % 2)
            {
                N++;
            }

            if (N == 3 && X < K)
            {
                // 特殊

                int[,] ans = new int[3, 2];

                ans[0, 0] = X;
                ans[0, 1] = -K + X;

                int overRight = (K + X - Y) / 2;

                ans[1, 0] = X + overRight;
                ans[1, 1] = Y - (K - overRight);

                ans[2, 0] = X;
                ans[2, 1] = Y;

                return ans;
            }
            else
            {
                // 通常

                int over = (K * N - (X + Y)) / 2;

                int[,] ans = new int[N, 2];

                for (int i = 0; i < N; i++)
                {
                    int dist = (i + 1) * K;
                    if (dist <= Y + over)
                    {
                        ans[i, 0] = 0;
                        ans[i, 1] = dist;
                    }
                    else if (dist <= Y + over + X)
                    {
                        ans[i, 0] = dist - Y - over;
                        ans[i, 1] = Y + over;
                    }
                    else
                    {
                        ans[i, 0] = X;
                        ans[i, 1] = Y + ((N - (i + 1)) * K);
                    }
                }

                return ans;
            }
        }


        //swap
        void Swap<T>(ref T a, ref T b)
        {
            T c = a;
            a = b;
            b = c;
        }
    }

    public class ConsoleInput
    {
        private readonly TextReader _stream;
        private char _separator = ' ';
        private Queue<string> inputStream;

        public ConsoleInput(TextReader stream, char separator = ' ')
        {
            this._separator = separator;
            this._stream = stream;
            inputStream = new Queue<string>();
        }

        public string Read
        {
            get
            {
                if (inputStream.Count != 0) return inputStream.Dequeue();
                string[] tmp = _stream.ReadLine().Split(_separator);
                for (int i = 0; i < tmp.Length; ++i)
                {
                    inputStream.Enqueue(tmp[i]);
                }

                return inputStream.Dequeue();
            }
        }

        public string ReadLine => _stream.ReadLine();
        public int ReadInt => int.Parse(Read);
        public long ReadLong => long.Parse(Read);
        public double ReadDouble => double.Parse(Read);

        public string[] ReadStrArray(long N)
        {
            var ret = new string[N];
            for (long i = 0; i < N; ++i) ret[i] = Read;
            return ret;
        }

        public int[] ReadIntArray(long N)
        {
            var ret = new int[N];
            for (long i = 0; i < N; ++i) ret[i] = ReadInt;
            return ret;
        }

        public long[] ReadLongArray(long N)
        {
            var ret = new long[N];
            for (long i = 0; i < N; ++i) ret[i] = ReadLong;
            return ret;
        }
    }

    public interface IConsoleWriter
    {
        void Write(string str);
        void WriteLine(string str);
    }

    public class ConsoleWriter : IConsoleWriter
    {
        public void Write(string str)
        {
            Console.Write(str);
        }

        public void WriteLine(string str)
        {
            Console.WriteLine(str);
        }
    }

#if UTAKA_LOCAL

    public class DebugConsoleWriter : IConsoleWriter
    {
        private StringBuilder mSb;

        public DebugConsoleWriter()
        {
            mSb = new StringBuilder();
        }

        public void Write(string str)
        {
            mSb.Append(str);
        }

        public void WriteLine(string str)
        {
            mSb.AppendLine(str);
        }

        public string GetAllOutput()
        {
            return mSb.ToString();
        }
    }

    public class TestCaseChecker
    {
        private string DirectoryPath => $"../../../../{Program.ContestName}/{Program.ProblemName}";

        private string GetInputFilePath(int testCaseNumber)
        {
            return $"{DirectoryPath}/in_{testCaseNumber}.txt";
        }

        private string GetOutputFilePath(int testCaseNumber)
        {
            return $"{DirectoryPath}/out_{testCaseNumber}.txt";
        }

        public bool TestProblem(int testCaseNumber)
        {
            var inputFilePath = GetInputFilePath(testCaseNumber);
            var outputFilePath = GetOutputFilePath(testCaseNumber);

            TextReader inputStream = new StreamReader(inputFilePath);

            var debugConsoleWriter = new DebugConsoleWriter();

            new Program().Solve(inputStream, debugConsoleWriter);

            var output = debugConsoleWriter.GetAllOutput();

            TextReader outputStream = new StreamReader(outputFilePath);
            var outputAnswer = outputStream.ReadToEnd();

#if UTAKA_DEBUG
            Console.Write(output);
            Console.Write(outputAnswer);
#endif

            var isCorrect = output == outputAnswer;

            return isCorrect;
        }

        public void TestProblems()
        {
            var isSuccessAll = true;

            var testCaseNumber = 1;
            while (true)
            {
                var inputFileName = GetInputFilePath(testCaseNumber);
                if (!File.Exists(inputFileName))
                {
                    break;
                }

                Console.WriteLine($"TestCase {testCaseNumber} =====================================================");

                var result = TestProblem(testCaseNumber);

                if (result)
                {
                    Console.WriteLine($"Success");
                }
                else
                {
                    isSuccessAll = false;
                    Console.WriteLine($"Failure *****");
                }

                testCaseNumber++;
            }

            if (isSuccessAll)
            {
                Console.WriteLine($"!!!!!!!!! All Success !!!!!!!!!");
            }
        }
    }

    public static class Dbg
    {
        public static void WriteLine(string str)
        {
            Console.WriteLine(str);
        }

        public static void Write(string str)
        {
            Console.Write(str);
        }
    }
#else
    public static class Dbg
    {
        public static void WriteLine(string str)
        {
        }

        public static void Write(string str)
        {
        }
    }

#endif
}

Measured memory_bytes: 16700