#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; while(n){ printf("%03d",n); n/=10; } return 0; }