Input
pedra paper tissora pedra paper pedra
Output
pedra -> 3 paper -> 2 tissora -> 1
Input
mm gg rr mm mm aa mm gg
Output
mm -> 4 gg -> 2 rr -> 1 aa -> 1
Input
verd vermell groc vermell groc blau
Output
verd -> 1 vermell -> 2 groc -> 2 blau -> 1