<prompt> Imepewa gridi ya 2D ya ukubwa m x n na nambari k kamili. Unahitaji kuhamisha mara gridi k.Katika operesheni moja ya mabadiliko: Kipengele kilicho katika gridiij huhamishwa hadi gridiij 1. Kipengele kilicho katika gridiin - 1 huhamishwa hadi gridii 10. Kipengele kilicho katika gridim - 1n - 1 huhamishwa hadi gridi00.Rejesha gridi ya _2D_ baada ya kutumia mabadiliko ya mara k.Mfano wa 1:Ingizo: gridi 1,2,3,4,5,6,7,8,9, k 1Pato: 9,1,2,3,4,5,6,7,8Mfano wa 2:Ingizo: gridi 3,8,1,9,19,7,2,5,4,6,11,10, 12,0,21,13, k 4Pato: 12,0,21,13,3,8,1,9,19,7,2,5,4,6, 11,10Mfano wa 3:Ingizo: gridi 1,2,3,4,5,6,7,8,9, k 9Pato: 1,2,3,4,5,6,7,8,9Vikwazo: m grid.length n gridi ya taifai.length 1 m 50 1 n 50 -1000 gridiij 1000 0 k 100  <response>: def dayOfYeartarehe: str - int: mwaka, mwezi, siku ramaniint, date.split- daysInMonth 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ikiwa mwaka 4 0 na mwaka 100 ! 0 au mwaka 400 0: daysInMonth2 29 dayOfYear sumdaysInMonth:month siku siku ya kurudiYaMwaka 