#include using namespace std; using namespace std::chrono; using ll = long long; using ull = unsigned long long; using vi = vector; using vl = vector; using vb = vector; using vd = vector; using vs = vector; using vii = vector>; using vll = vector>; #define ALL(x) (x).begin(), (x).end() #define coutY cout << "Yes" << endl; #define coutN cout << "No" << endl; #define arrIn(arr, start, N) for (ll i = (start); i < (N); ++i) cin >> arr[i]; #define arrOut(arr, start, N) for (ll i = (start); i < (N); ++i) { cout << arr[i] <<" "; } cout << endl; #define UNIQUE(A) sort(ALL(A)); A.erase(unique(ALL(A)),A.end()); #define mod9 998244353 #define mod1 1000000007 void yn(bool tf) { cout << (tf ? "Yes\n" : "No\n"); } void YN(bool tf) { cout << (tf ? "YES\n" : "NO\n"); } string ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; string abc="abcdefghijklmnopqrstuvwxyz"; vi dx={0,-1,1,0}; vi dy={-1,0,0,1}; vi ddx={-1,0,1,-1,1,-1,0,1}; vi ddy={-1,-1,-1,0,0,1,1,1}; template using priority_queueR = priority_queue, greater>; //cout << fixed << setprecision(20) << bool kaibun(string S){ string T=S; reverse(ALL(S)); return S==T; } int ketawa(int x){ string S=to_string(x); int sum=0; int len=S.size(); for(int i=0;i(end - start).count()> s >> e >> N; if(N==1){ if(s==e){ cout << s << endl; }else{ cout << -1 << endl; } }else{ cout << s; for(int i=0;i