http://codeforces.com/problemset/problem/260/A
#define _GLIBCXX_DEBUG//Iterator safety; out-of-bounds access for Containers, etc.
#include<bits/stdc++.h>
#pragma GCC optimize "trapv"// abort() on (signed) integer overflow.
using namespace std;
int main(){
int a,b,n,l;
cin>>a>>b>>n;
if(n==0)
cout<<a;
else{
bool flag=false;
for(int k=0;k<=9;k++){
string s=to_string(k);
string h= to_string(a);
int l=stoi(s+h);
if(l%k==0) {
a=l;
flag=true;
break;
}
}
if(flag){
int x=n-1;
cout<<a;
while(x--) cout<<"0";
}
else cout<<"-1";
}
return 0;
}