input & result mode