\documentclass[12pt,a4paper]{report}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{fancyhdr}
\usepackage{listings}
\usepackage{abstract}
\usepackage{graphicx}
\usepackage{xspace}
\usepackage[italian]{babel}
\usepackage{dsfont}
\usepackage{color}
\usepackage{longtable}

\author{Germano Rocco}

\pagestyle{fancy}\addtolength{\headwidth}{14pt}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection \ #1}{}}
\cfoot{}

\rhead[\fancyplain{}{\bfseries\leftmark}]{\fancyplain{}{\bfseries\thepage}}
\lhead[\fancyplain{}{\bfseries\thepage}]{\fancyplain{}{\bfseries\rightmark}}


\begin{document}


\end{document}
