Unary is a minimalistic Brainfuck dialect in which programs are written using only one token. 

Brainfuck programs use 8 commands: "+", "-", "[", "]", "&lt;", "&gt;", "." and "," (their meaning is not important for the purposes of this problem). Unary programs are created from Brainfuck programs using the following algorithm. First, replace each command with a corresponding binary code, using the following conversion table: 
 -  "&gt;"  →  1000, -  "&lt;"  →  1001, -  "+"  →  1010, -  "-"  →  1011, -  "."  →  1100, -  ","  →  1101, -  "["  →  1110, -  "]"  →  1111. 
Next, concatenate the resulting binary codes into one binary number in the same order as in the program. Finally, write this number using unary numeral system — this is the Unary program equivalent to the original Brainfuck one.

You are given a Brainfuck program. Your task is to calculate the size of the equivalent Unary program, and print it modulo 1000003 (10<sup class="upper-index">6</sup> + 3).
The input will consist of a single line *p* which gives a Brainfuck program. String *p* will contain between 1 and 100 characters, inclusive. Each character of *p* will be "+", "-", "[", "]", "&lt;", "&gt;", "." or ",".
,.
220
++++[>,.<-]
61425
[-],<],<<,<[,>,+>[[<>.,[>-[-[<><>><<<<]>,.-].>-[[>+,>,[,-,.-,-[[]>..<>,<[+,-<]-++.<+.]<,[[.<<-><<<],
43789
+
10
-
11
<
9
>
8
.
12
,
13
[
14
]
15
,]+>.],,+->+>-[]][><,-]><]++<.,-[.>.<+.[.<,[-,,[<]+>]->>]>]-+-+<][].,.]+][[<,-.+][+<<-+.],,,<,.]-].-
859903
][-+>,>[,<[<+-,[+[-.<+,<[.,<+<,>+],.]><+<,+<..[[[>,[<>+-<<[>,[>-->[>+[<+<[-<]]]<>.+-,.+++-+++-+>-.]+
235230
+]+<-]-<,>[,]<[][+<[+]>[[,
221907
.>]+,>->,.>[+>+<-.-+<<>-,..+-<.,>]>.<<,+-[].,],<,..-<[-
223676
>.><]..>,,<<-[.,]]+,+,>[<>>+]+++--,>.[+,,+,+[><+,+[<,-]<-,..[,,.[[><]]<[<.-++][.[]][<
916864
]+<+[,.[,]-,.][]..[.<[<-]]]+.<[]]>>]-+]-+-.>-.].,[+[]><-.[[]++<
86015
-[.<>].[,>,]>++<+].>,<<],,,]++<[<+,,,,[.]<[-[,,]-..+<++].----]++><,+.,>+,+[,-[<.]-+++][-]<+.<
170107
<.,+.><[,.+<[,.,<-,[>,
982288
[,+.-.<],,]-]-[[,[]+,[.]][>],,]<[>,<+<<>>].>]>][->+>
411338
+]]],,>],][],<+.[->,>..<-+]][>><.+>[][.]<,>-..-,..-]>-]+>,><+<<.+>.,++]<]],],<+-<.
113966
.<>.+]>],>><
228058
-[.<++]-,-]-,[<<+[,-+]+[[...,[-...,<>+[]>][+.],[-[>>-->---+-+]>>><-++]]-++>][,],<[[,+],++<---<[
709697
]<><]>,>]-]],[,>+[->,,[<-+,.][[++[,+.<[,[-][[>.]<.].+-,,]]+[->]]-][>[].,>.,],,>,]-]]<+[,>>-]+]
283602
<-[>[,.+>-]<-[[]+[.]--<-[[]->[.<<,,.,+[.][].,<<]],,+[.>+.>+-<.-+[-,-<][+,[>[.,.+,[+[]+<-.>-<>
204479
+,+><[>..,]-.[.++[>-<<-,-.>,.>]+,<,]]<[>,-+,.-[+,[.[<.-[].+>[,>-.>>]-[-][+,>>-,+<-,<.+-.+[.,
537427
>]-[.-+[,,]].]+,][[>>[+][,<+,>.<[],.>+[]-[,[[+],..>..<[>.,,,+]]<+++<][[>..>>+-]+][--],]<[]
952413
,><[-]-,],+<<]>.][]][+]>.[-]]>++-.+[.<[,.-,<,[,,>,],,>-<+],>->-[<<.,>>,<][,<-->+-..+.,>>.
11994
[.[[+.<<>,+,>],<][+-],>.]<+]>><<][+-,][.>[-,.>--][-[]>]-<>,+<<>+,]][.>>.<,>.<..]>]<][-.[
386152
-,]]]+[]-,+]>][>[[->,..-.,[[.<,,.,+[].[[[-.][.<.,.<.>[.,+.,<[-]-[--<,>+-,.,.[.,]+.>>--,
533116
]+,]>>+-+++<[].][[.]->,+]]>>,<>>+<+,>]
694915
.[.+<,->[++,]]++[[<-.]][.<.<]<-,>]]>.
626679
+<.[[<,]<-<[<[-]<<.>]]]<--.<,-++<<<[,<.>+<+[>-,.->,<[>-><<>-<[.,+<][+],>,],],<[[,+.],<,.-,-
7032
.,,>-,<-+,-<[,<>
900168
>[[<][[><]+.+.[..],.<,<[],]<[>]-.-+<+->]],
419600
].<.<.,++[>--[++[><
983198
,]--++..<>.+.,-[-.],,<++.+<<-+[<,,.,++],>[+>
647820
.<],>>[[+.+]><<<>,,+][.,-+-+<>-[,+><].+-+<[],+-+]<].>]<+-.][,,+>],[,[+
898085
>,>+,-,+<-[[]][-,[<][]>.+]+<].>]+][]][,...<,-,]
586457
+[-][]..+,<<+,++<<][<,]<[][+,+,++[+-],->],-.--<-[.]+]-+]<][,.>.+[<+]<+<>-
240679
-.+[.<[[<],.-<-[+-->.-->>[<<.[>,]>->[<.[-++>..,.[.
185396
<+[[],+,+[]-<]<<.+><,.<[.[-+>.+-]><+[]<]>[>]<<[<>.+[-><>]->>>,>.[[.>-+>]+],
915891
[-.].+<<]---+[+-+-[,[[[,]-<[-[[><>]
765140
[[>>[>[],+>-..]<]>-<-]<>].-[,,,.[+.-].-
416600
[,[.+-,,.>+-[+[][,[][,.-+>+]]<.,,.]<+><.[<,
96775
[>+,.+<<>..-+[>,><.-,--[+[>+>+[].[-[,][..<<[<,-<+-,<][][,>]++]+-<,,]++>.].[-[-[[,<[>><->]->+[+-
89776
>+,][>]]]+[-..<<<+]>>.+-++.+<.,>>-[+-,+.+>]<.>-[<>]<<+[>].[++[].[++++,<[+-<<[+<[]-+][>[-+.,,],<<,>+
701493
><
137
>]<-.+>>..<-,[-+.]+<<>[-,.],,,[,-+>>>>>.-]>,+<.+[,<>><
481849
>-[+>[++[,]-<<,.-->]+[<[-<>-]<,]<.+][]].]++]]+<,...>-[><,-
739433
>[][+...+[.-[,,>,[,-.].--[..>+<>[]<,],,<<,<>[<<.+>-[]+><]+,[+[
356953
<,+<-+[[-<[-,]
570514
<+.,,<[+-.+[<>[>.]+<[[<]<,<].-<-
975622
,-,[,,,.-]+]]>-<[+[.]]][[>-<[.[<->+.>[++[.><[+<].],]>,.,<+.--[
243567
]<[--]>[-.,,.[[.,-<.]+->+++,+<+]]<>>+].]>[>].[+,><->>++,[,><,,.<-]-+-+<].][-[<].<-->-+>]<]>,
589486
<].]->+,.],-][--<.--++
425408
-,,....<.<-<.[[,]<+-,,+.>].<>[<>,.+]>,,>.>[<>.+<,><,>
474184
].[+.,]].+->][.+-[[,--.-+.,,+]>+[-[,+.><-+[[--<[.->]<>+-]<.,]]>.<>-+,<.+[]>>[<+.][[
9085
>>.<<[-,.<.].
518117
-],,<<><.,.+][.[++-+..,,>-><>+,[,,,.[>.-+]]
670018
],[>>-,].><-.[]>.-+]<<<+]>-,+,.,[+[<+[],]-+>+>+--+]+<,]-+],><>+,>.-,+]-,,
965603
>..-
36043
-[..[]+>>.>,]>.+]>.]>[.>+,>+
860720
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
266644
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
47113
[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]
889131
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
208877
binary_codes = {'>': '1000', '<': '1001', '+': '1010', '-': '1011', '.': '1100', ',': '1101', '[': '1110', ']': '1111'}
Bra=input()
una=""
for i in Bra:
    una+=str(binary_codes[i])
print(int(una,2)%(10**6+3))