#include
using namespace std;
void TwoMerge(int A[], int s, int m, int e)
{
int R[100];
int k = s;
int begin1 = s;
int end1 = m;
int begin2 = m + 1;
int end2 = e;
while(k end1)
R[k++] = A[begin2++];
else if(begin2 > end2)
R[k++] = A[begin1++];
else
{
if(A[begin1]