#include using namespace std; using Int=long long; using Real=long double; templateinline bool chmin(T&A,S B){return(A>B?A=B,1:0);} templateinline bool chmax(T&A,S B){return(A>N; for(;i*5<=N;++i)for(j=0;i>=j&&i*5+j*2<=N;++j)ans+=!((N-i*5-j*2)%3); cout<>T; while(T--)sol(); }