#include<iostream> using namespace std; int main(){ int n,s=0,k; cin>>n; while(k--){ cin>>n; while(n){ s+=s*10+s%10; n/=10; } } cout<<s; return 0; }