/*
 * Copyright 1990 by Baylor College of Medicine ALL RIGHTS RESERVED. 
 *
 * This program is subject to a license agreement between 
 * Baylor College of Medicine and MIT. Any use inconsistent with
 * said license and any use by persons other than the faculty, 
 * students and staff at MIT or any use on a computer not operated 
 * as part of the Athena Computing Environment (ACE) is expressly 
 * prohibited.
 */
#include <stdio.h>
#include "qstr.dfa"

main(argc,argv)
	char *argv[] ;
{
	int state = START_STATE_qstr ;
	char *s = argv[1] ;
	while(*s)
	{
		state = qstr_states[state].transitions[*s++] ;
	}
	printf("%s\n",qstr_states[state].is_final ? "Accepted" : "Rejected") ;
}
