#include #define rep(i,n) for(int i = 0;i days_of_months[m] ){ d -= days_of_months[m]; m++; } return zeroLed2(m) + zeroLed2(d); } int main() { int m, d, k; cin >> m >> d >> k; string buf = ""; int days = 7; while(days--) buf += date_diff (m, d, days); set numKind; rep(i, buf.size()) numKind.insert(buf[i]); yesif(numKind.size()>=k); return 0; }