\documentclass{article}

%% main.tex
\begin{document}

\input{sub1/file.tex}

\input{sub1/subsub/subsubfile.tex}

\input{sub2/file1.tex}

\input{sub2/file2.tex}

\end{document}
