fixed input.c for bagasmi, now compiles