Score counter for Skat You task is to write a small program, that counts the points of a Skat hand. A Skat deck has cards 7 to 10, Jack, Queen, King and Ace (called Unter, Ober, König and Daus). We use the German suits, which have Acorns, Leaves, Hearts and Bells instead of Clubs, Spades, Hearts and Diamonds. The points are determined by the number on the card:

7, 8 and 9 are 0 points
Unter is 2 points
Ober is 3 points
König is 4 points
10 is 10 points
Daus is 11 points.

Input / Output
The input format consists of two symbols, the first one represents the value, while the second one stands for the suit:

7, 8 and 9 stand for them self
0 (zero) stands for 10
Unter, Ober, König and Daus are named after their first letters (U, O and D)
The same for Acorns, Leaves, Hearts and Bellys (A, L, H and B)

The input is a single line of cards, separated by a single whitespace. You may take the input from anywhere, command line arguments are okay too. The output is the value of the hand, either printed out or returned as an exit code. The output of your program must show an error, if any card appears twice in the hand. (So 7A 0L 7A must return an error instead of 10). It is also okay to quit with an exit code of 255 instead of showing an error, if this is the default way of your program to output the result.
Examples

7A 8A 9A UA OA KA 0A DA 7L 8L 9L UL OL KL 0L DL 7H 8H 9H UH OH KH 0H DH 7B 8B 9B UB OB KB 0B DB gives 120
7A 8L 0K DB 8L gives an error
UA OB DL KH gives 20

Rules

Code golf: The shortest code wins
Usual code golf rules apply
The program has to work for all hands, not just the examples
GIGO: If the input is invalid, the output may be arbitrary
Ruby 1.9, 52 characters

Input via command line arguments. I'm assuming the error message when having duplicate cards doesn't matter, so it just complains about an eval/type conversion error.

p eval$*.uniq!||$*.map{|i|"..UOK#$&lt;.0D"=~/#{i}?/}*?+


Example usage:

$ ruby1.9 skatscore.rb 7A 8A 9A UA OA KA 0A DA 7L 8L 9L UL OL KL 0L DL 7H 8H 9H UH OH KH 0H DH 7B 8B 9B UB OB KB 0B DB
120

$ ruby1.9 skatscore.rb 7A 7A
skatscore.rb:1:in `eval': can't convert Array into String (TypeError)
    from skatscore.rb:1:in `&lt;main&gt;'