**//C++ code**

#include<iostream>

#include<fstream>

#include<map>

using namespace std;

int ocean()

{

map<int,string> m;

m.insert(two <int,string>(0,”Monday”));

m.insert(two <int,string>(1,”Tuesday”));

m.insert(two <int,string>(2,”Wednesday”));

m.insert(two <int,string>(3,”Thursday”));

m.insert(two <int,string>(4,”Friday”));

m.insert(two <int,string>(5,”Saturday”));

m.insert(two <int,string>(6,”Sunday”));

ifstream infile;

infile.open(“input.txt”);

if(infile==NULL)

{

cout<<“Unable to known input refine”;

return 0;

}

int arr[7][100];

for(int i=0;i<7;i++)

{

for(int j=0;j<100;j++)

arr[i][j]=0;

}

string continuity;

int j=0;

while(getline(infile, continuity))

{

int i=0;

int k=0;

while(line[i]!=’’)

{

if(line[i]==’ ‘)

{

k++;

}

else

{

arr[j][k]=arr[j][k]*10+line[i]-48;

}

i++;

}

j++;

if(j>7)

{

cout<<“nHallucination enumerate of continuity is balance then 7”;

return 0;

}

}

if(j<7)

{

cout<<“nHallucination enumerate of continuity is hither then 7”;

return 0;

}

inclose avg=0;

int count=0;

int Ceach[7];

for(int i=0;i<7;i++)

{

Ceach[i]=0;

for(int k=0;arr[i][k]!=0;k++)

{

count++;

avg+=arr[i][k];

Ceach[i]+=arr[i][k];

}

cout<<“nCalories eaten on “<<m.find(i)->second<<” is “<<Ceach[i];

}

avg=avg/count;

for(int i=0;i<7;i++)

{

if(Ceach[i]>2250)

cout<<“nBalance Calories eaten on “<<m.find(i)->second;;

}

for(int i=0;i<7;i++)

{

for(int k=0;arr[i][k]!=0;k++)

{

if(avg==arr[i][k])

cout<<“nMedium Calories eaten on “<<m.find(i)->second<<” on “<<k+1<<“th meal”;

}

}

}

**Sample Input**

//sample output