\documentclass[10pt]{article}

\usepackage{psboxit, fancyhdr, russcorr, russlh}


\addtolength{\topmargin}{-5mm}
\addtolength{\textheight}{40mm}
\addtolength{\oddsidemargin}{-25mm}
\addtolength{\textwidth}{45mm}


\newcommand{\version}{version 1.0,\ \   05.11.2010}

\pagestyle{fancy} 
\lhead{\tiny НМУ, осень 2010, второй курс} 
\lfoot{\tiny Теория меры, НМУ, второй курс } 
\cfoot{-- \thepage \ -- } \rfoot{\tiny осень 2010,
  ведомость к листкам 4, 5, 6,\ \ \sc\version}
\rhead{{\tiny  Миша Вербицкий}}



\def\spp{$\underline{\hspace{50mm}}$}
\def\spq{$\underline{\hspace{20mm}}$}
\def\spr{$\underline{\hspace{36mm}}$}

\def\mc{\multicolumn{2}{|c|}}

\def\dtt{{Дата\hspace{1em}}}
\def\pdp{{Подпись\hspace{1em}}}

\def\grd{\hfil\psboxit{box .7 setgray fill}{\phantom{\ \ \ \dtt\ \ \ }}\vphantom{666}\hfil}
\def\grp{\hfil\psboxit{box .7 setgray fill}{\phantom{\ \  \pdp\ \ \ }}\vphantom{666}\hfil}

\def\cl{\cline{2-4}}

\def\vedomostsize{\footnotesize}

\begin{document}

{\bf\large Фамилия\spp Школа, город\spp}

\medskip

{\bf\large Год окончания школы\spq Где учитесь днем\spr}

\hfill

{\bf \LARGE Теория меры, листки 4-6 (ведомость)} 

\smallskip

\begin{tabular}{cccc}

\vedomostsize

\begin{tabular}[t]
{|c|c|@{}c@{}|@{}c@{}|}
\hline
\mc{$N^0$} & \dtt & \pdp\\ \hline
\input{mera-4.vdm}
\end{tabular}& \vedomostsize

\begin{tabular}[t]
{|c|c|@{}c@{}|@{}c@{}|}
\hline
\mc{$N^0$} & \dtt & \pdp\\ \hline
\input{mera-5.vdm}
\end{tabular}
& \vedomostsize

\begin{tabular}[t]
{|c|c|@{}c@{}|@{}c@{}|}
\hline
\mc{$N^0$} & \dtt & \pdp\\ \hline
\input{mera-6.vdm}
\end{tabular}
& \vedomostsize
\end{tabular}


\end{document}
