\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/trickySub-trickySup/sim-2.tex}
\rhead{11:21:56.085 on 2025-03-31}
\fancyfoot{}
\begin{document}
\newif\ifntiny
%\ntinyfalse
\ntinytrue
\thispagestyle{fancy}
\begin{center}
\maxsizebox{!}{0.475\textheight}{
\minsizebox{\textwidth}{!}{
\begin{tabular}{@{}c@{}}
% node count = 60
\begin{tikzpicture}[rotate = 0]
%\begin{tikzpicture}[rotate = 90]
\tikzset{initial text=$ $}

\node[state] at (22,-4) (n1n0) {$p!$\,\ifntiny{\tiny 4314}\fi};
\node[state] at (24,-12) (n1n0n1n0n0n0) {$p!$\,\ifntiny{\tiny 4288}\fi};
\node[accepting, state] at (12,-16) (n1n0n0n0n0n1n0n1) {$p!$\,\ifntiny{\tiny 4167}\fi};
\node[state] at (30,-20) (n1n0n1n0n1n0n0n0n0n1) {$p!$\,\ifntiny{\tiny 4274}\fi};
\node[state] at (6,-4) (n0n1) {$p!$\,\ifntiny{\tiny 4265}\fi};
\node[accepting, state] at (20,-14) (n1n0n0n1n0n1n0) {$q!$\,\ifntiny{\tiny 4160}\fi};
\node[state] at (24,-20) (n1n0n1n0n0n0n1n0n0n1) {$p!$\,\ifntiny{\tiny 4284}\fi};
\node[state] at (31,-14) (n1n0n1n0n1n0n0) {$p!$\,\ifntiny{\tiny 4277}\fi};
\node[accepting, state] at (18,-16) (n1n0n0n1n0n0n0n1) {$p!$\,\ifntiny{\tiny 4059}\fi};
\node[state] at (22,-2) (n1) {$p!$\,\ifntiny{\tiny 4315}\fi};
\node[accepting, state] at (21,-12) (n1n0n0n1n0n1) {$p!$\,\ifntiny{\tiny 4167}\fi};
\node[state] at (30,-18) (n1n0n1n0n1n0n0n0n0) {$p!$\,\ifntiny{\tiny 4275}\fi};
\node[state] at (17,-14) (n1n0n0n1n0n0n0) {$\cup$\,\ifntiny{\tiny 4299}\fi};
\node[accepting, state] at (17,-18) (n1n0n0n1n0n0n0n1n0) {$q!$\,\ifntiny{\tiny 4048}\fi};
\node[state] at (17,-12) (n1n0n0n1n0n0) {$p!$\,\ifntiny{\tiny 4300}\fi};
\node[accepting, state] at (32,-18) (n1n0n1n0n1n0n0n0n1) {$p!$\,\ifntiny{\tiny 3964}\fi};
\node[accepting, state] at (3,-8) (n0n0n1n0) {$p!$\,\ifntiny{\tiny 4199}\fi};
\node[state] at (29,-6) (n1n0n1) {$p!$\,\ifntiny{\tiny 4291}\fi};
\node[state] at (10,-16) (n1n0n0n0n0n1n0n0) {$p!$\,\ifntiny{\tiny 4308}\fi};
\node[accepting, state] at (31,-20) (n1n0n1n0n1n0n0n0n1n0) {$q!$\,\ifntiny{\tiny 3957}\fi};
\node[state] at (25,-16) (n1n0n1n0n0n0n1n0) {$\cup$\,\ifntiny{\tiny 4286}\fi};
\node[accepting, state] at (27,-14) (n1n0n1n0n0n1n0) {$q!$\,\ifntiny{\tiny 3957}\fi};
\node[state] at (25,-14) (n1n0n1n0n0n0n1) {$p!$\,\ifntiny{\tiny 4287}\fi};
\node[state] at (10,-10) (n1n0n0n0n0) {$p!$\,\ifntiny{\tiny 4311}\fi};
\node[state] at (29,-8) (n1n0n1n0) {$p!$\,\ifntiny{\tiny 4290}\fi};
\node[accepting, state] at (2,-10) (n0n0n1n0n0) {$q!$\,\ifntiny{\tiny 4196}\fi};
\node[state] at (32,-10) (n1n0n1n0n1) {$p!$\,\ifntiny{\tiny 4279}\fi};
\node[accepting, state] at (7,-10) (n0n1n0n1n0) {$p!$\,\ifntiny{\tiny 4228}\fi};
\node[state] at (6,-6) (n0n1n0) {$p!$\,\ifntiny{\tiny 4264}\fi};
\node[accepting, state] at (26,-18) (n1n0n1n0n0n0n1n0n1) {$p!$\,\ifntiny{\tiny 3931}\fi};
\node[accepting, state] at (25,-20) (n1n0n1n0n0n0n1n0n1n0) {$q!$\,\ifntiny{\tiny 3924}\fi};
\node[state] at (19,-14) (n1n0n0n1n0n0n1) {$p!$\,\ifntiny{\tiny 4296}\fi};
\node[initial, state] at (18,0) (n) {$\cup$\,\ifntiny{\tiny 4316}\fi};
\node[accepting, state] at (35,-14) (n1n0n1n0n1n0n1) {$p!$\,\ifntiny{\tiny 3992}\fi};
\node[accepting, state] at (0,-8) (n0n0n0n0) {$q!$\,\ifntiny{\tiny 4184}\fi};
\node[accepting, state] at (1,-6) (n0n0n0) {$p!$\,\ifntiny{\tiny 4187}\fi};
\node[state] at (2,-4) (n0n0) {$p!$\,\ifntiny{\tiny 4248}\fi};
\node[accepting, state] at (28,-12) (n1n0n1n0n0n1) {$p!$\,\ifntiny{\tiny 3964}\fi};
\node[accepting, state] at (14,-10) (n1n0n0n0n1) {$p!$\,\ifntiny{\tiny 4139}\fi};
\node[state] at (31,-16) (n1n0n1n0n1n0n0n0) {$\cup$\,\ifntiny{\tiny 4276}\fi};
\node[state] at (18,-8) (n1n0n0n1) {$p!$\,\ifntiny{\tiny 4302}\fi};
\node[state] at (3,-6) (n0n0n1) {$p!$\,\ifntiny{\tiny 4247}\fi};
\node[state] at (11,-14) (n1n0n0n0n0n1n0) {$\cup$\,\ifntiny{\tiny 4309}\fi};
\node[state] at (15,-6) (n1n0n0) {$p!$\,\ifntiny{\tiny 4313}\fi};
\node[accepting, state] at (5,-8) (n0n1n0n0) {$p!$\,\ifntiny{\tiny 4216}\fi};
\node[accepting, state] at (6,-12) (n0n1n0n1n0n0) {$q!$\,\ifntiny{\tiny 4225}\fi};
\node[state] at (10,-18) (n1n0n0n0n0n1n0n0n1) {$p!$\,\ifntiny{\tiny 4307}\fi};
\node[state] at (16,-16) (n1n0n0n1n0n0n0n0) {$p!$\,\ifntiny{\tiny 4298}\fi};
\node[accepting, state] at (34,-16) (n1n0n1n0n1n0n1n0) {$q!$\,\ifntiny{\tiny 3985}\fi};
\node[accepting, state] at (11,-18) (n1n0n0n0n0n1n0n1n0) {$q!$\,\ifntiny{\tiny 4160}\fi};
\node[state] at (4,-2) (n0) {$p!$\,\ifntiny{\tiny 4266}\fi};
\node[state] at (25,-10) (n1n0n1n0n0) {$\cup$\,\ifntiny{\tiny 4289}\fi};
\node[state] at (32,-12) (n1n0n1n0n1n0) {$\cup$\,\ifntiny{\tiny 4278}\fi};
\node[state] at (24,-18) (n1n0n1n0n0n0n1n0n0) {$p!$\,\ifntiny{\tiny 4285}\fi};
\node[accepting, state] at (4,-10) (n0n1n0n0n0) {$q!$\,\ifntiny{\tiny 4213}\fi};
\node[state] at (11,-12) (n1n0n0n0n0n1) {$p!$\,\ifntiny{\tiny 4310}\fi};
\node[state] at (11,-8) (n1n0n0n0) {$\cup$\,\ifntiny{\tiny 4312}\fi};
\node[state] at (18,-10) (n1n0n0n1n0) {$\cup$\,\ifntiny{\tiny 4301}\fi};
\node[state] at (7,-8) (n0n1n0n1) {$p!$\,\ifntiny{\tiny 4263}\fi};
\node[accepting, state] at (13,-12) (n1n0n0n0n1n0) {$q!$\,\ifntiny{\tiny 4132}\fi};

\draw[->, thick] (n) edge [near start, left] node {} (n0);
\draw[->, thick] (n) edge [near start, left] node {} (n1);
\draw[->, thick] (n0) edge [near start, left] node {a} (n0n0);
\draw[->, thick] (n0) edge [near start, left] node {b} (n0n1);
\draw[->, thick] (n0n0) edge [near start, left] node {a} (n0n0n0);
\draw[->, thick] (n0n0) edge [near start, left] node {b} (n0n0n1);
\draw[->, thick] (n0n0n0) edge [near start, left] node {a} (n0n0n0n0);
\draw[->, thick] (n0n0n0) edge [near start, above, loop left] node {b} (n0n0n0);
\draw[->, thick] (n0n0n0n0) edge [near start, right, bend right] node {a} (n0n0n0);
\draw[->, thick] (n0n0n1) edge [near start, left] node {a} (n0n0n1n0);
\draw[->, thick] (n0n0n1n0) edge [near start, left] node {a} (n0n0n1n0n0);
\draw[->, thick] (n0n0n1n0) edge [near start, above, loop left] node {b} (n0n0n1n0);
\draw[->, thick] (n0n0n1n0n0) edge [near start, right, bend right] node {a} (n0n0n1n0);
\draw[->, thick] (n0n1) edge [near start, left] node {a} (n0n1n0);
\draw[->, thick] (n0n1n0) edge [near start, left] node {a} (n0n1n0n0);
\draw[->, thick] (n0n1n0) edge [near start, left] node {b} (n0n1n0n1);
\draw[->, thick] (n0n1n0n0) edge [near start, left] node {a} (n0n1n0n0n0);
\draw[->, thick] (n0n1n0n0) edge [near start, above, loop left] node {b} (n0n1n0n0);
\draw[->, thick] (n0n1n0n0n0) edge [near start, right, bend right] node {a} (n0n1n0n0);
\draw[->, thick] (n0n1n0n1) edge [near start, left] node {a} (n0n1n0n1n0);
\draw[->, thick] (n0n1n0n1n0) edge [near start, left] node {a} (n0n1n0n1n0n0);
\draw[->, thick] (n0n1n0n1n0) edge [near start, above, loop left] node {b} (n0n1n0n1n0);
\draw[->, thick] (n0n1n0n1n0n0) edge [near start, right, bend right] node {a} (n0n1n0n1n0);
\draw[->, thick] (n1) edge [near start, left] node {a} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left] node {a} (n1n0n0);
\draw[->, thick] (n1n0) edge [near start, left] node {b} (n1n0n1);
\draw[->, thick] (n1n0n0) edge [near start, left] node {a} (n1n0n0n0);
\draw[->, thick] (n1n0n0) edge [near start, left] node {b} (n1n0n0n1);
\draw[->, thick] (n1n0n0n0) edge [near start, left] node {} (n1n0n0n0n0);
\draw[->, thick] (n1n0n0n0) edge [near start, left] node {} (n1n0n0n0n1);
\draw[->, thick] (n1n0n0n0n0) edge [near start, right, bend right] node {a} (n1n0n0n0);
\draw[->, thick] (n1n0n0n0n0) edge [near start, left] node {b} (n1n0n0n0n0n1);
\draw[->, thick] (n1n0n0n0n0n1) edge [near start, left] node {a} (n1n0n0n0n0n1n0);
\draw[->, thick] (n1n0n0n0n0n1n0) edge [near start, left] node {} (n1n0n0n0n0n1n0n0);
\draw[->, thick] (n1n0n0n0n0n1n0) edge [near start, left] node {} (n1n0n0n0n0n1n0n1);
\draw[->, thick] (n1n0n0n0n0n1n0n0) edge [near start, right, bend right] node {a} (n1n0n0n0);
\draw[->, thick] (n1n0n0n0n0n1n0n0) edge [near start, left] node {b} (n1n0n0n0n0n1n0n0n1);
\draw[->, thick] (n1n0n0n0n0n1n0n0n1) edge [near start, right, bend right] node {a} (n1n0n0n0n0n1n0);
\draw[->, thick] (n1n0n0n0n0n1n0n1) edge [near start, left] node {a} (n1n0n0n0n0n1n0n1n0);
\draw[->, thick] (n1n0n0n0n0n1n0n1) edge [near start, above, loop left] node {b} (n1n0n0n0n0n1n0n1);
\draw[->, thick] (n1n0n0n0n0n1n0n1n0) edge [near start, right, bend right] node {a} (n1n0n0n0n0n1n0n1);
\draw[->, thick] (n1n0n0n0n1) edge [near start, left] node {a} (n1n0n0n0n1n0);
\draw[->, thick] (n1n0n0n0n1) edge [near start, above, loop left] node {b} (n1n0n0n0n1);
\draw[->, thick] (n1n0n0n0n1n0) edge [near start, right, bend right] node {a} (n1n0n0n0n1);
\draw[->, thick] (n1n0n0n1) edge [near start, left] node {a} (n1n0n0n1n0);
\draw[->, thick] (n1n0n0n1n0) edge [near start, left] node {} (n1n0n0n1n0n0);
\draw[->, thick] (n1n0n0n1n0) edge [near start, left] node {} (n1n0n0n1n0n1);
\draw[->, thick] (n1n0n0n1n0n0) edge [near start, left] node {a} (n1n0n0n1n0n0n0);
\draw[->, thick] (n1n0n0n1n0n0) edge [near start, left] node {b} (n1n0n0n1n0n0n1);
\draw[->, thick] (n1n0n0n1n0n0n0) edge [near start, left] node {} (n1n0n0n1n0n0n0n0);
\draw[->, thick] (n1n0n0n1n0n0n0) edge [near start, left] node {} (n1n0n0n1n0n0n0n1);
\draw[->, thick] (n1n0n0n1n0n0n0n0) edge [near start, right, bend right] node {a} (n1n0n0n1n0n0n0);
\draw[->, thick] (n1n0n0n1n0n0n0n0) edge [near start, right, bend right] node {b} (n1n0n0n1);
\draw[->, thick] (n1n0n0n1n0n0n0n1) edge [near start, left] node {a} (n1n0n0n1n0n0n0n1n0);
\draw[->, thick] (n1n0n0n1n0n0n0n1) edge [near start, above, loop left] node {b} (n1n0n0n1n0n0n0n1);
\draw[->, thick] (n1n0n0n1n0n0n0n1n0) edge [near start, right, bend right] node {a} (n1n0n0n1n0n0n0n1);
\draw[->, thick] (n1n0n0n1n0n0n1) edge [near start, left, bend left] node {a} (n1n0n0n1n0);
\draw[->, thick] (n1n0n0n1n0n1) edge [near start, left] node {a} (n1n0n0n1n0n1n0);
\draw[->, thick] (n1n0n0n1n0n1) edge [near start, above, loop left] node {b} (n1n0n0n1n0n1);
\draw[->, thick] (n1n0n0n1n0n1n0) edge [near start, right, bend right] node {a} (n1n0n0n1n0n1);
\draw[->, thick] (n1n0n1) edge [near start, left] node {a} (n1n0n1n0);
\draw[->, thick] (n1n0n1n0) edge [near start, left] node {a} (n1n0n1n0n0);
\draw[->, thick] (n1n0n1n0) edge [near start, left] node {b} (n1n0n1n0n1);
\draw[->, thick] (n1n0n1n0n0) edge [near start, left] node {} (n1n0n1n0n0n0);
\draw[->, thick] (n1n0n1n0n0) edge [near start, left] node {} (n1n0n1n0n0n1);
\draw[->, thick] (n1n0n1n0n0n0) edge [near start, right, bend right] node {a} (n1n0n1n0n0);
\draw[->, thick] (n1n0n1n0n0n0) edge [near start, left] node {b} (n1n0n1n0n0n0n1);
\draw[->, thick] (n1n0n1n0n0n0n1) edge [near start, left] node {a} (n1n0n1n0n0n0n1n0);
\draw[->, thick] (n1n0n1n0n0n0n1n0) edge [near start, left] node {} (n1n0n1n0n0n0n1n0n0);
\draw[->, thick] (n1n0n1n0n0n0n1n0) edge [near start, left] node {} (n1n0n1n0n0n0n1n0n1);
\draw[->, thick] (n1n0n1n0n0n0n1n0n0) edge [near start, right, bend right] node {a} (n1n0n1n0n0);
\draw[->, thick] (n1n0n1n0n0n0n1n0n0) edge [near start, left] node {b} (n1n0n1n0n0n0n1n0n0n1);
\draw[->, thick] (n1n0n1n0n0n0n1n0n0n1) edge [near start, right, bend right] node {a} (n1n0n1n0n0n0n1n0);
\draw[->, thick] (n1n0n1n0n0n0n1n0n1) edge [near start, left] node {a} (n1n0n1n0n0n0n1n0n1n0);
\draw[->, thick] (n1n0n1n0n0n0n1n0n1) edge [near start, above, loop left] node {b} (n1n0n1n0n0n0n1n0n1);
\draw[->, thick] (n1n0n1n0n0n0n1n0n1n0) edge [near start, right, bend right] node {a} (n1n0n1n0n0n0n1n0n1);
\draw[->, thick] (n1n0n1n0n0n1) edge [near start, left] node {a} (n1n0n1n0n0n1n0);
\draw[->, thick] (n1n0n1n0n0n1) edge [near start, above, loop left] node {b} (n1n0n1n0n0n1);
\draw[->, thick] (n1n0n1n0n0n1n0) edge [near start, right, bend right] node {a} (n1n0n1n0n0n1);
\draw[->, thick] (n1n0n1n0n1) edge [near start, left] node {a} (n1n0n1n0n1n0);
\draw[->, thick] (n1n0n1n0n1n0) edge [near start, left] node {} (n1n0n1n0n1n0n0);
\draw[->, thick] (n1n0n1n0n1n0) edge [near start, left] node {} (n1n0n1n0n1n0n1);
\draw[->, thick] (n1n0n1n0n1n0n0) edge [near start, left] node {a} (n1n0n1n0n1n0n0n0);
\draw[->, thick] (n1n0n1n0n1n0n0) edge [near start, right, bend right] node {b} (n1n0n1n0n1);
\draw[->, thick] (n1n0n1n0n1n0n0n0) edge [near start, left] node {} (n1n0n1n0n1n0n0n0n0);
\draw[->, thick] (n1n0n1n0n1n0n0n0) edge [near start, left] node {} (n1n0n1n0n1n0n0n0n1);
\draw[->, thick] (n1n0n1n0n1n0n0n0n0) edge [near start, right, bend right] node {a} (n1n0n1n0n1n0n0n0);
\draw[->, thick] (n1n0n1n0n1n0n0n0n0) edge [near start, left] node {b} (n1n0n1n0n1n0n0n0n0n1);
\draw[->, thick] (n1n0n1n0n1n0n0n0n0n1) edge [near start, right, bend right] node {a} (n1n0n1n0n1n0);
\draw[->, thick] (n1n0n1n0n1n0n0n0n1) edge [near start, left] node {a} (n1n0n1n0n1n0n0n0n1n0);
\draw[->, thick] (n1n0n1n0n1n0n0n0n1) edge [near start, above, loop left] node {b} (n1n0n1n0n1n0n0n0n1);
\draw[->, thick] (n1n0n1n0n1n0n0n0n1n0) edge [near start, right, bend right] node {a} (n1n0n1n0n1n0n0n0n1);
\draw[->, thick] (n1n0n1n0n1n0n1) edge [near start, left] node {a} (n1n0n1n0n1n0n1n0);
\draw[->, thick] (n1n0n1n0n1n0n1) edge [near start, above, loop left] node {b} (n1n0n1n0n1n0n1);
\draw[->, thick] (n1n0n1n0n1n0n1n0) edge [near start, right, bend right] node {a} (n1n0n1n0n1n0n1);

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