#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int* a=new int[10];
	for (int i=0; i<10;i++)
	 a[i]=i+1;
	 cout<<"Before Deallocation"<<endl;
	 
	 for (int i=0; i<10;i++)
	  cout<<a[i]<<endl;
	  
	  delete [] a;
	  
	  cout<<"After Deallocation"<<endl;
	  
	  for (int i=0; i<10;i++)
	  cout<<a[i]<<endl;
	  
	return 0;
}