Ida Grove man badly hurt in crash on M27