%{
#include <stdio.h>
%}

%%

[01]*0      { printf("Accepted\n"); }

.*          { printf("Rejected\n"); }

%%

int main()
{
    printf("Enter string for language consisting of binary strings ending with 0:\n");
    yylex();
    return 0;
}

int yywrap()
{
    return 1;
}
