#include using namespace std; typedef long long ll; ll B,N,A[10]; ll getLim(){ ll ret=B; for(int i=0;i0?val:val*-1; } int main(){ scanf("%lld%lld",&B,&N); for(int i=0;ito; if(A[(N-1)/2]*N>lim)to.push_back(lim); else{ for(int i=0;i<=1;i++){ to.push_back(A[(N-i)/2]); } } ll ans=LLONG_MAX; for(int i=0;i