@Dainius ********
you mentioned you have read rules. You are still asking strange questions.
Go to the Thailand Government Immigration’s website and look at the visa options. Each type has clear cut rules.
Fairly basic!
If English is not your first language and you are needing assistance, then you need to tell your actual circumstances!
Otherwise you’ll get random answers and people will get frustrated with you.