\documentclass{article}
\usepackage{a4wide}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{automata}
\usepackage{datetime}
\lhead{./certificates/trickySub-trickySup/sim-1273.tex}
\rhead{08:49:42.887 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 = 50
\begin{tikzpicture}[rotate = 0]
%\begin{tikzpicture}[rotate = 90]
\tikzset{initial text=$ $}

\node[accepting, state] at (3,-16) (n0n0n0n0n1n0n1n0) {$q!$\,\ifntiny{\tiny 5659}\fi};
\node[state] at (25,-12) (n1n0n0n1n0n0) {$p!$\,\ifntiny{\tiny 6032}\fi};
\node[state] at (24,-4) (n1n0) {$\cup$\,\ifntiny{\tiny 6037}\fi};
\node[accepting, state] at (5,-10) (n0n0n0n1n0) {$q!$\,\ifntiny{\tiny 5686}\fi};
\node[accepting, state] at (12,-12) (n0n0n1n0n1n0) {$q!$\,\ifntiny{\tiny 5764}\fi};
\node[initial, state] at (16,0) (n) {$p!$\,\ifntiny{\tiny 6039}\fi};
\node[accepting, state] at (20,-16) (n1n0n0n0n0n1n0n1) {$p!$\,\ifntiny{\tiny 5818}\fi};
\node[accepting, state] at (15,-4) (n0n1) {$p!$\,\ifntiny{\tiny 5608}\fi};
\node[accepting, state] at (28,-14) (n1n0n0n1n0n1n0) {$q!$\,\ifntiny{\tiny 5903}\fi};
\node[state] at (24,-18) (n1n0n0n1n0n0n0n0n1) {$p!$\,\ifntiny{\tiny 6027}\fi};
\node[state] at (2,-16) (n0n0n0n0n1n0n0n1) {$p!$\,\ifntiny{\tiny 5941}\fi};
\node[state] at (19,-12) (n1n0n0n0n0n1) {$p!$\,\ifntiny{\tiny 6005}\fi};
\node[accepting, state] at (26,-16) (n1n0n0n1n0n0n0n1) {$p!$\,\ifntiny{\tiny 5884}\fi};
\node[state] at (24,-2) (n1) {$p!$\,\ifntiny{\tiny 6038}\fi};
\node[accepting, state] at (29,-12) (n1n0n0n1n0n1) {$p!$\,\ifntiny{\tiny 5911}\fi};
\node[state] at (3,-10) (n0n0n0n0n1) {$p!$\,\ifntiny{\tiny 5945}\fi};
\node[accepting, state] at (13,-10) (n0n0n1n0n1) {$p!$\,\ifntiny{\tiny 5772}\fi};
\node[state] at (25,-14) (n1n0n0n1n0n0n0) {$\cup$\,\ifntiny{\tiny 6030}\fi};
\node[accepting, state] at (25,-18) (n1n0n0n1n0n0n0n1n0) {$q!$\,\ifntiny{\tiny 5876}\fi};
\node[accepting, state] at (10,-14) (n0n0n1n0n0n0n1) {$p!$\,\ifntiny{\tiny 5742}\fi};
\node[state] at (2,-14) (n0n0n0n0n1n0n0) {$p!$\,\ifntiny{\tiny 5942}\fi};
\node[state] at (9,-12) (n0n0n1n0n0n0) {$\cup$\,\ifntiny{\tiny 5966}\fi};
\node[accepting, state] at (31,-6) (n1n0n1) {$p!$\,\ifntiny{\tiny 5621}\fi};
\node[state] at (10,-8) (n0n0n1n0) {$\cup$\,\ifntiny{\tiny 5974}\fi};
\node[accepting, state] at (4,-14) (n0n0n0n0n1n0n1) {$p!$\,\ifntiny{\tiny 5667}\fi};
\node[state] at (3,-12) (n0n0n0n0n1n0) {$\cup$\,\ifntiny{\tiny 5944}\fi};
\node[state] at (18,-16) (n1n0n0n0n0n1n0n0) {$p!$\,\ifntiny{\tiny 6002}\fi};
\node[state] at (18,-10) (n1n0n0n0n0) {$p!$\,\ifntiny{\tiny 6006}\fi};
\node[accepting, state] at (30,-8) (n1n0n1n0) {$q!$\,\ifntiny{\tiny 5617}\fi};
\node[state] at (9,-10) (n0n0n1n0n0) {$p!$\,\ifntiny{\tiny 5972}\fi};
\node[accepting, state] at (9,-16) (n0n0n1n0n0n0n1n0) {$q!$\,\ifntiny{\tiny 5730}\fi};
\node[state] at (8,-14) (n0n0n1n0n0n0n0) {$p!$\,\ifntiny{\tiny 5964}\fi};
\node[accepting, state] at (14,-6) (n0n1n0) {$q!$\,\ifntiny{\tiny 5604}\fi};
\node[state] at (2,-8) (n0n0n0n0) {$p!$\,\ifntiny{\tiny 5946}\fi};
\node[state] at (3,-6) (n0n0n0) {$\cup$\,\ifntiny{\tiny 5948}\fi};
\node[state] at (7,-4) (n0n0) {$p!$\,\ifntiny{\tiny 5976}\fi};
\node[state] at (11,-12) (n0n0n1n0n0n1) {$p!$\,\ifntiny{\tiny 5971}\fi};
\node[accepting, state] at (22,-10) (n1n0n0n0n1) {$p!$\,\ifntiny{\tiny 5845}\fi};
\node[state] at (26,-8) (n1n0n0n1) {$p!$\,\ifntiny{\tiny 6035}\fi};
\node[state] at (10,-6) (n0n0n1) {$p!$\,\ifntiny{\tiny 5975}\fi};
\node[state] at (19,-14) (n1n0n0n0n0n1n0) {$\cup$\,\ifntiny{\tiny 6004}\fi};
\node[state] at (23,-6) (n1n0n0) {$p!$\,\ifntiny{\tiny 6036}\fi};
\node[accepting, state] at (6,-8) (n0n0n0n1) {$p!$\,\ifntiny{\tiny 5694}\fi};
\node[state] at (18,-18) (n1n0n0n0n0n1n0n0n1) {$p!$\,\ifntiny{\tiny 6001}\fi};
\node[state] at (24,-16) (n1n0n0n1n0n0n0n0) {$p!$\,\ifntiny{\tiny 6028}\fi};
\node[accepting, state] at (19,-18) (n1n0n0n0n0n1n0n1n0) {$q!$\,\ifntiny{\tiny 5810}\fi};
\node[state] at (8,-2) (n0) {$\cup$\,\ifntiny{\tiny 5977}\fi};
\node[state] at (19,-8) (n1n0n0n0) {$\cup$\,\ifntiny{\tiny 6008}\fi};
\node[state] at (26,-10) (n1n0n0n1n0) {$\cup$\,\ifntiny{\tiny 6034}\fi};
\node[accepting, state] at (21,-12) (n1n0n0n0n1n0) {$q!$\,\ifntiny{\tiny 5837}\fi};

\draw[->, thick] (n) edge [near start, left] node {a} (n0);
\draw[->, thick] (n) edge [near start, left] node {b} (n1);
\draw[->, thick] (n0) edge [near start, left] node {} (n0n0);
\draw[->, thick] (n0) edge [near start, left] node {} (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 {} (n0n0n0n0);
\draw[->, thick] (n0n0n0) edge [near start, left] node {} (n0n0n0n1);
\draw[->, thick] (n0n0n0n0) edge [near start, right, bend right] node {a} (n0n0n0);
\draw[->, thick] (n0n0n0n0) edge [near start, left] node {b} (n0n0n0n0n1);
\draw[->, thick] (n0n0n0n0n1) edge [near start, left] node {a} (n0n0n0n0n1n0);
\draw[->, thick] (n0n0n0n0n1n0) edge [near start, left] node {} (n0n0n0n0n1n0n0);
\draw[->, thick] (n0n0n0n0n1n0) edge [near start, left] node {} (n0n0n0n0n1n0n1);
\draw[->, thick] (n0n0n0n0n1n0n0) edge [near start, right, bend right] node {a} (n0n0n0);
\draw[->, thick] (n0n0n0n0n1n0n0) edge [near start, left] node {b} (n0n0n0n0n1n0n0n1);
\draw[->, thick] (n0n0n0n0n1n0n0n1) edge [near start, right, bend right] node {a} (n0n0n0n0n1n0);
\draw[->, thick] (n0n0n0n0n1n0n1) edge [near start, left] node {a} (n0n0n0n0n1n0n1n0);
\draw[->, thick] (n0n0n0n0n1n0n1) edge [near start, above, loop left] node {b} (n0n0n0n0n1n0n1);
\draw[->, thick] (n0n0n0n0n1n0n1n0) edge [near start, right, bend right] node {a} (n0n0n0n0n1n0n1);
\draw[->, thick] (n0n0n0n1) edge [near start, left] node {a} (n0n0n0n1n0);
\draw[->, thick] (n0n0n0n1) edge [near start, above, loop left] node {b} (n0n0n0n1);
\draw[->, thick] (n0n0n0n1n0) edge [near start, right, bend right] node {a} (n0n0n0n1);
\draw[->, thick] (n0n0n1) edge [near start, left] node {a} (n0n0n1n0);
\draw[->, thick] (n0n0n1n0) edge [near start, left] node {} (n0n0n1n0n0);
\draw[->, thick] (n0n0n1n0) edge [near start, left] node {} (n0n0n1n0n1);
\draw[->, thick] (n0n0n1n0n0) edge [near start, left] node {a} (n0n0n1n0n0n0);
\draw[->, thick] (n0n0n1n0n0) edge [near start, left] node {b} (n0n0n1n0n0n1);
\draw[->, thick] (n0n0n1n0n0n0) edge [near start, left] node {} (n0n0n1n0n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0) edge [near start, left] node {} (n0n0n1n0n0n0n1);
\draw[->, thick] (n0n0n1n0n0n0n0) edge [near start, right, bend right] node {a} (n0n0n1n0n0n0);
\draw[->, thick] (n0n0n1n0n0n0n0) edge [near start, right, bend right] node {b} (n0n0n1);
\draw[->, thick] (n0n0n1n0n0n0n1) edge [near start, left] node {a} (n0n0n1n0n0n0n1n0);
\draw[->, thick] (n0n0n1n0n0n0n1) edge [near start, above, loop left] node {b} (n0n0n1n0n0n0n1);
\draw[->, thick] (n0n0n1n0n0n0n1n0) edge [near start, right, bend right] node {a} (n0n0n1n0n0n0n1);
\draw[->, thick] (n0n0n1n0n0n1) edge [near start, left, bend left] node {a} (n0n0n1n0);
\draw[->, thick] (n0n0n1n0n1) edge [near start, left] node {a} (n0n0n1n0n1n0);
\draw[->, thick] (n0n0n1n0n1) edge [near start, above, loop left] node {b} (n0n0n1n0n1);
\draw[->, thick] (n0n0n1n0n1n0) edge [near start, right, bend right] node {a} (n0n0n1n0n1);
\draw[->, thick] (n0n1) edge [near start, left] node {a} (n0n1n0);
\draw[->, thick] (n0n1) edge [near start, above, loop left] node {b} (n0n1);
\draw[->, thick] (n0n1n0) edge [near start, right, bend right] node {a} (n0n1);
\draw[->, thick] (n1) edge [near start, left] node {a} (n1n0);
\draw[->, thick] (n1n0) edge [near start, left] node {} (n1n0n0);
\draw[->, thick] (n1n0) edge [near start, left] node {} (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, right, bend right] node {b} (n1n0n0n1);
\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, left] node {b} (n1n0n0n1n0n0n0n0n1);
\draw[->, thick] (n1n0n0n1n0n0n0n0n1) edge [near start, right, bend right] node {a} (n1n0n0n1n0);
\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] (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] (n1n0n1) edge [near start, above, loop left] node {b} (n1n0n1);
\draw[->, thick] (n1n0n1n0) edge [near start, right, bend right] node {a} (n1n0n1);

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