#include <iostream>
#include <Time.h>
using namespace std;

int main()
{
	int n, i, k;

	cout << "Kolichestvo chisel = ";
	cin >> n;

	srand(time(0));
	int *a = new int[n];

	for (int i = 0; i < n; i++)
	{
		a[i] = rand() % 56 - 10;
		cout << a[i] << " ";
	}
	int min = a[0];

	for (i = 0; i<n; i++)
	if (min>a[i]){
		min = a[i];
		k = i;
	}


	cout << endl << endl;
	cout << "Min = " << min << endl << "i = " << k << endl;;

	system("pause");
	return 0;
}
