#include #define ll long long using namespace std; #define all(v) v.begin(), v.end() int main() { ll a,n; cin >> a >> n; ll ans = a; n %= 10000019; for(int i=1;i