#include #if __has_include() #endif using namespace std; #define LL(...) ll __VA_ARGS__;lin(__VA_ARGS__) #define STRING(...) string __VA_ARGS__;lin(__VA_ARGS__) #define defpp templatevoid pp(const auto&...a){[[maybe_unused]]const char*c="";((o<(a...);} #define entry defpp void main();void main2();}int main(){my::io();my::main();}namespace my{ namespace my{ void io(){cin.tie(nullptr)->sync_with_stdio(0);cout<>...>>a);} } namespace my{entry void main(){ LL(L); STRING(s); if(s=="Beat")L++; pp(vector{390,429,468,507,546}[L-1]); }}