#include <bits/stdc++.h>
using namespace std;
long long n,i,t;
int main()
{
cin>>n;
t=0;
for (i=1; i<=n/2;i++)
if (n%i==0) t=t+i;
if (t==n) cout<<"Day la so hoan hao";
else cout<<''Day khong la so hoan hao";
return 0;
}
#include <bits/stdc++.h>
using namespace std;
long long n,i,t;
int main()
{
cin>>n;
t=0;
for (i=1; i<=n/2;i++)
if (n%i==0) t=t+i;
if (t==n) cout<<"Day la so hoan hao";
else cout<<''Day khong la so hoan hao";
return 0;
}