#!/bin/python import sys t,b,f,c = raw_input().strip().split(' ') t,b,f,c = [int(t),int(b),int(f),int(c)] # your code goes here mx = t*(t-1) if mx < t + b + f + c: print "-1" else: print "4" print "3 2 4 3" print "1 3" print "1 1" print "1 2"