long input-to-char