That's a tricky one. Contact a travel/visa agency before you set off. Don't just hope it'll be OK, visa matters are very important, so doublecheck before you travel.