#define ll long long int
#define fast                          \
    ios_base::sync_with_stdio(false); \
    cin.tie(NULL);                    \
    cout.tie(NULL);
#include <bits/stdc++.h>
using namespace std;

void solve()
{
  string s;
  cin >> s;
  string t = "";
  for(int i=0; i<s.size(); i++){
    if(s[i] == '.'){break;}
    else{t += s[i];}
  }
  cout << t << "\n";
}

int main()
{
    fast;
    solve();
    return 0;
}

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

#define fastIO ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
typedef long long ll ;
typedef unsigned long long ull ;
typedef long double ld ;

const ll MOD = 1E9 + 7, INF = 2E18 + 5 ;
const double PI = 2 * acos(0.0) ;
const long double EPS = 1.0E-14 ;

vector <ll> vec ;

int main()
{
    ll n, lim ;
    cin >> n ;
    lim = sqrt(n) ;
    for (int i = 1; i <= lim; i++) {
        if (n % i == 0) {
            if (n / i != i) {
                vec.push_back(i) ;
                vec.push_back(n / i) ;
            }
            else {
                vec.push_back(n / i) ;
            }
        }
    }
    sort(vec.begin(), vec.end()) ;
    for (int i = 0; i < vec.size(); i++) {
        cout << vec[i] << "\n" ;
    }


    return 0 ;
}
