Scanf this function may be unsafe. Scanf short. scanf без амперсанда.