#include <stdio.h> int main(){ int i,a[20],min = 0,t,dex; for(i = 0;i < 10;i++){ scanf("%d",&a[i]); } min = a[0]; for(i = 1;i < 10;i++){ if(a[i] < min){ min = a[i]; dex = i; } } t = a[9]; a[9] = a[dex]; a[dex] = t; for(i = 0;i < 10;i++) printf("%d ",a[i]); return 0; }