#include using namespace std; using ll=long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); vector A={390,429,468,507,546}; int L; string S; cin>>L>>S; cout<