maxvalue:＝a[1]