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

#define pra(i,k,n) for(i=k;i<n;i++)
#define all(a) a.begin(), b.begin()

int main() {
    string s; cin >> s;
    int i, n = s.size();
    string t = "";
    pra(i,0,n) {
        if (s[i]=='.') break;
        t += s[i];
    }
    cout << t << '\n';
    return 0;
}
#include<iostream>
#include<vector>
#include<math.h>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
using namespace std;
long long int mod = 1e9+7;

int main(){
	long long int n;
	cin>>n;
	vector<long long int>a(1000000,0);
	for (long long int i = 0;(i+1)*(i+1)<=n;i++){
		if(n%(i+1)==0){
			printf("%lld\n",i+1);
			if((i+1)*(i+1)!=n){
				a[i] = n/(i+1);
			}
		}
	}
	rep(i,1000000){
		if(a[1000000-i-1]!=0){
			printf("%lld\n",a[1000000-i-1]);
		}
	}

	
	return 0;
}