scan() was changed: now it don't read chars, it read only numbers.

Signed-off-by: yashart <yashart@mail.ru>