#include <bits/stdc++.h> 
using namespace std; 

int w(int x)
{
	int y;
	for(int i=1;i<=x-1;i++)if(x%i==0) y+=i;
	x=y;
	return x;
	
	
	
}

int main() 
{
	int a;
	cin>>a;
	for(int i=1;i<=a-1;i++)
	{
		if(i==w(i))cout<<i;
		
		
	}
	
	
	
	
	
	
 	return 0;
}

0 comments

No comments so far...