\documentclass[12pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage{amsmath}
\usepackage{tcolorbox}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{lastpage}
\usepackage{fancyhdr}
\usepackage{accents}
\pagestyle{fancy}
\setlength{\headheight}{40pt}
\newenvironment{solution}
{\renewcommand\qedsymbol{$\blacksquare$}
\begin{proof}[Solution]}
{\end{proof}}
\renewcommand\qedsymbol{$\blacksquare$}
\newcommand{\ubar}[1]{\underaccent{\bar}{#1}}
% above are packages, settings, and declarations
\begin{document}
\lhead{Sonny Kothapally (SRN: xxxxxxxxxx)}
\rhead{CO1102 2017-18}
\begin{align*}
\fbox{\textbf{COURSEWORK 1}}
\end{align*}
\cfoot{\thepage\ of \pageref{LastPage}}
\begin{enumerate}
\item \input{problem_1}
% add more problem files here
\end{enumerate}
\end{document}