#include<bits/stdc++.h> using namespace std; int main(){ int n,x,k=1; cin>>n; while(364*x+1092*k!=n){ if((n-1092*k)%364==0){ x=(n-1092*k)/364; } k++; } cout<<x<<endl<<k; return 0; }
只得28分样例3没过不知道哪里不对