#include int main() { int i, n,k,t; int max=1; int min=1000; scanf("%d %d",&n,&k); for(i=0;it){ min=t; } /*}*/ } printf("%d",max-min); return 0; }