#include <bits/stdc++.h>   using namespace std;   const int maxN = 1000 * 1000;   const int mod = 1000 * 1000 + 3;   string com =  ><+-.,[] ;   int main() {     string s;     cin >> s;     int res = 0;     for (int i = 0; i < s.size(); i++)       res = (res << 4) % mod, res = (res + 8 + com.find(s[i])) % mod;     cout << res << endl;     return 0;   }   