# include <stdio.h>
# define MAXN 5
/** eyresi thesis megistou me tin xrisi synartisis **/

void readVector(int x[],int n)
{
	int i;
	for(i=0;i<n;i++)
	{
		printf("Dose stoixeio %d ?",i);
		scanf("%d",&x[i]);
	}
}

int maxVector(int x[], int n)
{
	int i,max=x[0],posmax=0;
	for(i=0;i<n;i++)
	{
		if(x[i]>max) 
		{
			max=x[i];
			posmax=i;
		}
	}
	return posmax;
}

int main()
{
	int x[MAXN];
	int k;
	readVector(x,MAXN);
	k=maxVector(x,MAXN);
	printf("I thesi tou megistou einai %d\n",k);
	return 0;
}
