#include using namespace std; using ll=long long; int main(){ ll n; cin>>n; ll q,r; ll rest=n; vector ans; q=rest/720; rest-=q*720; for(ll i=0;i