Pseudorapidity dependence of $\pt$-integrated $v_2$ as measured in different p$-$Pb centrality classes and as obtained from the AMPT calculation with the string melting configuration. The $v_2$ were extracted using the improved-template-fit method and the peripheral subtraction.