Scanf this function may be unsafe. Как использовать scanf. scanf short.