#include "stdafx.h"
#include
#include
using namespace std;
template
bool IsSort(const Contianer& cn)
{
for (auto it= cn.begin(); it!=cn.end(); it++)
{
auto min=cn.begin();
if ( min > *it)
{
return false;
auto min =*it;
}
else
{
return true;
}
}
}
int _tmain(int argc, _TCHAR* argv[])
{
vector vec;
int temp;
while (cin>>temp)
{
vec.push_back(temp);
}
cout<<IsSort(vec);
system("pause");
return 0;
}