#include using namespace std; constexpr int MONTH=31; constexpr int WEEK=7; constexpr const char *REST=u8"\U0001f916"; constexpr const char *LEG=u8"\U0001f9Bf"; constexpr const char *ARM=u8"\U0001f9Be"; int main(){ int n; cin>>n; vector rest(n),leg(n); for (int i=0; i>s; if (s.find("rest")!=string::npos){ rest[i]=true; } if (s.find("leg")!=string::npos){ leg[i]=true; } } for (int i=0; i<31; i++){ if (i%WEEK==0){ cout<