#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; typedef long double LD; typedef double D; typedef pair P; typedef pair PD; typedef map M; #define PQ priority_queue #define PQD PQ,greater

> #define PQS PQ> typedef vector vec; typedef vector ves; typedef vector mat; #define cing(a,b,c) a[b].pb(c);a[c].pb(b); #define bit(n) (1LL<<(n)) const ll INF = bit(60); //const ll INF = 8e18; #define fi first #define se second #define cauto const auto& #define rep(i,n) for(long long int i=0;i= (n); --i) #define drep(i, n) drep2(i, n, 0) #define REP(i, n) FOR(i, 0, n) #define fore(i,a) for(const auto &i:a) #define all(x) (x).begin(),(x).end() #define frac(x) x-floor(x) #define eb emplace_back #define pb push_back #define pbd(x,y) push_back({x,y}); #define pbt(x,y,z) push_back({x,y,z}); #define bs binary_search #define lb lower_bound #define ub upper_bound #define SUM(x) accumulate(all(x),0) #define PS(a,b) partial_sum(all(a),begin(b))//累積和(具体的にはbは個数以外空にしておいて格納されていく) #define uni(x) sort(all(x));x.erase(unique(all(x)),x.end()) //重複消去&sort #define fr(f,x) fixed<>a[i];} #define cinvv(a,n,m); rep(i,n){rep(j,m){cin>>a[i][j];}} template inline bool chmax(T& a,T b){if(a < b){a=b;return 1;}return 0;} template inline bool chmin(T& a,T b){if(a > b){a=b;return 1;}return 0;} //const ll mod = 1000000009;//手動で切り替える. //const ll mod = 998244353; const ll mod = 1000000007; ll modpow(ll a,ll n,ll mod){if(mod==1)return 0;ll ret=1;ll p=a%mod;while(n){if(n&1)ret=ret*p%mod;p=p*p%mod;n>>=1;}return ret; } M factor(ll n) {M ret;for(ll i=2;i*i<=n;i++){while(n%i==0){ret[i]++;n /= i;}}if(n != 1){ret[n]=1;}return ret;}//素因数分解 mapにする vec divisor(ll n){vec K;for(ll i=1;i*i<=n;i++){if(n%i==0){K.pb(i);if(i*i!=n)K.pb(n/i);}}sort(all(K));return K;}//約数列挙 cauto& a=divisor(100);的に書く ll modlog(ll a,ll b,ll p){ll g=1;for(ll i=p;i;i/=2)(g*=a)%=p;g=gcd(g,p);ll t=1,c=0;for(;t%g;c++){if(t==b)return c;(t*=a)%=p;}if(b%g){return -1;}t/=g;b /= g;ll n=p/g,h=0,gs=1;for(;h*hbs;for(ll s=0,e=b;sT phi(T n) {T ret=n;for(T i = 2; i * i <= n; i++){if(n % i == 0){ret -= ret / i;while(n % i == 0) n /= i;}}if(n > 1){ret -= ret / n;}return ret;} templateT extgcd(T a, T b, T &x, T &y){T d = a;if(b != 0){d=extgcd(b,a%b,y,x);y -= (a / b) * x;}else {x = 1;y = 0;}return d;} mat mat_mul(mat&a,mat&b){mat res(a.size(),vec(b[0].size()));rep(i,a.size()){rep(j,b[0].size()){rep(k,b.size()){(res[i][j]+=a[i][k]*b[k][j])%=mod;}}}return res;} mat matpow(mat a,ll n){mat res(a.size(),vec(a.size()));rep(i,a.size())res[i][i]=1;while(n>0){if(n & 1)res=mat_mul(a,res);a=mat_mul(a,a);n>>=1;}return res;} /* #include using namespace atcoder; using mint =modint998244353; //using mint =modint1000000009; //using mint =modint1000000007; #define FT(x) fenwick_tree #define SA(s) vec suffix_arry(s) #define LCP(s,a) vec lcp_rray(s,a) #define ZA(s) z_algorithm(s) #define IV(x,m) inv_mod(x,m) #define FS(n,m,a,b) floor_sum(n,m,a,b) #define FFT(a,b,c) vec a=convolution(b,c) */ void ACC(vec a,vec &b){b[0]=0;rrep(i,a.size()){b[i]=b[i-1]+a[i-1];}return;} /* struct BIT_Predecessor { ll N, lg; vector data; BIT_Predecessor() = default; BIT_Predecessor(ll size) { init(size); } void init(ll size) {N=size+2;data.assign(N+1,0);lg=31-__builtin_clz(N);} void insert(ll k){if(get(k)== 1)return;for (++k; k <= N; k += k & -k) data[k] += 1;} void reset(ll k) {if (get(k) == 0) {return;}for (++k; k <= N; k += k & -k) data[k] -= 1;} ll sum(int k) const {ll ret = 0;for (++k; k; k -= k & -k) {ret += data[k];}return ret;} ll get(ll k) const { return sum(k) - sum(k - 1); } ll find_next(ll i) const {ll w = sum(i - 1);ll x = 0;for (ll k = 1 << lg; k; k >>= 1) {if (x + k <= N && data[x + k] <= w) {w -= data[x + k];x += k;}}if (x == N) {return -1;}return x;} ll find_prev(ll i) const {ll w = sum(i) - 1;if (w < 0) {return -1;}ll x = 0;for (ll k = 1 << lg; k; k >>= 1) {if (x + k <= N && data[x + k] <= w) {w -= data[x + k];x += k;}}return x;}}; */ int main(){ cout<>a>>n; cout<