made minor change to 1.c
added input support to 1.c