#include using namespace std; typedef vector vi; typedef pair pii; typedef long long ll; #define FOR(i,a,b) for(int i=(a);i<(b);i++) #define REP(i,n) FOR(i,0,n) #define INF 1e9 int main(){ const int N =14; char days[N]; int D; cin >> D ; for(int i =0;i> days[i] ; int l = 0; int ans=0; while(l