#include <iostream>
using std::cout;
using std::cin;
using std::endl;

int main()
{
	int n, minOdd = 9;
	int temp;
	bool found = false;

	cout << "Enter n: ";
	cin >> n;

	while(n != 0)
	{
		temp = n % 10;

		if(minOdd > temp && temp % 2 != 0)
		{
			minOdd = temp;
			found = true;
		}

		n /= 10;
	}

	if(found)
	{
		cout << "The smallest odd digit = " << minOdd << endl;
	}
	else
		cout << "No odd digits" << endl;

	return 0;
}