* SPICE netlist
Q1 N005 N007 N009 0 NPN
Q2 N006 N008 N009 0 NPN
I1 N009 Vee 2m
Q3 N001 N003 N006 0 NPN
Q4 Vcc N003 N005 0 NPN
I2 Vcc N001 1m
Q5 N001 N004 N002 0 NPN
R1 N004 N001 70k
R2 N002 N004 10k
Q7 Vcc X Vout 0 NPN
Q8 Vee X Vout 0 PNP
R3 Vout 0 100
R4 N008 0 10k
R5 Vout N008 10k
I3 Vcc X 0.2m
I4 N002 Vee 0.7m
R6 N007 Vin 5k
V1 Vin 0 SINE(0 1.5 1k)
V2 0 Vee 10
V3 Vcc 0 10
Q6 Vee N002 X 0 PNP
V4 N003 0 4
.tran 0 5m 0 0.1m
.four 1k V(Vout)

* LTspice schematic (.asc)
Version 4
SHEET 1 1504 896
WIRE -544 -448 -656 -448
WIRE -288 -448 -544 -448
WIRE -32 -448 -288 -448
WIRE 288 -448 -32 -448
WIRE 464 -448 288 -448
WIRE 592 -448 464 -448
WIRE 288 -416 288 -448
WIRE 464 -416 464 -448
WIRE -288 -400 -288 -448
WIRE 400 -368 368 -368
WIRE 464 -304 464 -320
WIRE 528 -304 464 -304
WIRE 720 -304 528 -304
WIRE 752 -304 720 -304
WIRE -288 -288 -288 -320
WIRE -176 -288 -288 -288
WIRE -96 -288 -176 -288
WIRE 96 -288 0 -288
WIRE 288 -288 288 -336
WIRE 368 -288 368 -368
WIRE 368 -288 288 -288
WIRE 720 -288 720 -304
WIRE -544 -272 -544 -448
WIRE -288 -272 -288 -288
WIRE 464 -256 464 -304
WIRE 288 -240 288 -288
WIRE -416 -224 -480 -224
WIRE -352 -224 -416 -224
WIRE 368 -208 368 -288
WIRE 400 -208 368 -208
WIRE -416 -192 -416 -224
WIRE -176 -192 -176 -288
WIRE -160 -192 -176 -192
WIRE -48 -192 -48 -224
WIRE -48 -192 -80 -192
WIRE -16 -192 -48 -192
WIRE 96 -192 96 -288
WIRE 96 -192 64 -192
WIRE 192 -192 96 -192
WIRE 224 -192 192 -192
WIRE 720 -192 720 -208
WIRE 192 -160 192 -192
WIRE -544 -96 -544 -176
WIRE -544 -96 -560 -96
WIRE -288 -96 -288 -176
WIRE -272 -96 -288 -96
WIRE 288 -80 288 -144
WIRE 288 -80 192 -80
WIRE -720 -48 -752 -48
WIRE -624 -48 -640 -48
WIRE -128 -48 -208 -48
WIRE -48 -48 -128 -48
WIRE 528 -48 528 -304
WIRE 528 -48 32 -48
WIRE -416 -32 -416 -112
WIRE -560 32 -560 0
WIRE -400 32 -560 32
WIRE -272 32 -272 0
WIRE -272 32 -400 32
WIRE -400 80 -400 32
WIRE -128 80 -128 32
WIRE -400 240 -400 160
WIRE -400 240 -656 240
WIRE -32 240 -400 240
WIRE 288 240 288 -80
WIRE 288 240 -32 240
WIRE 464 240 464 -160
WIRE 464 240 288 240
WIRE 592 240 464 240
WIRE -448 336 -448 320
WIRE -96 384 -112 384
WIRE 16 384 -16 384
WIRE 48 384 16 384
WIRE 144 384 128 384
WIRE -448 432 -448 416
WIRE 16 448 16 384
FLAG 720 -192 0
FLAG -128 80 0
FLAG -752 -48 Vin
FLAG 752 -304 Vout
FLAG 16 448 0
FLAG 144 384 Vcc
FLAG -112 384 Vee
FLAG -32 240 Vee
FLAG -32 -448 Vcc
FLAG -448 432 0
FLAG -448 320 Vin
FLAG -416 -32 0
FLAG 368 -368 X
SYMBOL npn -624 -96 R0
SYMATTR InstName Q1
SYMBOL npn -208 -96 M0
SYMATTR InstName Q2
SYMBOL current -400 80 R0
SYMATTR InstName I1
SYMATTR Value 2m
SYMBOL npn -352 -272 R0
SYMATTR InstName Q3
SYMBOL npn -480 -272 M0
SYMATTR InstName Q4
SYMBOL current -288 -400 R0
SYMATTR InstName I2
SYMATTR Value 1m
SYMBOL npn -96 -224 R270
SYMATTR InstName Q5
SYMBOL res -64 -208 R90
SYMATTR InstName R1
SYMATTR Value 70k
SYMBOL res 80 -208 R90
SYMATTR InstName R2
SYMATTR Value 10k
SYMBOL npn 400 -416 R0
SYMATTR InstName Q7
SYMBOL pnp 400 -160 M180
SYMATTR InstName Q8
SYMBOL res 704 -304 R0
SYMATTR InstName R3
SYMATTR Value 100
SYMBOL res -144 -64 R0
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL res 48 -64 R90
SYMATTR InstName R5
SYMATTR Value 10k
SYMBOL current 288 -416 R0
SYMATTR InstName I3
SYMATTR Value 0.2m
SYMBOL current 192 -160 R0
SYMATTR InstName I4
SYMATTR Value 0.7m
SYMBOL res -624 -64 R90
SYMATTR InstName R6
SYMATTR Value 5k
SYMBOL voltage -448 320 R0
SYMATTR InstName V1
SYMATTR Value SINE(0 1.5 1k)
SYMBOL voltage 0 384 R90
SYMATTR InstName V2
SYMATTR Value 10
SYMBOL voltage 144 384 R90
SYMATTR InstName V3
SYMATTR Value 10
SYMBOL pnp 224 -144 M180
SYMATTR InstName Q6
SYMBOL voltage -416 -208 R0
SYMATTR InstName V4
SYMATTR Value 4