#include <stdio.h>
int main(void) {
#include <stdio.h>
int main() {
// Specified number of days to convert
int days = 1329;
int years, weeks, remaining_days;
// Calculate years
years = days / 365;
remaining_days = days % 365;
// Calculate weeks from the remaining days
weeks = remaining_days / 7;
// Calculate remaining days after converting to years and weeks
remaining_days = remaining_days % 7;
// Display the results
printf("Number of days: %d\n", days
); printf("Days: %d\n", remaining_days
);
return 0;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiNpbmNsdWRlIDxzdGRpby5oPgoKaW50IG1haW4oKSB7CiAgICAvLyBTcGVjaWZpZWQgbnVtYmVyIG9mIGRheXMgdG8gY29udmVydAogICAgaW50IGRheXMgPSAxMzI5OyAgCiAgICBpbnQgeWVhcnMsIHdlZWtzLCByZW1haW5pbmdfZGF5czsKCiAgICAvLyBDYWxjdWxhdGUgeWVhcnMKICAgIHllYXJzID0gZGF5cyAvIDM2NTsKICAgIHJlbWFpbmluZ19kYXlzID0gZGF5cyAlIDM2NTsKCiAgICAvLyBDYWxjdWxhdGUgd2Vla3MgZnJvbSB0aGUgcmVtYWluaW5nIGRheXMKICAgIHdlZWtzID0gcmVtYWluaW5nX2RheXMgLyA3OwoKICAgIC8vIENhbGN1bGF0ZSByZW1haW5pbmcgZGF5cyBhZnRlciBjb252ZXJ0aW5nIHRvIHllYXJzIGFuZCB3ZWVrcwogICAgcmVtYWluaW5nX2RheXMgPSByZW1haW5pbmdfZGF5cyAlIDc7CgogICAgLy8gRGlzcGxheSB0aGUgcmVzdWx0cwogICAgcHJpbnRmKCJOdW1iZXIgb2YgZGF5czogJWRcbiIsIGRheXMpOwogICAgcHJpbnRmKCJZZWFyczogJWRcbiIsIHllYXJzKTsKICAgIHByaW50ZigiV2Vla3M6ICVkXG4iLCB3ZWVrcyk7CiAgICBwcmludGYoIkRheXM6ICVkXG4iLCByZW1haW5pbmdfZGF5cyk7CgogICAgcmV0dXJuIDA7Cn0KCXJldHVybiAwOwp9Cg==