Da, asa este. Am rezolvat cu metoda lui RedJohn, nu situ de ce nu m-am gandit asta.

Multumesc mult pentru ajutor.