comparison of input and semaphore