How to use STDOUT to get sign.