#include #include #include #include using namespace std; #define ll long long void Aror() { ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr); #ifndef ONLINE_JUDGE freopen("inp.txt", "r", stdin); freopen("out.txt", "w", stdout); #endif } int main() { Aror(); int x; cin >> x; if (x % 365) { cout << x / 365 << " years" << "\n"; } if (x % 365 || (x % 365) % 30) { cout << (x % 365) / 30 << " months" << "\n"; } if ((x % 365) || ((x % 365) / 30) || ((x % 365) % 30)) { cout << ((x % 365) % 30) << " days" << "\n"; } return 0; }