Masala #UTZIZMQNQV
Laylak keldi
Aylana bo'ylab \(N\)ta bola “Laylak keldi” o'yinini o'ynashmoqda. Birinchi bola \(1\) deb, ikkinchisi \(2\) deb baqiradi, …, \(N\)-bola \(N\) deb baqirganidan so'ng yana \(1\)-bola \(N+1\) deb baqiradi va h.k.
Nechinchi bola \(K\) deb baqirishini toping!
Birinchi qatorda \(N\) butun son beriladi \((1 \le N \le 100)\).
Ikkinchi qatorda \(K\) butun son beriladi \((1 \le K \le 100)\).
Yagona qatorda \(K\) sonini aytadigan bolaning raqamini chiqaring.
# | input.txt | output.txt |
---|---|---|
1 |
4 7 |
3 |
2 |
5 10 |
5 |