\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/badseq1-badseq2/sim-9622.tex}
\rhead{08:49:43.025 on 2025-04-03}
\fancyfoot{}
\begin{document}
\newif\ifntiny
%\ntinyfalse
\ntinytrue
\thispagestyle{fancy}
\begin{center}
\maxsizebox{!}{0.475\textheight}{
\minsizebox{\textwidth}{!}{
\begin{tabular}{@{}c@{}}
% node count = 86
\begin{tikzpicture}[rotate = 0]
%\begin{tikzpicture}[rotate = 90]
\tikzset{initial text=$ $}

\node[accepting, state] at (7,-20) (n0n0n3n0n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 10165}\fi};
\node[state] at (9,-12) (n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 11876}\fi};
\node[accepting, state] at (12,-18) (n1n0n0n0n0n2n1n0n0) {$p?$\,\ifntiny{\tiny 9685}\fi};
\node[accepting, state] at (3,-12) (n0n0n0n0n0n2) {$p?$\,\ifntiny{\tiny 10112}\fi};
\node[accepting, state] at (21,-16) (n1n0n0n3n0n1n0n0) {$p?$\,\ifntiny{\tiny 9797}\fi};
\node[accepting, state] at (12,-12) (n1n0n0n0n0n2) {$p!$\,\ifntiny{\tiny 9688}\fi};
\node[accepting, state] at (14,-12) (n1n0n0n0n0n3) {$p?$\,\ifntiny{\tiny 11572}\fi};
\node[accepting, state] at (19,-14) (n1n0n0n2n0n0n0) {$p?$\,\ifntiny{\tiny 10109}\fi};
\node[state] at (15,-2) (n1) {$p?$\,\ifntiny{\tiny 11883}\fi};
\node[accepting, state] at (19,-8) (n1n0n0n2) {$p?$\,\ifntiny{\tiny 10112}\fi};
\node[accepting, state] at (23,-4) (n2n0) {$p!$\,\ifntiny{\tiny 11068}\fi};
\node[accepting, state] at (23,-6) (n2n0n1) {$p?$\,\ifntiny{\tiny 11067}\fi};
\node[accepting, state] at (3,-24) (n0n0n0n0n0n2n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 10106}\fi};
\node[accepting, state] at (21,-18) (n1n0n0n3n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 9796}\fi};
\node[accepting, state] at (8,-8) (n0n0n3n0) {$p?$\,\ifntiny{\tiny 10174}\fi};
\node[accepting, state] at (21,-8) (n1n0n0n3) {$p?$\,\ifntiny{\tiny 9801}\fi};
\node[accepting, state] at (21,-20) (n1n0n0n3n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 9795}\fi};
\node[accepting, state] at (21,-10) (n1n0n0n3n0) {$p!$\,\ifntiny{\tiny 9800}\fi};
\node[accepting, state] at (8,-12) (n0n0n3n0n0n0) {$p?$\,\ifntiny{\tiny 10172}\fi};
\node[accepting, state] at (6,-6) (n0n0n2) {$p!$\,\ifntiny{\tiny 9688}\fi};
\node[state] at (15,-4) (n1n0) {$p?$\,\ifntiny{\tiny 11882}\fi};
\node[accepting, state] at (14,-18) (n1n0n0n0n0n3n0n0n0) {$p?$\,\ifntiny{\tiny 11569}\fi};
\node[accepting, state] at (6,-12) (n0n0n2n1n0n0) {$p?$\,\ifntiny{\tiny 9685}\fi};
\node[accepting, state] at (16,-12) (n1n0n0n0n0n4) {$p?$\,\ifntiny{\tiny 11069}\fi};
\node[accepting, state] at (16,-18) (n1n0n0n0n0n4n0n1n0) {$p?$\,\ifntiny{\tiny 11066}\fi};
\node[accepting, state] at (6,-16) (n0n0n2n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 9683}\fi};
\node[accepting, state] at (6,-10) (n0n0n2n1n0) {$p?$\,\ifntiny{\tiny 9686}\fi};
\node[state] at (13,-10) (n1n0n0n0n0) {$\cup$\,\ifntiny{\tiny 11878}\fi};
\node[accepting, state] at (23,-14) (n2n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 11063}\fi};
\node[accepting, state] at (14,-24) (n1n0n0n0n0n3n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 11566}\fi};
\node[accepting, state] at (19,-12) (n1n0n0n2n0n0) {$p?$\,\ifntiny{\tiny 10110}\fi};
\node[accepting, state] at (19,-10) (n1n0n0n2n0) {$p?$\,\ifntiny{\tiny 10111}\fi};
\node[accepting, state] at (12,-14) (n1n0n0n0n0n2n1) {$p?$\,\ifntiny{\tiny 9687}\fi};
\node[accepting, state] at (14,-20) (n1n0n0n0n0n3n0n0n0n0) {$p?$\,\ifntiny{\tiny 11568}\fi};
\node[accepting, state] at (16,-22) (n1n0n0n0n0n4n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 11064}\fi};
\node[initial, state] at (12,0) (n) {$\cup$\,\ifntiny{\tiny 11884}\fi};
\node[accepting, state] at (21,-22) (n1n0n0n3n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 9794}\fi};
\node[accepting, state] at (14,-22) (n1n0n0n0n0n3n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 11567}\fi};
\node[accepting, state] at (12,-22) (n1n0n0n0n0n2n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 9683}\fi};
\node[accepting, state] at (16,-14) (n1n0n0n0n0n4n0) {$p!$\,\ifntiny{\tiny 11068}\fi};
\node[accepting, state] at (23,-10) (n2n0n1n0n0) {$p?$\,\ifntiny{\tiny 11065}\fi};
\node[accepting, state] at (21,-12) (n1n0n0n3n0n1) {$p?$\,\ifntiny{\tiny 9799}\fi};
\node[accepting, state] at (8,-6) (n0n0n3) {$p?$\,\ifntiny{\tiny 10175}\fi};
\node[accepting, state] at (6,-14) (n0n0n2n1n0n0n0) {$p?$\,\ifntiny{\tiny 9684}\fi};
\node[accepting, state] at (8,-10) (n0n0n3n0n0) {$p?$\,\ifntiny{\tiny 10173}\fi};
\node[accepting, state] at (3,-20) (n0n0n0n0n0n2n0n0n0n0) {$p?$\,\ifntiny{\tiny 10108}\fi};
\node[accepting, state] at (6,-18) (n0n0n2n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 9682}\fi};
\node[accepting, state] at (3,-16) (n0n0n0n0n0n2n0n0) {$p?$\,\ifntiny{\tiny 10110}\fi};
\node[accepting, state] at (19,-16) (n1n0n0n2n0n0n0n0) {$p?$\,\ifntiny{\tiny 10108}\fi};
\node[state] at (2,-10) (n0n0n0n0n0) {$\cup$\,\ifntiny{\tiny 11867}\fi};
\node[state] at (2,-8) (n0n0n0n0) {$p?$\,\ifntiny{\tiny 11868}\fi};
\node[state] at (2,-6) (n0n0n0) {$p?$\,\ifntiny{\tiny 11869}\fi};
\node[state] at (4,-4) (n0n0) {$\cup$\,\ifntiny{\tiny 11871}\fi};
\node[accepting, state] at (21,-14) (n1n0n0n3n0n1n0) {$p?$\,\ifntiny{\tiny 9798}\fi};
\node[accepting, state] at (3,-22) (n0n0n0n0n0n2n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 10107}\fi};
\node[accepting, state] at (16,-24) (n1n0n0n0n0n4n0n1n0n0n0n0) {$p?$\,\ifntiny{\tiny 11063}\fi};
\node[accepting, state] at (16,-16) (n1n0n0n0n0n4n0n1) {$p?$\,\ifntiny{\tiny 11067}\fi};
\node[accepting, state] at (16,-26) (n1n0n0n0n0n4n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 11062}\fi};
\node[accepting, state] at (19,-18) (n1n0n0n2n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 10107}\fi};
\node[accepting, state] at (23,-16) (n2n0n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 11062}\fi};
\node[accepting, state] at (23,-12) (n2n0n1n0n0n0) {$p?$\,\ifntiny{\tiny 11064}\fi};
\node[accepting, state] at (12,-20) (n1n0n0n0n0n2n1n0n0n0) {$p?$\,\ifntiny{\tiny 9684}\fi};
\node[accepting, state] at (3,-18) (n0n0n0n0n0n2n0n0n0) {$p?$\,\ifntiny{\tiny 10109}\fi};
\node[accepting, state] at (2,-26) (n0n0n0n0n0n2n0n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 10103}\fi};
\node[state] at (17,-8) (n1n0n0n1) {$p?$\,\ifntiny{\tiny 11880}\fi};
\node[accepting, state] at (11,-14) (n1n0n0n0n0n2n0) {$p?$\,\ifntiny{\tiny 9674}\fi};
\node[accepting, state] at (5,-8) (n0n0n2n0) {$p?$\,\ifntiny{\tiny 9674}\fi};
\node[accepting, state] at (8,-18) (n0n0n3n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 10169}\fi};
\node[accepting, state] at (12,-24) (n1n0n0n0n0n2n1n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 9682}\fi};
\node[accepting, state] at (13,-26) (n1n0n0n0n0n3n0n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 11562}\fi};
\node[state] at (15,-6) (n1n0n0) {$\cup$\,\ifntiny{\tiny 11881}\fi};
\node[accepting, state] at (8,-16) (n0n0n3n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 10170}\fi};
\node[accepting, state] at (8,-14) (n0n0n3n0n0n0n0) {$p?$\,\ifntiny{\tiny 10171}\fi};
\node[accepting, state] at (14,-16) (n1n0n0n0n0n3n0n0) {$p?$\,\ifntiny{\tiny 11570}\fi};
\node[accepting, state] at (18,-22) (n1n0n0n2n0n0n0n0n0n0n0) {$p?$\,\ifntiny{\tiny 10103}\fi};
\node[accepting, state] at (3,-14) (n0n0n0n0n0n2n0) {$p?$\,\ifntiny{\tiny 10111}\fi};
\node[accepting, state] at (14,-14) (n1n0n0n0n0n3n0) {$p?$\,\ifntiny{\tiny 11571}\fi};
\node[state] at (4,-2) (n0) {$p?$\,\ifntiny{\tiny 11872}\fi};
\node[accepting, state] at (12,-16) (n1n0n0n0n0n2n1n0) {$p?$\,\ifntiny{\tiny 9686}\fi};
\node[accepting, state] at (23,-8) (n2n0n1n0) {$p?$\,\ifntiny{\tiny 11066}\fi};
\node[accepting, state] at (16,-20) (n1n0n0n0n0n4n0n1n0n0) {$p?$\,\ifntiny{\tiny 11065}\fi};
\node[accepting, state] at (23,-2) (n2) {$p?$\,\ifntiny{\tiny 11069}\fi};
\node[accepting, state] at (19,-20) (n1n0n0n2n0n0n0n0n0n0) {$p!$\,\ifntiny{\tiny 10106}\fi};
\node[state] at (10,-12) (n1n0n0n0n0n1) {$p?$\,\ifntiny{\tiny 11877}\fi};
\node[state] at (13,-8) (n1n0n0n0) {$p?$\,\ifntiny{\tiny 11879}\fi};
\node[accepting, state] at (6,-8) (n0n0n2n1) {$p?$\,\ifntiny{\tiny 9687}\fi};

\draw[->, thick] (n) edge [near start, left] node {} (n0);
\draw[->, thick] (n) edge [near start, left] node {} (n1);
\draw[->, thick] (n) edge [near start, left] node {} (n2);
\draw[->, thick] (n0) edge [near start, left] node {Z} (n0n0);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n0);
\draw[->, thick] (n0n0) edge [near start, right, bend right] node {} (n0);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n2);
\draw[->, thick] (n0n0) edge [near start, left] node {} (n0n0n3);
\draw[->, thick] (n0n0n0) edge [near start, left] node {w} (n0n0n0n0);
\draw[->, thick] (n0n0n0n0) edge [near start, left] node {u} (n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0) edge [near start, right, bend right] node {} (n0n0n0);
\draw[->, thick] (n0n0n0n0n0) edge [near start, right, bend right] node {} (n0);
\draw[->, thick] (n0n0n0n0n0) edge [near start, left] node {} (n0n0n0n0n0n2);
\draw[->, thick] (n0n0n0n0n0n2) edge [near start, left] node {w} (n0n0n0n0n0n2n0);
\draw[->, thick] (n0n0n0n0n0n2n0) edge [near start, left] node {u} (n0n0n0n0n0n2n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0) edge [near start, left] node {w} (n0n0n0n0n0n2n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0n0) edge [near start, left] node {u} (n0n0n0n0n0n2n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0n0n0) edge [near start, left] node {w} (n0n0n0n0n0n2n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0n0n0n0) edge [near start, left] node {u} (n0n0n0n0n0n2n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0n0n0n0n0) edge [near start, left] node {a} (n0n0n0n0n0n2n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n0n0n0n2n0n0n0n0n0n0) edge [near start, right, bend right] node {b} (n0n0n0n0n0n2);
\draw[->, thick] (n0n0n0n0n0n2n0n0n0n0n0n0n0) edge [near start, right, bend right] node {Z} (n0n0n0n0n0n2n0n0n0n0n0n0);
\draw[->, thick] (n0n0n2) edge [near start, left] node {a} (n0n0n2n0);
\draw[->, thick] (n0n0n2) edge [near start, left] node {b} (n0n0n2n1);
\draw[->, thick] (n0n0n2n0) edge [near start, right, bend right] node {Z} (n0n0n2);
\draw[->, thick] (n0n0n2n1) edge [near start, left] node {w} (n0n0n2n1n0);
\draw[->, thick] (n0n0n2n1n0) edge [near start, left] node {u} (n0n0n2n1n0n0);
\draw[->, thick] (n0n0n2n1n0n0) edge [near start, left] node {w} (n0n0n2n1n0n0n0);
\draw[->, thick] (n0n0n2n1n0n0n0) edge [near start, left] node {u} (n0n0n2n1n0n0n0n0);
\draw[->, thick] (n0n0n2n1n0n0n0n0) edge [near start, left] node {w} (n0n0n2n1n0n0n0n0n0);
\draw[->, thick] (n0n0n2n1n0n0n0n0n0) edge [near start, right, bend right] node {u} (n0n0n2);
\draw[->, thick] (n0n0n3) edge [near start, left] node {w} (n0n0n3n0);
\draw[->, thick] (n0n0n3n0) edge [near start, left] node {u} (n0n0n3n0n0);
\draw[->, thick] (n0n0n3n0n0) edge [near start, left] node {w} (n0n0n3n0n0n0);
\draw[->, thick] (n0n0n3n0n0n0) edge [near start, left] node {u} (n0n0n3n0n0n0n0);
\draw[->, thick] (n0n0n3n0n0n0n0) edge [near start, left] node {w} (n0n0n3n0n0n0n0n0);
\draw[->, thick] (n0n0n3n0n0n0n0n0) edge [near start, left] node {u} (n0n0n3n0n0n0n0n0n0);
\draw[->, thick] (n0n0n3n0n0n0n0n0n0) edge [near start, left] node {a} (n0n0n3n0n0n0n0n0n0n0);
\draw[->, thick] (n0n0n3n0n0n0n0n0n0) edge [near start, right, bend right] node {b} (n0n0n3);
\draw[->, thick] (n0n0n3n0n0n0n0n0n0n0) edge [near start, right, bend right] node {Z} (n0n0n3n0n0n0n0n0n0);
\draw[->, thick] (n1) edge [near start, left] node {w} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left] node {u} (n1n0n0);
\draw[->, thick] (n1n0n0) edge [near start, left] node {} (n1n0n0n0);
\draw[->, thick] (n1n0n0) edge [near start, left] node {} (n1n0n0n1);
\draw[->, thick] (n1n0n0) edge [near start, left] node {} (n1n0n0n2);
\draw[->, thick] (n1n0n0) edge [near start, left] node {} (n1n0n0n3);
\draw[->, thick] (n1n0n0n0) edge [near start, left] node {Z} (n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0) edge [near start, left] node {} (n1n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0) edge [near start, left] node {} (n1n0n0n0n0n1);
\draw[->, thick] (n1n0n0n0n0) edge [near start, left] node {} (n1n0n0n0n0n2);
\draw[->, thick] (n1n0n0n0n0) edge [near start, left] node {} (n1n0n0n0n0n3);
\draw[->, thick] (n1n0n0n0n0) edge [near start, left] node {} (n1n0n0n0n0n4);
\draw[->, thick] (n1n0n0n0n0n0) edge [near start, right, bend right] node {Z} (n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n1) edge [near start, right, bend right] node {w} (n1n0);
\draw[->, thick] (n1n0n0n0n0n2) edge [near start, left] node {a} (n1n0n0n0n0n2n0);
\draw[->, thick] (n1n0n0n0n0n2) edge [near start, left] node {b} (n1n0n0n0n0n2n1);
\draw[->, thick] (n1n0n0n0n0n2n0) edge [near start, right, bend right] node {Z} (n1n0n0n0n0n2);
\draw[->, thick] (n1n0n0n0n0n2n1) edge [near start, left] node {w} (n1n0n0n0n0n2n1n0);
\draw[->, thick] (n1n0n0n0n0n2n1n0) edge [near start, left] node {u} (n1n0n0n0n0n2n1n0n0);
\draw[->, thick] (n1n0n0n0n0n2n1n0n0) edge [near start, left] node {w} (n1n0n0n0n0n2n1n0n0n0);
\draw[->, thick] (n1n0n0n0n0n2n1n0n0n0) edge [near start, left] node {u} (n1n0n0n0n0n2n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n2n1n0n0n0n0) edge [near start, left] node {w} (n1n0n0n0n0n2n1n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n2n1n0n0n0n0n0) edge [near start, right, bend right] node {u} (n1n0n0n0n0n2);
\draw[->, thick] (n1n0n0n0n0n3) edge [near start, left] node {w} (n1n0n0n0n0n3n0);
\draw[->, thick] (n1n0n0n0n0n3n0) edge [near start, left] node {u} (n1n0n0n0n0n3n0n0);
\draw[->, thick] (n1n0n0n0n0n3n0n0) edge [near start, left] node {w} (n1n0n0n0n0n3n0n0n0);
\draw[->, thick] (n1n0n0n0n0n3n0n0n0) edge [near start, left] node {u} (n1n0n0n0n0n3n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n3n0n0n0n0) edge [near start, left] node {w} (n1n0n0n0n0n3n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n3n0n0n0n0n0) edge [near start, left] node {u} (n1n0n0n0n0n3n0n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n3n0n0n0n0n0n0) edge [near start, left] node {a} (n1n0n0n0n0n3n0n0n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n3n0n0n0n0n0n0) edge [near start, right, bend right] node {b} (n1n0n0n0n0n3);
\draw[->, thick] (n1n0n0n0n0n3n0n0n0n0n0n0n0) edge [near start, right, bend right] node {Z} (n1n0n0n0n0n3n0n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n4) edge [near start, left] node {Z} (n1n0n0n0n0n4n0);
\draw[->, thick] (n1n0n0n0n0n4n0) edge [near start, right, bend right] node {a} (n1n0n0n0n0n4);
\draw[->, thick] (n1n0n0n0n0n4n0) edge [near start, left] node {b} (n1n0n0n0n0n4n0n1);
\draw[->, thick] (n1n0n0n0n0n4n0n1) edge [near start, left] node {w} (n1n0n0n0n0n4n0n1n0);
\draw[->, thick] (n1n0n0n0n0n4n0n1n0) edge [near start, left] node {u} (n1n0n0n0n0n4n0n1n0n0);
\draw[->, thick] (n1n0n0n0n0n4n0n1n0n0) edge [near start, left] node {w} (n1n0n0n0n0n4n0n1n0n0n0);
\draw[->, thick] (n1n0n0n0n0n4n0n1n0n0n0) edge [near start, left] node {u} (n1n0n0n0n0n4n0n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n4n0n1n0n0n0n0) edge [near start, left] node {w} (n1n0n0n0n0n4n0n1n0n0n0n0n0);
\draw[->, thick] (n1n0n0n0n0n4n0n1n0n0n0n0n0) edge [near start, right, bend right] node {u} (n1n0n0n0n0n4n0);
\draw[->, thick] (n1n0n0n1) edge [near start, left, bend left] node {w} (n1n0);
\draw[->, thick] (n1n0n0n2) edge [near start, left] node {w} (n1n0n0n2n0);
\draw[->, thick] (n1n0n0n2n0) edge [near start, left] node {u} (n1n0n0n2n0n0);
\draw[->, thick] (n1n0n0n2n0n0) edge [near start, left] node {w} (n1n0n0n2n0n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0) edge [near start, left] node {u} (n1n0n0n2n0n0n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0n0) edge [near start, left] node {w} (n1n0n0n2n0n0n0n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0) edge [near start, left] node {u} (n1n0n0n2n0n0n0n0n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0n0) edge [near start, left] node {a} (n1n0n0n2n0n0n0n0n0n0n0);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0n0) edge [near start, right, bend right] node {b} (n1n0n0n2);
\draw[->, thick] (n1n0n0n2n0n0n0n0n0n0n0) edge [near start, right, bend right] node {Z} (n1n0n0n2n0n0n0n0n0n0);
\draw[->, thick] (n1n0n0n3) edge [near start, left] node {Z} (n1n0n0n3n0);
\draw[->, thick] (n1n0n0n3n0) edge [near start, right, bend right] node {a} (n1n0n0n3);
\draw[->, thick] (n1n0n0n3n0) edge [near start, left] node {b} (n1n0n0n3n0n1);
\draw[->, thick] (n1n0n0n3n0n1) edge [near start, left] node {w} (n1n0n0n3n0n1n0);
\draw[->, thick] (n1n0n0n3n0n1n0) edge [near start, left] node {u} (n1n0n0n3n0n1n0n0);
\draw[->, thick] (n1n0n0n3n0n1n0n0) edge [near start, left] node {w} (n1n0n0n3n0n1n0n0n0);
\draw[->, thick] (n1n0n0n3n0n1n0n0n0) edge [near start, left] node {u} (n1n0n0n3n0n1n0n0n0n0);
\draw[->, thick] (n1n0n0n3n0n1n0n0n0n0) edge [near start, left] node {w} (n1n0n0n3n0n1n0n0n0n0n0);
\draw[->, thick] (n1n0n0n3n0n1n0n0n0n0n0) edge [near start, right, bend right] node {u} (n1n0n0n3n0);
\draw[->, thick] (n2) edge [near start, left] node {Z} (n2n0);
\draw[->, thick] (n2n0) edge [near start, right, bend right] node {a} (n2);
\draw[->, thick] (n2n0) edge [near start, left] node {b} (n2n0n1);
\draw[->, thick] (n2n0n1) edge [near start, left] node {w} (n2n0n1n0);
\draw[->, thick] (n2n0n1n0) edge [near start, left] node {u} (n2n0n1n0n0);
\draw[->, thick] (n2n0n1n0n0) edge [near start, left] node {w} (n2n0n1n0n0n0);
\draw[->, thick] (n2n0n1n0n0n0) edge [near start, left] node {u} (n2n0n1n0n0n0n0);
\draw[->, thick] (n2n0n1n0n0n0n0) edge [near start, left] node {w} (n2n0n1n0n0n0n0n0);
\draw[->, thick] (n2n0n1n0n0n0n0n0) edge [near start, right, bend right] node {u} (n2n0);

\end{tikzpicture}
\end{tabular}}}
\end{center}
\end{document}
