#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string N; cin >> N; while(N.length() <= 9) N += N; cout << N << endl; }