
import std.conv;
import std.stdio;
import std.string;

void main()
{
	auto s = readln.strip;
	writeln( solve( s ) );
}

auto solve( in string s )
{
	auto n = s.to!int;
	auto sn = 0;
	
	foreach( c; s )
	{
		sn += [ c ].to!int;
	}
	
	return ( n % sn == 0 ) ? "Yes" : "No";
}

unittest
{
	assert( solve( "12" ) == "Yes" );
	assert( solve( "101" ) == "No" );
	assert( solve( "999999999" ) == "Yes" );
}
