# import sys
# from PyQt5.QtWidgets import *
# from PyQt5 import QtCore, QtGui
# from PyQt5.QtGui import *
# from PyQt5.QtCore import *
# class MyApp(QWidget):
# def __init__(self):
# super().__init__()
# def initUI(self):
#
# self.pbar = QProgressBar(self)
# self.pbar.setGeometry(50, 130, 200, 20)
# lbl = QLabel('Press the vote button to submit.', self)
# lbl.move(50, 170)
# rbtn1 = QRadioButton('Donald rump', self)
# rbtn1.move(50, 50)
# rbtn1.setChecked(True)
# rbtn2 = QRadioButton(self)
# rbtn2.move(50, 70)
# rbtn2.setText('Hamala Karris')
# btn = QPushButton(self)
# btn.move(100, 100)
# btn.setText('&Vote')
# btn.clicked.connect(lambda:MyApp.Press(self,rbtn1))
# self.timer = QBasicTimer()
# self.step = 0
# vbox = QVBoxLayout()
# vbox.addStretch(3)
# vbox.addStretch(1)
#
# self.showDialog()
# self.setGeometry(300, 300, 300, 200)
# self.setWindowTitle('Voting simulator')
# self.show()
#
# def delButton(self,x):
# x.hide()
# def showDialog(self):
# text, ok = QInputDialog.getText(self, 'Input Dialog', 'Enter your name:')
# def Press(self,x):
# print("submitting...")
# self.timer.start(100, self)
# def timerEvent(self, e):
# if self.step >= 100:
# self.timer.stop()
# print("Submitted. Thanks for voting!")
# return
# self.step = self.step + 2
# self.pbar.setValue(self.step)
# if __name__ == '__main__':
# app = QApplication(sys.argv)
# ex = MyApp()
# ex.initUI()
# sys.exit(app.exec_())
def month(y,m):
if m=2:
if(y%4==0):
return 29
else:
return 28
if m=4 or m=6 or m=9 or m=11:
return 30
else:
return 31
y=2023
y=int(y)
m=1
m=int(m)
d=1
d=int(d)
k=int(input())
n,m=map(int,input().split())
a=0
a=int(a)
p=0
p=int(p)
j=0
j=int(j)
while(n+m<k):