l1 = int(input())
r1 = int(input())
l2 = int(input())
r2 = int(input())
l3 = int(input())
r3 = int(input())
if (l1 >= 0) and (l1 < r1) and (r1 <= 100) and \
(l2 >= 0) and (l2 < r2) and (r2 <= 100) and \
(l3 >= 0) and (l3 < r3) and (r3 <= 100):
if ((l2 - r1) <= 1) and ((l3-r2) > 1) and (l1 < l2) and \
(l2 < r3) and (l1 < r3):
print(3)
elif ((l2-r1) > 1) and ((l3-r2) > 1) and (l2-r1) <= (r3-l3):
print(3)
elif ((l2-r1) > 1) and ((l3-r2) <= 1):
print(1)
elif ((l2-r1) <= 1) and (((l3-r2) <= 1) or ((l3-r1) <= 1)):
print(0)
else:
print(-1)
else:
print(-1)
if (l1 >= 0) and (l1 < r1) and (r1 <= 100) and \
(l2 >= 0) and (l2 < r2) and (r2 <= 100) and \
(l3 >= 0) and (l3 < r3) and (r3 <= 100):
if ((l2 - r1) <= 1) and ((l3-r2) > 1) and (l1 < l2) and \
(l2 < r3) and (l1 < r3):
print(3)
elif ((l2-r1) > 1) and ((l3-r2) > 1) and (l2-r1) <= (r3-l3):
print(3)
elif ((l2-r1) > 1) and ((l3-r2) <= 1):
print(1)
elif ((l2-r1) <= 1) and (((l3-r2) <= 1) or ((l3-r1) <= 1)):
print(0)
else:
from PyQt5.QtWidgets import QWidget, QApplication, QLabel
from PyQt5.QtGui import QPixmap
class Example(QWidget):
def __init__(self):
super().__init__()
self.initUI()
def initUI(self):
self.setGeometry(300, 300, 300, 187)
self.setWindowTitle('Exsample')
pixmap = QPixmap("bg.jpg")
label = QLabel(self)
label.setPixmap(pixmap)
if __name__ == '__main__':
import sys
app = QApplication(sys.argv)
ex = Example()
ex.show()
sys.exit(app.exec_())
# -*- mode: python -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['C:\\PY_EXE\\Exsample'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
a.datas += [('bg.jpg','C:\\PY_EXE\\Exsample\\bg.jpg','DATA')]
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='main',
debug=False,
strip=False,
upx=True,
runtime_tmpdir=None,
console=True )