for i in `seq 1 $1`;
do
	lctl clear
	lctl mark "starting"
	./a.out
	if [ $? -eq 1 ];
	then
	lctl mark "stopped"
	#lctl debug_daemon stop
	rm output
	break;
	fi
	rm output
done
#lctl debug_daemon stop
