u:=8mm;

beginfig(1);
    pair left,right,now;
    right:=(u,-u);
    left:=(-u,-u);
    now=(0,0);
    a=1;
    dotlabel.top("1", now);
    draw now--(now+right);
    
    now:=now+right;
    dotlabel.top("2", now);
    
    draw now--(now+right);
    dotlabel.top("3", now+right);
    
    draw now--(now+left);
    now:=now+left;
    dotlabel.top("4", now);
    
    draw now--(now+left);
    dotlabel.top("5", now+left);
    
    draw now--(now+right);
    now:=now+right;
    dotlabel.top("6", now);
    
    draw now--(now+right);
    dotlabel.top("7", now+right);
    
    draw now--(now+left);
    now:=now+left;
    dotlabel.top("8", now);
    
    draw now--(now+left);
    dotlabel.top("9", now+left);
    
    draw now--(now+right);
    now:=now+right;
    dotlabel.top("10", now);
endfig;

end.
