blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 3
616
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
112
| license_type
stringclasses 2
values | repo_name
stringlengths 5
115
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 777
values | visit_date
timestamp[us]date 2015-08-06 10:31:46
2023-09-06 10:44:38
| revision_date
timestamp[us]date 1970-01-01 02:38:32
2037-05-03 13:00:00
| committer_date
timestamp[us]date 1970-01-01 02:38:32
2023-09-06 01:08:06
| github_id
int64 4.92k
681M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 22
values | gha_event_created_at
timestamp[us]date 2012-06-04 01:52:49
2023-09-14 21:59:50
⌀ | gha_created_at
timestamp[us]date 2008-05-22 07:58:19
2023-08-21 12:35:19
⌀ | gha_language
stringclasses 149
values | src_encoding
stringclasses 26
values | language
stringclasses 1
value | is_vendor
bool 2
classes | is_generated
bool 2
classes | length_bytes
int64 3
10.2M
| extension
stringclasses 188
values | content
stringlengths 3
10.2M
| authors
listlengths 1
1
| author_id
stringlengths 1
132
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4830116877968ecd4ebc6659f852aff6af73f637
|
69d05e7788a6facf4e5777c4b3819fa43d0f1df0
|
/gui/brain_labeling_gui_thalamus_v2.py
|
e8041a84ea17c4b97c081da7271935a7fb7af6a9
|
[] |
no_license
|
xl1393/MouseBrainAtlas
|
e238d06a5b51ca037a25e3f79fb422f7a7367222
|
1e875f9f872d38c916de3e460c1e88f2ef07fa32
|
refs/heads/master
| 2021-05-09T05:14:40.721154
| 2018-01-27T09:24:46
| 2018-01-27T09:24:46
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 55,987
|
py
|
#! /usr/bin/env python
import sys
import os
from datetime import datetime
import time
import json
from collections import defaultdict, OrderedDict
import numpy as np
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from shapely.geometry import Polygon as ShapelyPolygon
from shapely.geometry import Point as ShapelyPoint
from shapely.geometry import LineString as ShapelyLineString
from shapely.geometry import LinearRing as ShapelyLineRing
from skimage.color import label2rgb
from pandas import DataFrame
sys.path.append(os.environ['REPO_DIR'] + '/utilities')
from utilities2015 import *
from data_manager import DataManager
from metadata import *
from annotation_utilities import *
from gui_utilities import *
from ui.ui_BrainLabelingGui_v15 import Ui_BrainLabelingGui
from widgets.custom_widgets import *
from widgets.SignalEmittingItems import *
from widgets.DrawableZoomableBrowsableGraphicsScene_ForLabeling_v2 import DrawableZoomableBrowsableGraphicsScene_ForLabeling
from DataFeeder import ImageDataFeeder_v2, VolumeResectionDataFeeder
######################################################################
MARKER_COLOR_CHAR = 'w'
#######################################################################
class ReadRGBComponentImagesThread(QThread):
def __init__(self, stack, sections):
QThread.__init__(self)
self.stack = stack
self.sections = sections
def __del__(self):
self.wait()
def run(self):
for sec in self.gscenes['sagittal'].active_section:
if sec in self.gscenes['sagittal'].per_channel_pixmap_cached:
continue
try:
fp = DataManager.get_image_filepath_v2(stack=self.stack, section=sec, prep_id=2, resol='lossless', version='contrastStretchedBlue')
except Exception as e:
sys.stderr.write('Section %d is invalid: %s\n' % (sec, str(e)))
continue
if not os.path.exists(fp):
sys.stderr.write('Image %s does not exist.\n' % fp)
continue
qimage = QImage(fp)
self.emit(SIGNAL('component_image_loaded(QImage, int)'), qimage, sec)
class BrainLabelingGUI(QMainWindow, Ui_BrainLabelingGui):
# class BrainLabelingGUI(QMainWindow, Ui_RectificationGUI):
def __init__(self, parent=None, stack=None, first_sec=None, last_sec=None, downsample=None, img_version=None, prep_id=None):
"""
Initialization of BrainLabelingGUI.
"""
# t0 = time.time()
# self.app = QApplication(sys.argv)
QMainWindow.__init__(self, parent)
self.stack = stack
self.sagittal_downsample = downsample
self.prep_id = prep_id
self.setupUi(self)
self.button_save.clicked.connect(self.save_contours)
self.button_saveMarkers.clicked.connect(self.save_markers)
self.button_saveStructures.clicked.connect(self.save_structures)
self.button_load.clicked.connect(self.load_contours)
self.button_loadMarkers.clicked.connect(self.load_markers)
self.button_loadStructures.clicked.connect(self.load_structures)
self.button_loadWarpedAtlas.clicked.connect(self.load_warped_atlas_volume)
self.button_inferSide.clicked.connect(self.infer_side)
self.button_displayOptions.clicked.connect(self.select_display_options)
self.button_displayStructures.clicked.connect(self.select_display_structures)
self.lineEdit_username.returnPressed.connect(self.username_changed)
self.structure_volumes = defaultdict(dict)
# self.structure_adjustments_3d = defaultdict(list)
self.volume_cache = {}
# for ds in [8, 32]:
for ds in [32]:
try:
# self.volume_cache[ds] = DataManager.load_intensity_volume_v2(self.stack, downscale=ds, prep_id=1)
self.volume_cache[ds] = DataManager.load_intensity_volume_v2(self.stack, downscale=ds, prep_id=4)
print self.volume_cache[ds].shape
except:
sys.stderr.write('Intensity volume of downsample %d does not exist.\n' % ds)
self.splitter.setSizes([500, 500, 500])
self.splitter_2.setSizes([1000, 500])
self.sagittal_tb_gscene = DrawableZoomableBrowsableGraphicsScene_ForLabeling(id='sagittal_tb', gui=self, gview=self.sagittal_tb_gview)
self.sagittal_tb_gview.setScene(self.sagittal_tb_gscene)
self.coronal_gscene = DrawableZoomableBrowsableGraphicsScene_ForLabeling(id='coronal', gui=self, gview=self.coronal_gview)
self.coronal_gview.setScene(self.coronal_gscene)
self.horizontal_gscene = DrawableZoomableBrowsableGraphicsScene_ForLabeling(id='horizontal', gui=self, gview=self.horizontal_gview)
self.horizontal_gview.setScene(self.horizontal_gscene)
self.sagittal_gscene = DrawableZoomableBrowsableGraphicsScene_ForLabeling(id='sagittal', gui=self, gview=self.sagittal_gview)
self.sagittal_gview.setScene(self.sagittal_gscene)
self.sagittal_gscene.set_default_line_width(5)
self.sagittal_gscene.set_default_line_color('b')
self.sagittal_gscene.set_default_vertex_radius(10)
self.sagittal_gscene.set_default_vertex_color('r')
self.gscenes = {'coronal': self.coronal_gscene, 'sagittal': self.sagittal_gscene, 'horizontal': self.horizontal_gscene,
'sagittal_tb': self.sagittal_tb_gscene}
for gscene in self.gscenes.itervalues():
gscene.drawings_updated.connect(self.drawings_updated)
gscene.crossline_updated.connect(self.crossline_updated)
gscene.active_image_updated.connect(self.active_image_updated)
gscene.structure_volume_updated.connect(self.update_structure_volume)
gscene.set_structure_volumes(self.structure_volumes)
# gscene.set_drawings(self.drawings)
# from functools import partial
# self.gscenes['sagittal'].set_conversion_func_section_to_z(partial(DataManager.convert_section_to_z, stack=self.stack, z_begin=))
# self.gscenes['sagittal'].set_conversion_func_z_to_section(partial(DataManager.convert_z_to_section, stack=self.stack))
##################
# self.slider_downsample.valueChanged.connect(self.downsample_factor_changed)
###################
self.contextMenu_set = True
self.recent_labels = []
self.structure_names = load_structure_names(os.environ['REPO_DIR']+'/gui/structure_names.txt')
self.new_labelnames = load_structure_names(os.environ['REPO_DIR']+'/gui/newStructureNames.txt')
self.structure_names = OrderedDict(sorted(self.new_labelnames.items()) + sorted(self.structure_names.items()))
self.installEventFilter(self)
# first_sec0, last_sec0 = DataManager.load_cropbox(self.stack)[4:]
if self.prep_id == 3:
first_sec0, last_sec0 = DataManager.load_cropbox_thalamus(self.stack)[4:]
elif self.prep_id == 2:
first_sec0, last_sec0 = DataManager.load_cropbox(self.stack)[4:]
else:
raise
self.sections = range(first_sec0, last_sec0 + 1)
image_feeder = ImageDataFeeder_v2('image feeder', stack=self.stack, sections=self.sections,
prep_id=self.prep_id, use_data_manager=False,
downscale=self.sagittal_downsample,
version=img_version)
image_feeder.set_orientation('sagittal')
self.gscenes['sagittal'].set_data_feeder(image_feeder)
self.connect(self.gscenes['sagittal'], SIGNAL("image_loaded(int)"), self.image_loaded)
# self.button_stop.clicked.connect(self.read_images_thread.terminate)
volume_resection_feeder = VolumeResectionDataFeeder('volume resection feeder', self.stack)
if hasattr(self, 'volume_cache') and self.volume_cache is not None:
coronal_volume_resection_feeder = VolumeResectionDataFeeder('coronal resection feeder', self.stack)
coronal_volume_resection_feeder.set_volume_cache(self.volume_cache)
coronal_volume_resection_feeder.set_orientation('coronal')
coronal_volume_resection_feeder.set_downsample_factor(32)
# coronal_volume_resection_feeder.set_downsample_factor(8)
print coronal_volume_resection_feeder.x_dim, coronal_volume_resection_feeder.y_dim, coronal_volume_resection_feeder.z_dim
self.gscenes['coronal'].set_data_feeder(coronal_volume_resection_feeder)
self.gscenes['coronal'].set_active_i(50)
horizontal_volume_resection_feeder = VolumeResectionDataFeeder('horizontal resection feeder', self.stack)
horizontal_volume_resection_feeder.set_volume_cache(self.volume_cache)
horizontal_volume_resection_feeder.set_orientation('horizontal')
horizontal_volume_resection_feeder.set_downsample_factor(32)
# horizontal_volume_resection_feeder.set_downsample_factor(8)
self.gscenes['horizontal'].set_data_feeder(horizontal_volume_resection_feeder)
self.gscenes['horizontal'].set_active_i(150)
sagittal_volume_resection_feeder = VolumeResectionDataFeeder('sagittal resection feeder', self.stack)
sagittal_volume_resection_feeder.set_volume_cache(self.volume_cache)
sagittal_volume_resection_feeder.set_orientation('sagittal')
sagittal_volume_resection_feeder.set_downsample_factor(32)
# sagittal_volume_resection_feeder.set_downsample_factor(8)
self.gscenes['sagittal_tb'].set_data_feeder(sagittal_volume_resection_feeder)
self.gscenes['sagittal_tb'].set_active_i(150)
try:
self.gscenes['sagittal'].set_active_section(first_sec)
except Exception as e:
# sys.stderr.write(e.message + '\n')
pass
##############################
# Internal structure volumes #
##############################
# Set the downsample factor for the structure volumes.
# Try to match the highest resolution among all gviews, but upper limit is 1/8.
self.volume_downsample_factor = max(8, np.min([gscene.data_feeder.downsample for gscene in self.gscenes.itervalues()]))
for gscene in self.gscenes.values():
gscene.set_structure_volumes_downscale_factor(self.volume_downsample_factor)
#####################
# Load R/G/B images #
#####################
# self.read_component_images_thread = ReadRGBComponentImagesThread(stack=self.stack, sections=range(first_sec, last_sec+1))
# self.connect(self.read_component_images_thread, SIGNAL("component_image_loaded(QImage, int)"), self.component_image_loaded)
# self.read_component_images_thread.start()
#####################################
# Set global origins of each gscene #
#####################################
if self.prep_id == 3: # thalamus only
lossless_image_cropboxXY_wrt_WholebrainAlignedPadded_tbResol = DataManager.load_cropbox_thalamus(stack=self.stack)[:4]
elif self.prep_id == 2:
lossless_image_cropboxXY_wrt_WholebrainAlignedPadded_tbResol = DataManager.load_cropbox(stack=self.stack)[:4]
else:
raise
thumbnail_image_cropbox_wrt_WholebrainAlignedPadded_tbResol = np.loadtxt(DataManager.get_intensity_volume_bbox_filepath_v2(stack=self.stack, prep_id=4))
# Record the appropriate coordinate origin for this gscene.
# The coordinate is wrt to origin of "whole brain aligned and padded volume", in thumbnail resolution (1/32 of raw).
self.image_origin_wrt_WholebrainAlignedPadded_tbResol = {}
self.image_origin_wrt_WholebrainAlignedPadded_tbResol['sagittal'] = \
np.array((lossless_image_cropboxXY_wrt_WholebrainAlignedPadded_tbResol[0],
lossless_image_cropboxXY_wrt_WholebrainAlignedPadded_tbResol[2],
0))
for gid in ['coronal', 'horizontal', 'sagittal_tb']:
self.image_origin_wrt_WholebrainAlignedPadded_tbResol[gid] = \
np.array((thumbnail_image_cropbox_wrt_WholebrainAlignedPadded_tbResol[0],
thumbnail_image_cropbox_wrt_WholebrainAlignedPadded_tbResol[2],
thumbnail_image_cropbox_wrt_WholebrainAlignedPadded_tbResol[4]))
@pyqtSlot(int)
def image_loaded(self, sec):
"""
"""
gscene_id = self.sender().id
gscene = self.gscenes[gscene_id]
if gscene.active_section == sec:
gscene.update_image()
self.statusBar().showMessage('Image %d loaded.\n' % sec)
print 'Image', sec, 'received.'
@pyqtSlot(object, int)
def component_image_loaded(self, qimage_blue, sec):
"""
Callback for when R/G/B images are loaded.
Args:
qimage (QImage): the image
sec (int): section
"""
self.gscenes['sagittal'].per_channel_pixmap_cached[sec] = qimage_blue
self.statusBar().showMessage('R/G/B images %d loaded.\n' % sec)
print 'R/G/B images', sec, 'received.'
@pyqtSlot()
def username_changed(self):
self.username = str(self.sender().text())
print 'username changed to', self.username
def get_username(self):
if not hasattr(self, 'username') or self.username is None:
username, okay = QInputDialog.getText(self, "Username", "Please enter your username:", QLineEdit.Normal, 'anon')
if not okay: return
self.username = str(username)
self.lineEdit_username.setText(self.username)
return self.username
def structure_tree_changed(self, item, column):
tree_widget = self.sender()
complete_name = str(item.text(column))
abbr = re.findall('^.*?(\((.*)\))?$', complete_name)[0][1]
check_state = item.checkState(column)
if check_state == Qt.Unchecked:
for gscene in self.gscenes.values():
for section_index, polygons in gscene.drawings.iteritems():
for polygon in polygons:
if polygon.label == abbr:
polygon.setVisible(False)
elif check_state == Qt.PartiallyChecked:
pass
elif check_state == Qt.Checked:
for gscene in self.gscenes.values():
for section_index, polygons in gscene.drawings.iteritems():
for polygon in polygons:
if polygon.label == abbr:
polygon.setVisible(True)
else:
raise Exception('Unknown check state.')
# selected_items = tree_widget.selectedItems()
# print [str(it.text(0)) for it in selected_items]
@pyqtSlot()
def select_display_structures(self):
loaded_structure_abbrs = set([convert_name_to_unsided(name_s) for name_s in self.gscenes['sagittal'].get_label_section_lookup().keys()])
structure_tree_dict = json.load(open('structure_tree.json'))
# structure_tree_dict = {name: d for name, d in structure_tree_dict_all.iteritems() if d['abbr'] in loaded_structure_names}
# structure_tree_names = {'brainstem': {}}
def structure_entry_to_str(node):
if 'abbr' in node and len(node['abbr']) > 0:
key = node['fullname'] + ' (' + node['abbr'] + ')'
else:
key = node['fullname']
return key
def get_children_names(name):
node = structure_tree_dict[name]
key = structure_entry_to_str(node)
return (key, dict([get_children_names(child_name) for child_name in node['children']]))
structure_name_tree = dict([get_children_names('brainstem')])
# extract_names(structure_tree_names['brainstem'], structure_tree_dict['brainstem'], structure_tree_dict)
# structure_tree_names = {'midbrain': ['IC', 'SC'], 'hindbrain': {'pons': ['7N', '5N'], 'medulla': ['7n', 'SCP']}}
display_structures_widget = QDialog(self)
tree_widget = QTreeWidget(display_structures_widget)
tree_widget.setHeaderLabels(['Structures'])
fill_tree_widget(tree_widget, structure_name_tree, loaded_structure_abbrs)
# tree_widget.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
tree_widget.setMinimumHeight(1000)
tree_widget.setMinimumWidth(500)
# http://stackoverflow.com/questions/27521391/signal-a-qtreewidgetitem-toggled-checkbox
tree_widget.itemChanged.connect(self.structure_tree_changed)
dialog_layout = QVBoxLayout(display_structures_widget)
dialog_layout.addWidget(tree_widget)
display_structures_widget.setLayout(dialog_layout)
# display_structures_widget.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
display_structures_widget.setWindowTitle("Select structures to show")
# display_structures_widget.exec_()
display_structures_widget.show()
# @pyqtSlot()
# def select_display_structures(self):
#
# display_structures_widget = QDialog(self)
#
# scroll = QScrollArea(display_structures_widget)
#
# viewport = QWidget(display_structures_widget)
# scroll.setWidget(viewport)
# scroll.setWidgetResizable(True)
#
# viewport_layout = QVBoxLayout(viewport)
#
# structure_names = set([convert_name_to_unsided(name_s) for name_s in self.gscenes['sagittal'].get_label_section_lookup().keys()])
#
# if not hasattr(self, 'show_structure'):
# self.show_structure = {}
#
# for name in sorted(structure_names):
# if name not in self.show_structure:
# self.show_structure[name] = True
#
# checkbox_showStructure = QCheckBox(name)
# checkbox_showStructure.setChecked(self.show_structure[name])
# checkbox_showStructure.stateChanged.connect(self.checkbox_showStructure_callback)
# viewport_layout.addWidget(checkbox_showStructure)
#
# viewport.setLayout(viewport_layout)
#
# dialog_layout = QVBoxLayout(display_structures_widget)
# dialog_layout.addWidget(scroll)
# display_structures_widget.setLayout(dialog_layout)
#
# display_structures_widget.setWindowTitle("Select structures to show")
# # display_structures_widget.exec_()
# display_structures_widget.show()
# def checkbox_showStructure_callback(self, checked):
# name = str(self.sender().text())
# self.show_structure[name] = bool(checked)
#
# for gscene in self.gscenes.values():
# for section_index, polygons in gscene.drawings.iteritems():
# for polygon in polygons:
# if polygon.label == name:
# polygon.setVisible(bool(checked))
@pyqtSlot()
def select_display_options(self):
if not hasattr(self, 'show_polygons'):
self.show_polygons = True
self.show_vertices = True
self.show_labels = True
self.hide_interpolated = False
display_option_widget = QDialog(self)
layout = QVBoxLayout()
checkbox_showPolygons = QCheckBox("Polygon")
checkbox_showPolygons.setChecked(self.show_polygons)
checkbox_showPolygons.stateChanged.connect(self.checkbox_showPolygons_callback)
layout.addWidget(checkbox_showPolygons)
checkbox_showVertices = QCheckBox("Vertices")
checkbox_showVertices.setChecked(self.show_vertices)
checkbox_showVertices.stateChanged.connect(self.checkbox_showVertices_callback)
layout.addWidget(checkbox_showVertices)
checkbox_showLabels = QCheckBox("Labels")
checkbox_showLabels.setChecked(self.show_labels)
checkbox_showLabels.stateChanged.connect(self.checkbox_showLabels_callback)
layout.addWidget(checkbox_showLabels)
checkbox_hideInterpolated = QCheckBox("Hide interpolated")
checkbox_hideInterpolated.setChecked(self.hide_interpolated)
checkbox_hideInterpolated.stateChanged.connect(self.checkbox_hideInterpolated_callback)
layout.addWidget(checkbox_hideInterpolated)
display_option_widget.setLayout(layout)
display_option_widget.setWindowTitle("Select display options")
display_option_widget.exec_()
@pyqtSlot(int)
def checkbox_showLabels_callback(self, checked):
self.show_labels = checked
for gscene in self.gscenes.itervalues():
for section_index, polygons in gscene.drawings.iteritems():
for polygon in polygons:
polygon.properties['label_textItem'].setVisible(checked)
@pyqtSlot(int)
def checkbox_showVertices_callback(self, checked):
self.show_vertices = checked
for gscene in self.gscenes.itervalues():
for section_index, polygons in gscene.drawings.iteritems():
for polygon in polygons:
for v in polygon.vertex_circles:
v.setVisible(checked)
@pyqtSlot(int)
def checkbox_showPolygons_callback(self, checked):
self.show_polygons = checked
for gscene in self.gscenes.itervalues():
for section_index, polygons in gscene.drawings.iteritems():
for polygon in polygons:
polygon.setVisible(checked)
@pyqtSlot(int)
def checkbox_hideInterpolated_callback(self, checked):
self.hide_interpolated = checked
for gscene in self.gscenes.itervalues():
for section_index, polygons in gscene.drawings.iteritems():
for polygon in polygons:
if polygon.type != 'confirmed':
polygon.setVisible(not bool(checked))
@pyqtSlot()
def infer_side(self):
self.gscenes['sagittal'].infer_side()
self.gscenes['sagittal_tb'].infer_side()
self.gscenes['coronal'].infer_side()
self.gscenes['horizontal'].infer_side()
#
# def merge_contour_entries(self, new_entries_df):
# """
# Merge new entries into loaded entries.
# new_entries: dict. {polygon_id: entry}FileName
# Return: new dict.
# """
#
# self.contour_df_loaded.update(new_entries_df)
@pyqtSlot()
def save_markers(self):
"""
Save markers.
"""
timestamp = datetime.now().strftime("%m%d%Y%H%M%S")
sagittal_markers_curr_session = self.gscenes['sagittal'].convert_drawings_to_entries(timestamp=timestamp, username=self.username, classes=['neuron'])
sagittal_markers_original = convert_annotation_v3_aligned_cropped_to_original(DataFrame(sagittal_markers_curr_session).T, stack=self.stack,
prep_id=self.prep_id)
sagittal_markers_fp = DataManager.get_annotation_thalamus_filepath(stack=self.stack, by_human=True, suffix='neurons', timestamp=timestamp)
save_hdf_v2(sagittal_markers_original, sagittal_markers_fp)
upload_to_s3(sagittal_markers_fp)
print 'Sagittal markers saved to %s.' % sagittal_markers_fp
self.statusBar().showMessage('Sagittal markers saved to %s.' % sagittal_markers_fp)
@pyqtSlot()
def save_structures(self):
"""
Save 3D structure volumes.
"""
timestamp = datetime.now().strftime("%m%d%Y%H%M%S")
import uuid
entries = {}
for (name, side), v in self.structure_volumes.iteritems():
entry = {}
# entry['volume_in_bbox'] = v['volume_in_bbox']
entry['volume_in_bbox'] = bp.pack_ndarray_str(v['volume_in_bbox'])
entry['bbox'] = v['bbox']
entry['name'] = name
entry['side'] = side
if 'edits' not in v or v['edits'] is None or len(v['edits']) == 0:
entry['edits'] = []
else:
entry['edits'] = v['edits']
# entry['edits'] = [{'type': 'creation', 'username':self.username, 'timestamp':timestamp}]
# else:
if hasattr(v, 'structure_id') and v.properties['structure_id'] is not None:
structure_id = v.properties['structure_id']
else:
structure_id = str(uuid.uuid4().fields[-1])
entries[structure_id] = entry
structure_df = DataFrame(entries).T
structure_df_fp = DataManager.get_annotation_thalamus_filepath(stack=self.stack, by_human=True, suffix='structures', timestamp=timestamp)
save_hdf_v2(structure_df, structure_df_fp)
upload_to_s3(structure_df_fp)
print '3D structures saved to %s.' % structure_df_fp
@pyqtSlot()
def save_contours(self):
"""
Save structure boundaries.
"""
timestamp = datetime.now().strftime("%m%d%Y%H%M%S")
# Save sagittal
sagittal_contour_entries_curr_session = self.gscenes['sagittal'].convert_drawings_to_entries(timestamp=timestamp, username=self.username)
sagittal_contours_df_original = convert_annotation_v3_aligned_cropped_to_original(DataFrame(sagittal_contour_entries_curr_session).T,
stack=self.stack, in_downsample=self.gscenes['sagittal'].data_feeder.downsample, prep_id=self.prep_id)
sagittal_contours_df_fp = DataManager.get_annotation_thalamus_filepath(stack=self.stack, by_human=True, suffix='contours', timestamp=timestamp)
# sagittal_contours_df_fp = DataManager.get_annotation_thalamus_filepath(stack=self.stack, by_human=False, stack_m=stack_m,
# classifier_setting_m=classifier_setting_m,
# classifier_setting_f=classifier_setting_f,
# warp_setting=warp_setting, suffix='contours')
save_hdf_v2(sagittal_contours_df_original, sagittal_contours_df_fp)
upload_to_s3(sagittal_contours_df_fp)
self.statusBar().showMessage('Sagittal boundaries saved to %s.' % sagittal_contours_df_fp)
print 'Sagittal boundaries saved to %s.' % sagittal_contours_df_fp
# Save coronal
# coronal_contour_entries_curr_session = self.gscenes['coronal'].convert_drawings_to_entries(timestamp=timestamp, username=self.username)
# # print coronal_contour_entries_curr_session
# if len(coronal_contour_entries_curr_session) > 0:
# # coronal_contours_df_fp = DataManager.get_annotation_thalamus_filepath(stack=self.stack, by_human=False, stack_m=stack_m,
# # classifier_setting_m=classifier_setting_m,
# # classifier_setting_f=classifier_setting_f,
# # warp_setting=warp_setting, suffix='contours_coronal')
# coronal_contours_df_fp = DataManager.get_annotation_thalamus_filepath(stack=self.stack, by_human=True, suffix='contours_coronal', timestamp=timestamp)
# save_hdf_v2(coronal_contour_entries_curr_session, coronal_contours_df_fp)
# upload_to_s3(coronal_contours_df_fp)
# self.statusBar().showMessage('Coronal boundaries saved to %s.' % coronal_contours_df_fp)
# print 'Coronal boundaries saved to %s.' % coronal_contours_df_fp
# Save horizontal
# horizontal_contour_entries_curr_session = self.gscenes['horizontal'].convert_drawings_to_entries(timestamp=timestamp, username=self.username)
# if len(horizontal_contour_entries_curr_session) > 0:
# # horizontal_contours_df_fp = DataManager.get_annotation_thalamus_filepath(stack=self.stack, by_human=False, stack_m=stack_m,
# # classifier_setting_m=classifier_setting_m,
# # classifier_setting_f=classifier_setting_f,
# # warp_setting=warp_setting, suffix='contours_horizontal')
# horizontal_contours_df_fp = DataManager.get_annotation_thalamus_filepath(stack=self.stack, by_human=True, suffix='contours_horizontal', timestamp=timestamp)
# save_hdf_v2(horizontal_contour_entries_curr_session, horizontal_contours_df_fp)
# upload_to_s3(horizontal_contours_df_fp)
# self.statusBar().showMessage('Horizontal boundaries saved to %s.' % horizontal_contours_df_fp)
# print 'Horizontal boundaries saved to %s.' % horizontal_contours_df_fp
@pyqtSlot()
def load_markers(self):
"""
"""
markers_df_fp = str(QFileDialog.getOpenFileName(self, "Choose marker annotation file", os.path.join(ANNOTATION_THALAMUS_ROOTDIR, self.stack)))
# download_from_s3(markers_df_fp)
markers_df = load_hdf_v2(markers_df_fp)
markers_df_cropped = convert_annotation_v3_original_to_aligned_cropped(markers_df, stack=self.stack, prep_id=self.prep_id)
markers_df_cropped_sagittal = markers_df_cropped[(markers_df_cropped['orientation'] == 'sagittal') & (markers_df_cropped['downsample'] == self.gscenes['sagittal'].data_feeder.downsample)]
# for i, marker_entry in markers_df_cropped_sagittal.iterrows():
# if 'label' not in marker_entry:
# print marker_entry
self.gscenes['sagittal'].load_drawings(markers_df_cropped_sagittal, append=False, vertex_color=MARKER_COLOR_CHAR)
@pyqtSlot()
def load_warped_atlas_volume(self):
"""
Load warped atlas volumes.
This populates the graphicsscenes with contours. Note that no volumes are reconstructed from them yet.
"""
warped_atlas_volumes = DataManager.load_transformed_volume_all_known_structures(stack_m='atlasV5', stack_f=self.stack, warp_setting=17, prep_id_f=2, detector_id_f=15,
return_label_mappings=False,
name_or_index_as_key='name',
# structures=['VLL_R'])
structures=['SNC_R'])
# structures=['PBG_R'])
# structures=['6N_R'])
# structures=['3N_L', '3N_R', '4N_L', '4N_R'])
# warped_atlas_volumes = {'PBG_L': warped_atlas_volumes['PBG_L']}
# warped_atlas_volumes = {k: warped_atlas_volumes[k] for k in ['PBG_R']}
# warped_atlas_volumes = {k: warped_atlas_volumes[k] for k in ['3N_L', '3N_R', '4N_L', '4N_R']}
# warped_atlas_volumes = {k: warped_atlas_volumes[k] for k in ['SNC_R']}
# warped_atlas_volumes = {k: warped_atlas_volumes[k] for k in ['6N_R']}
from registration_utilities import get_structure_contours_from_aligned_atlas
# warped_atlas_volumes = {'6N_R': warped_atlas_volumes}
warped_atlas_contours_by_section = get_structure_contours_from_aligned_atlas(warped_atlas_volumes, volume_origin=(0,0,0),
sections=metadata_cache['valid_sections'][self.stack],
downsample_factor=32, level=.5, sample_every=1, first_sec=metadata_cache['section_limits'][self.stack][0])
import uuid
contour_entries = {}
for sec, contours_by_sided_name in warped_atlas_contours_by_section.iteritems():
for sided_name, contour in contours_by_sided_name.iteritems():
unsided_name, side, _, _ = parse_label(sided_name)
# If already loaded as edited volume, skip.
if (unsided_name, side) in self.structure_volumes:
sys.stderr.write('Structure %s,%s already loaded as edited volume. Skipped.\n' % (unsided_name, side))
continue
if len(contour) < 3:
sys.stderr.write("On sec %d, %s has only %d vertices. Skipped.\n" % (sec, sided_name, len(contour)))
continue
polygon_id = str(uuid.uuid4().fields[-1])
contour_entry = {'name': unsided_name,
'label_position': np.mean(contour, axis=0),
'side': side,
'creator': 'hector',
'time_created': datetime.now().strftime("%m%d%Y%H%M%S"),
'edits': [],
'vertices': contour,
'downsample': 32,
'type': 'intersected',
'orientation': 'sagittal',
'parent_structure': [],
'side_manually_assigned': True,
'id': polygon_id,
'class': 'contour',
'section': sec}
contour_entries[polygon_id] = contour_entry
warped_atlas_contours_df = pd.DataFrame(contour_entries).T
self.gscenes['sagittal'].load_drawings(warped_atlas_contours_df, append=False)
@pyqtSlot()
def load_structures(self):
"""
Load a 3D structure annotation file.
"""
structures_df_fp = str(QFileDialog.getOpenFileName(self, "Choose the structure annotation file", os.path.join(ANNOTATION_THALAMUS_ROOTDIR, self.stack)))
# print structures_df_fp
structure_df = load_hdf_v2(structures_df_fp)
self.structure_df_loaded = structure_df
for structure_id, structure_entry in structure_df.iterrows():
if structure_entry['side'] is None:
t = (structure_entry['name'], 'S')
else:
t = (structure_entry['name'], structure_entry['side'])
if 'edits' in structure_entry:
edits = structure_entry['edits']
else:
edits = []
self.structure_volumes[t] = {'volume_in_bbox': bp.unpack_ndarray_str(structure_entry['volume_in_bbox']).astype(np.bool),
'bbox': structure_entry['bbox'],
'edits': edits,
'structure_id': structure_id}
sys.stderr.write("Updating gscene contours for structure %s...\n" % str(t))
# for gscene_id in self.gscenes:
# self.update_structure_volume(structure_entry['name'], structure_entry['side'], use_confirmed_only=False, recompute_from_contours=False)
t = time.time()
self.update_structure_volume(structure_entry['name'], structure_entry['side'], \
use_confirmed_only=False, recompute_from_contours=False, \
affected_gscenes=['sagittal', 'sagittal_tb', 'horizontal', 'coronal'])
sys.stderr.write("Update gscene contours: %.2f seconds.\n" % (time.time()-t))
@pyqtSlot()
def load_contours(self):
"""
Load contours.
"""
sagittal_contours_df_fp = str(QFileDialog.getOpenFileName(self, "Choose sagittal contour annotation file", os.path.join(ANNOTATION_THALAMUS_ROOTDIR, self.stack)))
sagittal_contours_df = load_hdf_v2(sagittal_contours_df_fp)
sagittal_contours_df_cropped = convert_annotation_v3_original_to_aligned_cropped(sagittal_contours_df, stack=self.stack,\
out_downsample=self.gscenes['sagittal'].data_feeder.downsample,
prep_id=self.prep_id)
sagittal_contours_df_cropped_sagittal = sagittal_contours_df_cropped[(sagittal_contours_df_cropped['orientation'] == 'sagittal') & (sagittal_contours_df_cropped['downsample'] == self.gscenes['sagittal'].data_feeder.downsample)]
self.gscenes['sagittal'].load_drawings(sagittal_contours_df_cropped_sagittal, append=False)
@pyqtSlot()
def active_image_updated(self):
self.setWindowTitle('BrainLabelingGUI, stack %(stack)s, fn %(fn)s, section %(sec)d, z=%(z).2f, x=%(x).2f, y=%(y).2f' % \
dict(stack=self.stack,
sec=self.gscenes['sagittal'].active_section
if self.gscenes['sagittal'].active_section is not None else -1,
fn=metadata_cache['sections_to_filenames'][self.stack][self.gscenes['sagittal'].active_section] \
if self.gscenes['sagittal'].active_section is not None else '',
z=self.gscenes['sagittal'].active_i,
x=self.gscenes['coronal'].active_i if self.gscenes['coronal'].active_i is not None else 0,
y=self.gscenes['horizontal'].active_i if self.gscenes['horizontal'].active_i is not None else 0))
@pyqtSlot(int, int, int, str)
def crossline_updated(self, cross_x_lossless, cross_y_lossless, cross_z_lossless, source_gscene_id):
print 'GUI: update all crosses to', cross_x_lossless, cross_y_lossless, cross_z_lossless, 'from', source_gscene_id
for gscene_id, gscene in self.gscenes.iteritems():
# if gscene_id == source_gscene_id: # Skip updating the crossline if the update is triggered from this gscene
# continue
if gscene.mode == 'crossline':
try:
gscene.update_cross(cross_x_lossless, cross_y_lossless, cross_z_lossless,
origin=self.image_origin_wrt_WholebrainAlignedPadded_tbResol[gscene_id]*32.)
except Exception as e:
sys.stderr.write(str(e) + '\n')
@pyqtSlot(object)
def drawings_updated(self, polygon):
print 'Drawings updated.'
# self.save()
# sagittal_label_section_lookup = self.gscenes['sagittal'].get_label_section_lookup()
# labels = sagittal_label_section_lookup.keys()
# self.gscenes['coronal'].get_label_section_lookup()
# self.gscenes['horizontal'].get_label_section_lookup()
@pyqtSlot(str, str, bool, bool)
def update_structure_volume(self, name_u, side, use_confirmed_only, recompute_from_contours, from_gscene_id=None, affected_gscenes=None):
"""
This function is triggered by `structure_volume_updated` signal from a gscene.
- Retrieve the volumes stored internally for each view.
The volumes in different views are potentially different.
- Compute the average volume across all views.
- Use this average volume to update the stored version in each view.
Args:
use_confirmed_only (bool): If True, when reconstructing the volume, only use confirmed contours.
recompute_from_contours (bool): Set to True, if want to re-compute the volume based on contours,
replacing the volume in `self.structure_volumes` if it already exists.
Set to False, if `self.structure_volumes` already stores the new volume and therefore
calling this function is just to update the contours.
from_gscene_id (str):
affected_gscenes (list of str):
"""
# Arguments passed in are Qt Strings. This guarantees they are python str.
name_u = str(name_u)
side = str(side)
# Reconstruct the volume for each gview.
# Only interpolate between confirmed contours.
# volumes_3view = {}
# bboxes_3view = {}
# for gscene_id, gscene in self.gscenes.iteritems():
if (name_u, side) not in self.structure_volumes or recompute_from_contours:
print 'Re-computing volume of %s from contours.' % str((name_u, side))
if from_gscene_id is None:
assert self.sender() is not None, Exception("Cannot infer the interpolation direction. Must provide from_gscene_id or call as a slot.")
from_gscene_id = self.sender().id
gscene = self.gscenes[from_gscene_id]
if use_confirmed_only:
matched_confirmed_polygons = [p for i, polygons in gscene.drawings.iteritems() for p in polygons \
if p.properties['label'] == name_u and \
p.properties['side'] == side and \
p.properties['type'] == 'confirmed']
else:
matched_confirmed_polygons = [p for i, polygons in gscene.drawings.iteritems() for p in polygons \
if p.properties['label'] == name_u and p.properties['side'] == side]
if len(matched_confirmed_polygons) < 2:
sys.stderr.write('%s: Cannot interpolate because there are fewer than two confirmed polygons for structure %s.\n' % (from_gscene_id, (name_u, side)))
return
factor_dataResol_to_volResol = float(gscene.data_feeder.downsample) / self.volume_downsample_factor
if from_gscene_id == 'sagittal' or from_gscene_id == 'sagittal_tb':
# keys are depth coordinates, wrt the origin of "whole brain aligned and padded volume", in internal structure resolution.
# values are 2D contour vertex coordinates, wrt the origin of "whole brain aligned and padded volume", in internal structure resolution.
contour_points_grouped_by_pos_wrt_WholebrainAlignedPadded_volResol = {p.properties['position_um'] / (XY_PIXEL_DISTANCE_LOSSLESS * self.volume_downsample_factor): \
[((c.scenePos().x() * gscene.data_feeder.downsample + \
self.image_origin_wrt_WholebrainAlignedPadded_tbResol[from_gscene_id][0] * 32.) / float(self.volume_downsample_factor),
(c.scenePos().y() * gscene.data_feeder.downsample + \
self.image_origin_wrt_WholebrainAlignedPadded_tbResol[from_gscene_id][1] * 32.) / float(self.volume_downsample_factor))
for c in p.vertex_circles]
for p in matched_confirmed_polygons}
for p in matched_confirmed_polygons:
print 'z =', p.properties['position_um'] / (XY_PIXEL_DISTANCE_LOSSLESS * self.volume_downsample_factor)
for c in p.vertex_circles:
print c.scenePos().x() * gscene.data_feeder.downsample, self.image_origin_wrt_WholebrainAlignedPadded_tbResol[from_gscene_id][0] * 32., self.volume_downsample_factor
print c.scenePos().y() * gscene.data_feeder.downsample, self.image_origin_wrt_WholebrainAlignedPadded_tbResol[from_gscene_id][1] * 32., self.volume_downsample_factor
volume_volResol, bbox_wrt_WholebrainAlignedPadded_volResol = interpolate_contours_to_volume(contour_points_grouped_by_pos_wrt_WholebrainAlignedPadded_volResol, 'z')
elif from_gscene_id == 'coronal':
contour_points_grouped_by_pos = {p.properties['position_um'] / (XY_PIXEL_DISTANCE_LOSSLESS * self.volume_downsample_factor): \
[(c.scenePos().y() * factor_dataResol_to_volResol,
(gscene.data_feeder.z_dim - 1 - c.scenePos().x()) * factor_dataResol_to_volResol)
for c in p.vertex_circles]
for p in matched_confirmed_polygons}
volume, bbox = interpolate_contours_to_volume(contour_points_grouped_by_pos, 'x')
# self.gscenes[gscene_id].structure_volumes[(name_u, side)] = volume, bbox
# self.structure_volumes[(name_u, side)] = interpolate_contours_to_volume(contour_points_grouped_by_pos, 'x')
elif from_gscene_id == 'horizontal':
contour_points_grouped_by_pos = {p.properties['position_um'] / (XY_PIXEL_DISTANCE_LOSSLESS * self.volume_downsample_factor): \
[(c.scenePos().x() * factor_dataResol_to_volResol,
(gscene.data_feeder.z_dim - 1 - c.scenePos().y()) * factor_dataResol_to_volResol)
for c in p.vertex_circles]
for p in matched_confirmed_polygons}
volume, bbox = interpolate_contours_to_volume(contour_points_grouped_by_pos, 'y')
# self.gscenes[gscene_id].structure_volumes[(name_u, side)] = volume, bbox
# self.gscenes[gscene_id].structure_volumes[(name_u, side)] = interpolate_contours_to_volume(contour_points_grouped_by_pos, 'y')
# self.structure_volumes[(name_u, side)] = interpolate_contours_to_volume(contour_points_grouped_by_pos, 'y')
self.structure_volumes[(name_u, side)]['volume_in_bbox'] = volume_volResol
self.structure_volumes[(name_u, side)]['bbox'] = bbox_wrt_WholebrainAlignedPadded_volResol
print 'Internal structures:', (name_u, side), self.structure_volumes[(name_u, side)]['bbox']
# volumes_3view[gscene_id] = volume
# bboxes_3view[gscene_id] = bbox
# self.structure_volumes[(name_u, side)] = \
# average_multiple_volumes(volumes_3view.values(), bboxes_3view.values())
# self.structure_volumes[(name_u, side)] = self.gscenes['sagittal'].structure_volumes[(name_u, side)]
if affected_gscenes is None:
affected_gscenes = self.gscenes.keys()
for gscene_id in affected_gscenes:
self.gscenes[gscene_id].update_drawings_from_structure_volume(name_u, side)
print '3D structure updated.'
self.statusBar().showMessage('3D structure updated.')
def eventFilter(self, obj, event):
# print obj.metaObject().className(), event.type()
if event.type() == QEvent.KeyPress:
key = event.key()
if key == Qt.Key_1:
self.gscenes['sagittal'].show_previous()
elif key == Qt.Key_2:
self.gscenes['sagittal'].show_next()
elif key == Qt.Key_3:
self.gscenes['coronal'].show_previous()
elif key == Qt.Key_4:
self.gscenes['coronal'].show_next()
elif key == Qt.Key_5:
self.gscenes['horizontal'].show_previous()
elif key == Qt.Key_6:
self.gscenes['horizontal'].show_next()
elif key == Qt.Key_7:
self.gscenes['sagittal_tb'].show_previous()
elif key == Qt.Key_8:
self.gscenes['sagittal_tb'].show_next()
elif key == Qt.Key_Space:
if not event.isAutoRepeat():
for gscene in self.gscenes.itervalues():
gscene.set_mode('crossline')
elif key == Qt.Key_F:
##################### Save structure ######################
# username = self.get_username()
timestamp = datetime.now().strftime("%m%d%Y%H%M%S")
# {(name, side): (vol, bbox, edits, id)}
new_structure_df = self.structure_df_loaded.copy()
for (name, side), structure_entry in self.structure_volumes.iteritems():
struct_id = structure_entry['structure_id']
new_structure_df.loc[struct_id]['volume_in_bbox'] = structure_entry['volume_in_bbox']
new_structure_df.loc[struct_id]['bbox'] = structure_entry['bbox']
new_structure_df.loc[struct_id]['edits'] = structure_entry['edits']
new_structure_df_fp = DataManager.get_annotation_thalamus_filepath(stack=self.stack, by_human=False, stack_m='atlasV3',
classifier_setting_m=37,
classifier_setting_f=37,
warp_setting=8, suffix='structures', timestamp=timestamp)
save_hdf_v2(new_structure_df, new_structure_df_fp)
self.statusBar().showMessage('3D structure labelings are saved to %s.\n' % new_structure_df_fp)
# ##################### Save contours #####################
# self.save()
elif key == Qt.Key_A:
print "Reconstructing selected structure volumes..."
curr_structure_label = self.gscenes['sagittal'].active_polygon.properties['label']
curr_structure_side = self.gscenes['sagittal'].active_polygon.properties['side']
self.update_structure_volume(name_u=curr_structure_label, side=curr_structure_side,
use_confirmed_only=False, recompute_from_contours=False, from_gscene_id='sagittal')
elif key == Qt.Key_P:
print "Reconstructing all structure volumes..."
structures_curr_section = [(p.properties['label'], p.properties['side'])
for p in self.gscenes['sagittal'].drawings[self.gscenes['sagittal'].active_i]]
for curr_structure_label, curr_structure_side in structures_curr_section:
self.update_structure_volume(name_u=curr_structure_label, side=curr_structure_side, use_confirmed_only=False, recompute_from_contours=False)
elif key == Qt.Key_U:
# For all structures on the current section
# structures_curr_section = [(p.properties['label'], p.properties['side'])
# for p in self.gscenes['sagittal'].drawings[self.gscenes['sagittal'].active_i]]
# for curr_structure_label, curr_structure_side in structures_curr_section:
curr_structure_label = self.gscenes['sagittal'].active_polygon.properties['label']
curr_structure_side = self.gscenes['sagittal'].active_polygon.properties['side']
name_side_tuple = (curr_structure_label, curr_structure_side)
assert name_side_tuple in self.structure_volumes, \
"structure_volumes does not have %s. Need to reconstruct this structure first." % str(name_side_tuple)
if name_side_tuple in self.gscenes['sagittal'].uncertainty_lines:
print "Remove uncertainty line"
for gscene in self.gscenes.itervalues():
gscene.hide_uncertainty_line(name_side_tuple)
else:
print "Add uncertainty line"
if curr_structure_side == 'S':
name = curr_structure_label
else:
name = curr_structure_label + '_' + curr_structure_side
current_structure_hessians = DataManager.load_confidence(stack_m='atlasV3', stack_f=self.stack, classifier_setting_m=37, classifier_setting_f=37, warp_setting=8,
param_suffix=name, what='hessians')
H, fmax = current_structure_hessians[84.64]
U, S, UT = np.linalg.svd(H)
flattest_dir = U[:,-1]
current_structure_peakwidth = DataManager.load_confidence(stack_m='atlasV3', stack_f=self.stack, classifier_setting_m=37, classifier_setting_f=37, warp_setting=8,
param_suffix=name, what='peak_radius')
pw_max_um, _, _ = current_structure_peakwidth[118.75][84.64]
len_lossless_res = pw_max_um / XY_PIXEL_DISTANCE_LOSSLESS
vol = self.structure_volumes[name_side_tuple]['volume_in_bbox']
bbox = self.structure_volumes[name_side_tuple]['bbox']
c_vol_res_gl = np.mean(np.where(vol), axis=1)[[1,0,2]] + (bbox[0], bbox[2], bbox[4])
e1 = c_vol_res_gl * self.volume_downsample_factor - len_lossless_res * flattest_dir
e2 = c_vol_res_gl * self.volume_downsample_factor + len_lossless_res * flattest_dir
for gscene in self.gscenes.itervalues():
e1_gscene = point3d_to_point2d(e1, gscene)
e2_gscene = point3d_to_point2d(e2, gscene)
print gscene.id, e1_gscene, e2_gscene
gscene.set_uncertainty_line(name_side_tuple, e1_gscene, e2_gscene)
if name_side_tuple in self.gscenes['sagittal'].structure_onscreen_messages:
self.gscenes['sagittal'].hide_structure_onscreen_message(name_side_tuple)
else:
current_structure_zscores = DataManager.load_confidence(stack_m='atlasV3', stack_f=self.stack, classifier_setting_m=37, classifier_setting_f=37, warp_setting=8,
param_suffix=name, what='zscores')
zscore, fmax, mean, std = current_structure_zscores[118.75]
print str((zscore, fmax, mean, std)), np.array(e1_gscene + e2_gscene)/2
self.gscenes['sagittal'].set_structure_onscreen_message(name_side_tuple, "zscore = %.2f" % zscore, (e1_gscene + e2_gscene)/2)
elif event.type() == QEvent.KeyRelease:
key = event.key()
if key == Qt.Key_Space:
if not event.isAutoRepeat():
for gscene in self.gscenes.itervalues():
gscene.set_mode('idle')
return False
def point3d_to_point2d(pt3d, gscene):
"""
Convert a 3D point to 2D point on a gscene.
Args:
pt3d ((3,)-ndarray): a point coordinate in lossless-resolution coordinate.
gscene (QGraphicScene)
"""
pt3d_gscene_res = pt3d / gscene.data_feeder.downsample
if gscene.id == 'sagittal' or gscene.id == 'sagittal_tb':
pt2d = (pt3d_gscene_res[0], pt3d_gscene_res[1])
elif gscene.id == 'coronal':
pt2d = (gscene.data_feeder.z_dim - 1 - pt3d_gscene_res[2], pt3d_gscene_res[1])
elif gscene.id == 'horizontal':
pt2d = (pt3d_gscene_res[0], gscene.data_feeder.z_dim - 1 - pt3d_gscene_res[2])
return np.array(pt2d)
def load_structure_names(fn):
"""
Load structure names from a file.
Args:
fn (str): a file containing rows of structure names.
Returns:
(list of str)
"""
names = {}
with open(fn, 'r') as f:
for ln in f.readlines():
abbr, fullname = ln.split('\t')
names[abbr] = fullname.strip()
return names
if __name__ == "__main__":
import argparse
import sys
import time
parser = argparse.ArgumentParser(
formatter_class=argparse.RawDescriptionHelpFormatter,
description='Launch brain labeling GUI.')
parser.add_argument("stack_name", type=str, help="stack name")
parser.add_argument("-f", "--first_sec", type=int, help="first section")
parser.add_argument("-l", "--last_sec", type=int, help="last section")
parser.add_argument("-v", "--img_version", type=str, help="image version", default='jpeg')
parser.add_argument("-d", "--downsample", type=float, help="downsample", default=1)
parser.add_argument("-p", "--prep", type=int, help="preprocessing id", default=3)
args = parser.parse_args()
from sys import argv, exit
appl = QApplication(argv)
stack = args.stack_name
downsample = args.downsample
img_version = args.img_version
prep_id = args.prep
if prep_id == 3:
default_first_sec, default_last_sec = DataManager.load_cropbox_thalamus(stack)[4:]
elif prep_id == 2:
default_first_sec, default_last_sec = DataManager.load_cropbox(stack)[4:]
else:
raise
first_sec = default_first_sec if args.first_sec is None else args.first_sec
last_sec = default_last_sec if args.last_sec is None else args.last_sec
m = BrainLabelingGUI(stack=stack, first_sec=first_sec, last_sec=last_sec, downsample=downsample, img_version=img_version, prep_id=prep_id)
m.showMaximized()
m.raise_()
exit(appl.exec_())
|
[
"cyc3700@gmail.com"
] |
cyc3700@gmail.com
|
e3115e42846e195446fc894e10dd6ac61f5d1618
|
513021ba2ba48a30245c6c76406f034c69f4f366
|
/4_Podstawowa wiedza o języku/4.33_String.py
|
a63127c53ddf9c57b6f1bc74ae339871af085873
|
[] |
no_license
|
rucpata/udemy-python_poczatkujacy
|
d789c3ff0fa9f8794c97e537aa58d8a273601023
|
f65053e6efac7e30bae862f6555ab08fcf7385a4
|
refs/heads/master
| 2022-03-07T11:33:09.284281
| 2019-10-29T14:09:19
| 2019-10-29T14:09:19
| 218,301,894
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 68
|
py
|
atext='This is a text'
atext.endswith('ext')
atext.endswith('ext.')
|
[
"rucinska.patrycja@gmail.com"
] |
rucinska.patrycja@gmail.com
|
e46ce34addebb050347cdd470f4cd7e400c7e47f
|
1f91f88b17b35a9306b6a279ec338921a22c78d0
|
/team_scripts/nakama_exp078_EffNetB7.py
|
2f9a4e189977fac7f91c32181c22497ed4064c8c
|
[
"MIT"
] |
permissive
|
yuv4r4j/kaggle-rfcx
|
64d02102a78a295e14e8a904e2a34bb7772d2cb4
|
c3573d014d99312b58882e7b939de6c1055129b1
|
refs/heads/main
| 2023-03-03T01:38:14.999693
| 2021-02-18T10:31:29
| 2021-02-18T10:31:29
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 42,264
|
py
|
import os
import random
import time
import warnings
import audiomentations as A
import kornia.augmentation as K
import librosa
import numpy as np
import pandas as pd
import soundfile as sf
import timm
import torch
import torch.nn as nn
import torch.nn.functional as F
from pathlib import Path
from sklearn.model_selection import StratifiedKFold
from torch.utils.data import Dataset
from torch.optim.lr_scheduler import ReduceLROnPlateau, CosineAnnealingLR, CosineAnnealingWarmRestarts
from torchlibrosa.augmentation import SpecAugmentation
from torchlibrosa.stft import Spectrogram, LogmelFilterBank
from tqdm import tqdm
from transformers import get_linear_schedule_with_warmup
warnings.filterwarnings("ignore")
################################################
# Directory Setting #
################################################
OUTPUT_DIR = Path(f"../out/{__file__.split('/')[-1].replace('.py', '')}")
OUTPUT_DIR.mkdir(exist_ok=True, parents=True)
################################################
# Config #
################################################
class CFG:
debug = False
apex = False
num_workers = 20
model_name = "tf_efficientnet_b7_ns"
model_param = {
"encoder": model_name,
"classes_num": 24
}
duration = 10
period = 6
step_scheduler = True
epochs = 60
T_max = 10
T_0 = 10
lr = 1e-3
min_lr = 0.0
batch_size = 16
weight_decay = 1e-6
gradient_accumulation_steps = 1
max_grad_norm = 1000
alpha = 1.0
mixup_epochs = 0
p_mixup = 0.0
p_cutmux = 0.0
seed = 777
target_size = 24
target_col = "target"
n_fold = 5
trn_fold = [0, 1, 2, 3, 4]
train = True
inference = True
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
################################################
# Utilities #
################################################
def _one_sample_positive_class_precisions(scores: np.ndarray, truth: np.ndarray):
num_classes = scores.shape[0]
pos_class_indices = np.flatnonzero(truth > 0)
if not len(pos_class_indices):
return pos_class_indices, np.zeros(0)
retrieved_classes = np.argsort(scores)[::-1]
class_rankings = np.zeros(num_classes, dtype=np.int)
class_rankings[retrieved_classes] = range(num_classes)
retrieved_class_true = np.zeros(num_classes, dtype=np.bool)
retrieved_class_true[class_rankings[pos_class_indices]] = True
retrieved_cumulative_hits = np.cumsum(retrieved_class_true)
precision_at_hits = (
retrieved_cumulative_hits[class_rankings[pos_class_indices]] /
(1 + class_rankings[pos_class_indices].astype(np.float)))
return pos_class_indices, precision_at_hits
def lwlrap(truth: np.ndarray, scores: np.ndarray):
assert truth.shape == scores.shape
num_samples, num_classes = scores.shape
precisions_for_samples_by_classes = np.zeros((num_samples, num_classes))
for sample_num in range(num_samples):
pos_class_indices, precision_at_hits = _one_sample_positive_class_precisions(scores[sample_num, :], truth[sample_num, :])
precisions_for_samples_by_classes[sample_num, pos_class_indices] = precision_at_hits
labels_per_class = np.sum(truth > 0, axis=0)
weight_per_class = labels_per_class / float(np.sum(labels_per_class))
per_class_lwlrap = (np.sum(precisions_for_samples_by_classes, axis=0) /
np.maximum(1, labels_per_class))
return per_class_lwlrap, weight_per_class
def get_score(y_true: np.ndarray, y_pred: np.ndarray):
"""
y_true = np.array([[1, 0, 0], [0, 0, 1]])
y_pred = np.array([[0.75, 0.5, 1], [1, 0.2, 0.1]])
"""
score_class, weight = lwlrap(y_true, y_pred)
score = (score_class * weight).sum()
return score
def init_logger(log_file=OUTPUT_DIR / 'train.log'):
from logging import getLogger, INFO, FileHandler, Formatter, StreamHandler
logger = getLogger(__name__)
logger.setLevel(INFO)
handler1 = StreamHandler()
handler1.setFormatter(Formatter("%(message)s"))
handler2 = FileHandler(filename=log_file)
handler2.setFormatter(Formatter("%(message)s"))
logger.addHandler(handler1)
logger.addHandler(handler2)
return logger
def seed_torch(seed=42):
random.seed(seed)
os.environ['PYTHONHASHSEED'] = str(seed)
np.random.seed(seed)
torch.manual_seed(seed)
torch.cuda.manual_seed(seed)
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
LOGGER = init_logger()
seed_torch(seed=CFG.seed)
################################################
# Data Loading #
################################################
traint = pd.read_csv("../input/train_tp.csv")
trainf = pd.read_csv("../input/train_fp.csv")
traint["istp"] = 1
trainf["istp"] = 0
test = pd.read_csv("../input/sample_submission.csv")
print(traint.shape, trainf.shape, test.shape)
PERIOD = CFG.period
TIME = CFG.duration
SR = 48000
FMIN = 40
FMAX = SR // 2
IMAGE_WIDTH = 320
IMAGE_HEIGHT = 320
N_MELS = IMAGE_HEIGHT
HOP_SIZE = 512
WINDOW_SIZE = 512 * 6
# 各speciesのfminとmfaxを求める
species_fmin = traint.groupby("species_id")["f_min"].agg(min).reset_index()
species_fmax = traint.groupby("species_id")["f_max"].agg(max).reset_index()
species_fmin_fmax = pd.merge(species_fmin, species_fmax, on="species_id")
MEL_FREQ = librosa.mel_frequencies(fmin=FMIN, fmax=FMAX, n_mels=IMAGE_HEIGHT)
def search_bin(value):
n = 0
for i, v in enumerate(MEL_FREQ):
if v < value:
pass
else:
n = i - 1
break
return n
# mel specに変換したときの座標を求める
# https://akifukka.hatenablog.com/entry/text2speech2
species_fmin_fmax["f_min_mel"] = species_fmin_fmax["f_min"].map(search_bin)
species_fmin_fmax["f_max_mel"] = species_fmin_fmax["f_max"].map(search_bin)
# train_tpにmelの情報をmerge
species_fmin_fmax["species_id"] = species_fmin_fmax["species_id"].astype(int)
traint["species_id"] = traint["species_id"].astype(int)
trainf["species_id"] = trainf["species_id"].astype(int)
species_fmin_fmax.drop(["f_min", "f_max"], inplace=True, axis=1)
traint = pd.merge(traint, species_fmin_fmax, on="species_id", how="left")
trainf = pd.merge(trainf, species_fmin_fmax, on="species_id", how="left")
# tpとfpをconcat
train_df = pd.concat([traint, trainf], axis=0).reset_index()
print(train_df.shape)
################################################
# CV split #
################################################
train_gby = train_df.groupby("recording_id")[["species_id"]].first().reset_index()
train_gby = train_gby.sample(frac=1, random_state=CFG.seed).reset_index(drop=True)
train_gby.loc[:, "kfold"] = -1
X = train_gby["recording_id"].values
y = train_gby["species_id"].values
kfold = StratifiedKFold(n_splits=CFG.n_fold)
for fold, (t_idx, v_idx) in enumerate(kfold.split(X, y)):
train_gby.loc[v_idx, "kfold"] = fold
train_df = train_df.merge(train_gby[["recording_id", "kfold"]], on="recording_id", how="left")
print(train_df.kfold.value_counts())
train_df.to_csv(OUTPUT_DIR / "folds.csv", index=False)
species_fmin_fmax.to_csv(OUTPUT_DIR / "species_fmin_fmax.csv", index=False)
################################################
# audiomentations #
################################################
augmenter = A.Compose([
A.AddGaussianNoise(min_amplitude=0.01, max_amplitude=0.03, p=0.2),
A.PitchShift(min_semitones=-3, max_semitones=3, p=0.2),
A.Gain(p=0.2)
])
################################################
# Dataset #
################################################
def cut_spect(spect: torch.Tensor, fmin_mel: int, fmax_mel: int):
return spect[fmin_mel:fmax_mel]
def do_normalize(img: torch.Tensor):
bs, ch, w, h = img.shape
_img = img.clone()
_img = _img.view(bs, -1)
_img -= _img.min(1, keepdim=True)[0]
_img /= _img.max(1, keepdim=True)[0]
_img = _img.view(bs, ch, w, h) * 255
return _img
class AudioDataset(Dataset):
def __init__(self, df, period=PERIOD, time=TIME,
transforms=None, data_path="../input/rfcx-species-audio-detection/train"):
dfgby = df.groupby("recording_id").agg(lambda x: list(x)).reset_index()
self.period = period
self.transforms = transforms
self.data_path = data_path
self.time = time
self.recording_ids = dfgby["recording_id"].values
self.species_ids = dfgby["species_id"].values
self.t_mins = dfgby["t_min"].values
self.t_maxs = dfgby["t_max"].values
self.f_mins = dfgby["f_min"].values
self.f_maxs = dfgby["f_max"].values
self.f_min_mels = dfgby["f_min_mel"].values
self.f_max_mels = dfgby["f_max_mel"].values
self.istps = dfgby["istp"].values
def __len__(self):
return len(self.recording_ids)
def __getitem__(self, idx):
recording_id = self.recording_ids[idx]
species_id = self.species_ids[idx]
istp = self.istps[idx]
t_min, t_max = self.t_mins[idx], self.t_maxs[idx]
f_min, f_max = self.f_mins[idx], self.f_maxs[idx]
f_min_mel, f_max_mel = self.f_min_mels[idx], self.f_max_mels[idx]
# 読み込む
y, sr = sf.read(f"{self.data_path}/{recording_id}.flac")
len_y = len(y) # 全フレーム数
# sampling rate(frame/sec)と取得期間(sec)をかけて必要なフレームを取得
effective_length = sr * self.time
rint = np.random.randint(len(t_min))
# tmin, tmaxをフレーム数に変換
tmin, tmax = round(sr * t_min[rint]), round(sr * t_max[rint])
cut_min = max(0, min(tmin - (effective_length - (tmax-tmin)) // 2,
min(tmax + (effective_length - (tmax-tmin)) // 2,
len_y) - effective_length))
extra = tmax+(effective_length - (tmax-tmin))//2 - len_y
lack = tmin - (effective_length - (tmax-tmin)) // 2
start = cut_min + np.random.randint(0, (self.time-self.period)*sr)
if extra > 0:
start = np.random.randint(tmax-(tmax-tmin)//2-self.period*sr, len_y-self.period*sr)
if lack < 0:
start = cut_min + np.random.randint(0, tmin)
end = start + self.period * sr
y = y[start:end]
if self.transforms:
# 音声のAugumentation(gaussianノイズとか)が入ってる
y = self.transforms(samples=y, sample_rate=sr)
# start(フレーム数)->time(sec)に変換
# start_timeはeffective_lengthの左端
start_time = start / sr
end_time = end / sr
label = np.zeros(24, dtype='f')
new_tmins = []
new_tmaxs = []
new_fmins = []
new_fmaxs = []
new_sids = []
new_istp = []
for i in range(len(t_min)):
# 今回、複数のt_minから選んでいるため、データによってはTP,FPの期間がオーバーラップしている
if (t_min[i] >= start_time) & (t_max[i] <= end_time):
if f_min_mel[rint] <= (f_min_mel[i]+f_max_mel[i])/2 <= f_max_mel[rint]:
if label[species_id[i]] == 0:
label[species_id[i]] = 1 * istp[i]
new_tmins.append(t_min[i]-start_time)
new_tmaxs.append(t_max[i]-start_time)
new_fmins.append(f_min[i])
new_fmaxs.append(f_max[i])
new_sids.append(species_id[i])
new_istp.append(istp[i])
elif start_time <= ((t_min[i] + t_max[i]) / 2) <= end_time: # bboxの重心がeffective_lengthの中にある
if f_min_mel[rint] <= (f_min_mel[i]+f_max_mel[i])/2 <= f_max_mel[rint]:
if label[species_id[i]] == 0:
label[species_id[i]] = 1 * istp[i]
new_tmin = 0
new_tmax = 0
if t_min[i] - start_time < 0:
new_tmin = 0
else:
new_tmin = t_min[i] - start_time
if t_max[i] - start_time < 0:
new_tmax = 0
elif t_max[i] > end_time:
new_tmax = end_time - start_time
else:
new_tmax = t_max[i] - start_time
new_tmins.append(new_tmin)
new_tmaxs.append(new_tmax)
new_fmins.append(f_min[i])
new_fmaxs.append(f_max[i])
new_sids.append(species_id[i])
new_istp.append(istp[i])
return {
"wav": torch.tensor(y, dtype=torch.float),
"target": torch.tensor(label, dtype=torch.float),
"id": recording_id,
"f_min_mel": f_min_mel[rint],
"f_max_mel": f_max_mel[rint],
}
class ValidDataset(Dataset):
def __init__(self, df, period=PERIOD, transforms=None, data_path="../input/rfcx-species-audio-detection/train"):
dfgby = df.groupby("recording_id").agg(lambda x: list(x)).reset_index()
self.period = period
self.transforms = transforms
self.data_path = data_path
self.recording_ids = dfgby["recording_id"].values
self.species_ids = dfgby["species_id"].values
self.t_mins = dfgby["t_min"].values
self.t_maxs = dfgby["t_max"].values
self.f_mins = dfgby["f_min"].values
self.f_maxs = dfgby["f_max"].values
self.f_min_mels = dfgby["f_min_mel"].values
self.f_max_mels = dfgby["f_max_mel"].values
self.istps = dfgby["istp"].values
def __len__(self):
return len(self.recording_ids)
def __getitem__(self, idx):
recording_id = self.recording_ids[idx]
species_id = self.species_ids[idx]
istp = self.istps[idx]
t_min, t_max = self.t_mins[idx], self.t_maxs[idx]
f_min, f_max = self.f_mins[idx], self.f_maxs[idx]
f_min_mel, f_max_mel = self.f_min_mels[idx], self.f_max_mels[idx]
rint = np.random.randint(len(t_min))
# 読み込む
y, sr = sf.read(f"{self.data_path}/{recording_id}.flac")
# tmin, tmaxをフレーム数に変換
tmin, tmax = round(sr * t_min[rint]), round(sr * t_max[rint])
len_y = len(y) # 全フレーム数
# sampling rate(frame/sec)と取得期間(sec)をかけて必要なフレームを取得
effective_length = sr * self.period # 6 sec
start = 0
start = max(0, min(tmin - (effective_length - (tmax-tmin)) // 2,
min(tmax + (effective_length - (tmax-tmin)) // 2,
len_y) - effective_length))
end = start + effective_length
y = y[start:end]
start_time = start / sr
end_time = end / sr
label = np.zeros(24, dtype='f')
new_tmins = []
new_tmaxs = []
new_fmins = []
new_fmaxs = []
new_sids = []
new_istp = []
for i in range(len(t_min)):
# 今回、複数のt_minから選んでいるため、データによってはTP,FPの期間がオーバーラップしている
if (t_min[i] >= start_time) & (t_max[i] <= end_time):
if f_min_mel[rint] <= (f_min_mel[i]+f_max_mel[i])/2 <= f_max_mel[rint]:
if label[species_id[i]] == 0:
label[species_id[i]] = 1 * istp[i]
new_tmins.append(t_min[i]-start_time)
new_tmaxs.append(t_max[i]-start_time)
new_fmins.append(f_min[i])
new_fmaxs.append(f_max[i])
new_sids.append(species_id[i])
new_istp.append(istp[i])
elif start_time <= ((t_min[i] + t_max[i]) / 2) <= end_time: # bboxの重心がeffective_lengthの中にある
if f_min_mel[rint] <= (f_min_mel[i]+f_max_mel[i])/2 <= f_max_mel[rint]:
if label[species_id[i]] == 0:
label[species_id[i]] = 1 * istp[i]
new_tmin = 0
new_tmax = 0
if t_min[i] - start_time < 0:
new_tmin = 0
else:
new_tmin = t_min[i] - start_time
if t_max[i] - start_time < 0:
new_tmax = 0
elif t_max[i] > end_time:
new_tmax = end_time - start_time
else:
new_tmax = t_max[i] - start_time
new_tmins.append(new_tmin)
new_tmaxs.append(new_tmax)
new_fmins.append(f_min[i])
new_fmaxs.append(f_max[i])
new_sids.append(species_id[i])
new_istp.append(istp[i])
return {
"wav": torch.tensor(y, dtype=torch.float),
"target": torch.tensor(label, dtype=torch.float),
"id": recording_id,
"f_min_mel": f_min_mel[rint],
"f_max_mel": f_max_mel[rint],
}
class TestDataset(Dataset):
def __init__(self, df, period=PERIOD, transforms=None, data_path="../input/rfcx-species-audio-detection/test"):
self.period = period
self.transforms = transforms
self.data_path = data_path
self.recording_ids = df["recording_id"].values
def __len__(self):
return len(self.recording_ids)
def __getitem__(self, idx):
recording_id = self.recording_ids[idx]
y, sr = sf.read(f"{self.data_path}/{recording_id}.flac")
len_y = len(y)
# フレーム数に変換
effective_length = sr * self.period
y_ = []
i = 0
while i < len_y:
# インクリメントしていき全部を舐めていく(effective_lengthずつ飛ばしているけど良い??)
y__ = y[i:i+effective_length]
if effective_length > len(y__):
break
else:
y_.append(y__)
i = i + int(effective_length)
y = np.stack(y_) # (effective_length, 2N)
label = np.zeros(24, dtype='f')
# y: clip nums, seq -> clip_nums, width, height
return {
"wav": torch.tensor(y, dtype=torch.float),
"target": torch.tensor(label, dtype=torch.float),
"id": recording_id,
}
################################################
# Model #
################################################
def init_layer(layer):
nn.init.xavier_uniform_(layer.weight)
if hasattr(layer, "bias"):
if layer.bias is not None:
layer.bias.data.fill_(0.)
class AudioClassifier(nn.Module):
def __init__(self, model_name, n_out):
super(AudioClassifier, self).__init__()
# Spec augmenter
self.spec_augmenter = SpecAugmentation(time_drop_width=80, time_stripes_num=2,
freq_drop_width=16, freq_stripes_num=2)
self.net = timm.create_model(model_name, pretrained=True, in_chans=1)
self.avg_pool = nn.AdaptiveAvgPool2d((1, 1))
self.dropout1 = nn.Dropout(0.3)
self.dropout2 = nn.Dropout(0.3)
n_features = self.net.classifier.in_features
self.net_classifier = nn.Linear(n_features, n_out)
self.init_weight()
# korrniaのrandom cropはh,wを想定しているため注意
self.transform = nn.Sequential(K.RandomHorizontalFlip(p=0.1),
# K.GaussianBlur(7, p=0.5),
# K.RandomCrop((round(IMAGE_HEIGHT*0.7), round(IMAGE_WIDTH*0.7)),p=0.3)
)
def init_weight(self):
init_layer(self.net_classifier)
def forward(self, x, f_min_mels, f_max_mels, train=True, test=False): # x: (bs, 1, w, h)
# f_min_melとf_max_melによってカットする
bs, ch, w, h = x.shape
x = x.reshape(bs*w, -1)
bsw = bs*w
spects = []
fi = 0
if test:
for ii, i in enumerate(range(bsw)[::w]):
spect = x[i:i+w] # torch (w, h)
for f_min, f_max in zip(f_min_mels, f_max_mels):
_spect = cut_spect(spect.transpose(0, 1), f_min, f_max).transpose(0, 1) # out:torch (w, h)
# resizeする.
_spect = torch.unsqueeze(_spect, 0)
_spect = torch.unsqueeze(_spect, 0) # torch(1,1,w,h)
_spect = F.interpolate(_spect, (IMAGE_WIDTH, IMAGE_HEIGHT),
mode='bilinear',
align_corners=False) # out: torch (1, 1, w, h)
_spect = torch.squeeze(_spect, 0) # out: torch (1, w, h)
spects.append(_spect)
x = torch.stack(spects) # torch (bs, 1, w, h) bs=24*bs*10
else:
for ii, i in enumerate(range(bsw)[::w]):
spect = x[i:i+w] # torch (w, h)
f_min = f_min_mels[fi]
f_max = f_max_mels[fi]
spect = cut_spect(spect.transpose(0, 1), f_min, f_max).transpose(0, 1) # out:torch (w, h)
# resizeする.
spect = torch.unsqueeze(spect, 0)
spect = torch.unsqueeze(spect, 0) # torch(1,1,w,h)
spect = F.interpolate(spect, (IMAGE_WIDTH, IMAGE_HEIGHT),
mode='bilinear',
align_corners=False) # out: torch (1, 1, w, h)
if train:
spect = self.transform(spect.transpose(2, 3)) # out: torch(1,1,h,w)
spect = spect.transpose(2, 3) # out: torch(1,1,w,h)
spect = torch.squeeze(spect, 0) # torch (1, w, h)
spects.append(spect)
fi += 1
x = torch.stack(spects) # torch (bs, 1, w, h)
x = do_normalize(x)
if train:
x = self.spec_augmenter(x)
# x = x.expand(x.shape[0], 3, x.shape[2], x.shape[3]) # channel分複製
# Output shape (batch size, channels, time, frequency)
x = self.net.forward_features(x)
x = self.avg_pool(x).flatten(1)
x = self.dropout1(x)
x = self.net_classifier(x)
return x
################################################
# Loss #
################################################
def f1_loss(y_true, y_pred, is_training=False, epsilon=1e-7) -> torch.Tensor:
'''
Calculate F1 score. Can work with gpu tensors
The original implmentation is written by Michal Haltuf on Kaggle.
Returns
-------
torch.Tensor
`ndim` == 1. 0 <= val <= 1
Reference
---------
- https://www.kaggle.com/rejpalcz/best-loss-function-for-f1-score-metric
- https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html#sklearn.metrics.f1_score
- https://discuss.pytorch.org/t/calculating-precision-recall-and-f1-score-in-case-of-multi-label-classification/28265/6
'''
y_pred = y_pred > 0.5
tp = (y_true * y_pred).sum()
fp = ((1 - y_true) * y_pred).sum()
fn = (y_true * (1 - y_pred)).sum()
precision = tp / (tp + fp + epsilon)
recall = tp / (tp + fn + epsilon)
f1 = 2 * (precision*recall) / (precision + recall + epsilon)
return f1
# https://www.kaggle.com/c/rfcx-species-audio-detection/discussion/213075
class BCEFocalLoss(nn.Module):
def __init__(self, alpha=0.25, gamma=2.0):
super().__init__()
self.alpha = alpha
self.gamma = gamma
def forward(self, preds, targets):
bce_loss = nn.BCEWithLogitsLoss(reduction='none')(preds, targets)
probas = torch.sigmoid(preds)
loss = targets * self.alpha * (1. - probas)**self.gamma * bce_loss + (1. - targets) * probas**self.gamma * bce_loss
loss = loss.mean()
return loss
################################################
# Training helper functions #
################################################
class AverageMeter(object):
"""Computes and stores the average and current value"""
def __init__(self):
self.reset()
def reset(self):
self.val = 0
self.avg = 0
self.sum = 0
self.count = 0
def update(self, val, n=1):
self.val = val
self.sum += val * n
self.count += n
self.avg = self.sum / self.count
class MetricMeter(object):
def __init__(self):
self.reset()
def reset(self):
self.y_true = []
self.y_pred = []
def update(self, y_true, y_pred):
self.y_true.extend(y_true.cpu().detach().numpy().tolist())
self.y_pred.extend(torch.sigmoid(y_pred).cpu().detach().numpy().tolist())
@property
def avg(self):
self.f1score = f1_loss(np.array(self.y_true), np.array(self.y_pred))
score_class, weight = lwlrap(np.array(self.y_true), np.array(self.y_pred))
self.score = (score_class * weight).sum()
return {
"lwlrap": self.score,
"f1score": self.f1score
}
def get_mixup_indices(bs, f_min_mels, f_max_mels):
indices_matrix = np.zeros((bs, bs))
for img1_idx in range(bs):
for img2_idx in range(bs):
if img1_idx != img2_idx:
mix_flag = (f_min_mels[img2_idx] >= f_min_mels[img1_idx]) & (f_max_mels[img2_idx] <= f_max_mels[img1_idx])
if mix_flag:
indices_matrix[img1_idx, img2_idx] = 1
break # img1に対してmixupするimg2(img1の周波数帯に存在するもの)が1つ見つかり次第終了
indices = np.arange(bs)
indices_matrix_1 = np.where(indices_matrix == 1)
for i, j in zip(indices_matrix_1[0], indices_matrix_1[1]):
if i in range(bs):
indices[i] = j
else:
indices[i] = i
return indices
def mixup(data, targets, f_min_mels, f_max_mels, alpha=1.0):
bs = data.size(0)
indices = get_mixup_indices(bs, f_min_mels, f_max_mels)
shuffled_data = data[indices]
shuffled_targets = targets[indices]
# lam = np.random.beta(alpha, alpha)
lam = 0.5
data = data * lam + shuffled_data * (1 - lam)
targets = targets * lam + shuffled_targets * (1 - lam)
return data, targets
def train_epoch(model, spectrogram_extractor, logmel_extractor, loader,
criterion, optimizer, scheduler, epoch, device, p_mixup,
normalize=True, resize=True, spec_aug=True):
losses = AverageMeter()
scores = MetricMeter()
model.train()
t = tqdm(loader)
for i, sample in enumerate(t):
x = sample['wav'].to(device) # (bs, seq)
target = sample['target'].to(device)
f_min_mels = sample["f_min_mel"]
f_max_mels = sample["f_max_mel"]
x = spectrogram_extractor(x) # (batch_size, 1, time_steps, freq_bins)
x = logmel_extractor(x)
if np.random.rand(1) < p_mixup:
# mixup
mix_x, mix_target = mixup(x, target, f_min_mels, f_max_mels)
output = model(mix_x, f_min_mels, f_max_mels, train=True)
loss = criterion(output, mix_target)
else:
output = model(x, f_min_mels, f_max_mels, train=True)
loss = criterion(output, target)
if CFG.gradient_accumulation_steps > 1:
loss = loss / CFG.gradient_accumulation_steps
else:
loss.backward()
if (i + 1) % CFG.gradient_accumulation_steps == 0:
optimizer.step()
optimizer.zero_grad()
if CFG.step_scheduler:
scheduler.step()
bs = x.size(0)
scores.update(target, output)
losses.update(loss.item(), bs)
t.set_description(f"Train E:{epoch} - Loss{losses.avg:0.4f}")
t.close()
return scores.avg, losses.avg
def valid_epoch(model, spectrogram_extractor, logmel_extractor,
loader, criterion, epoch, device):
losses = AverageMeter()
scores = MetricMeter()
model.eval()
with torch.no_grad():
t = tqdm(loader)
for i, sample in enumerate(t):
x = sample['wav'].to(device) # (bs, seq)
target = sample['target'].to(device)
f_min_mels = sample["f_min_mel"]
f_max_mels = sample["f_max_mel"]
x = spectrogram_extractor(x) # (batch_size, 1, time_steps, freq_bins)
x = logmel_extractor(x)
bs = x.size(0)
output = model(x, f_min_mels, f_max_mels, train=False)
# output = output.reshape(bs, 24, -1) #(bs, 24, 24) batchsize,
# output, _ = torch.max(output, dim=1)
loss = criterion(output, target)
scores.update(target, output)
losses.update(loss.item(), bs)
t.set_description(f"Valid E:{epoch} - Loss:{losses.avg:0.4f}")
t.close()
return scores.avg, losses.avg
def test_epoch(model, spectrogram_extractor, logmel_extractor, loader,
f_min_mels, f_max_mels, device, normalize=True, resize=True):
model.eval()
pred_list = []
id_list = []
with torch.no_grad():
t = tqdm(loader)
for i, sample in enumerate(t):
x = sample["wav"].to(device)
bs, c, seq = x.shape
x = x.reshape(bs*c, seq)
x = spectrogram_extractor(x)
x = logmel_extractor(x)
id = sample["id"]
output = torch.sigmoid(model(x, f_min_mels, f_max_mels, train=False, test=True))
output = output.reshape(bs, c*24, -1)
output, _ = torch.max(output, dim=1)
output = output.cpu().detach().numpy().tolist()
pred_list.extend(output)
id_list.extend(id)
return pred_list, id_list
def get_valid_all_clip_result(fold: int):
# Load Data
train_df = pd.read_csv(OUTPUT_DIR / "folds.csv")
train_df = train_df[train_df["istp"] == 1].reset_index(drop=True)
species_fmin_fmax = pd.read_csv(OUTPUT_DIR / "species_fmin_fmax.csv")
f_min_mels = torch.tensor(species_fmin_fmax["f_min_mel"].values, dtype=torch.int)
f_max_mels = torch.tensor(species_fmin_fmax["f_max_mel"].values, dtype=torch.int)
# Load model
model = AudioClassifier(CFG.model_param["encoder"], CFG.model_param["classes_num"])
model.load_state_dict(torch.load(OUTPUT_DIR / f'fold-{fold}.bin'))
model = model.to(device)
# Get valid
valid_fold = train_df[train_df.kfold == fold].reset_index(drop=True)
test_dataset = TestDataset(
df=valid_fold,
period=CFG.period,
transforms=None,
data_path="../input/train",
)
test_loader = torch.utils.data.DataLoader(
test_dataset,
batch_size=CFG.batch_size//32,
shuffle=False,
drop_last=False,
num_workers=CFG.num_workers
)
window = 'hann'
center = True
pad_mode = 'reflect'
ref = 1.0
amin = 1e-10
top_db = None
spectrogram_extractor = Spectrogram(n_fft=WINDOW_SIZE, hop_length=HOP_SIZE,
win_length=WINDOW_SIZE, window=window,
center=center, pad_mode=pad_mode,
freeze_parameters=True).to(device)
logmel_extractor = LogmelFilterBank(sr=SR, n_fft=WINDOW_SIZE,
n_mels=N_MELS, fmin=FMIN, fmax=FMAX,
ref=ref, amin=amin, top_db=top_db,
freeze_parameters=True).to(device)
test_pred, ids = test_epoch(model, spectrogram_extractor, logmel_extractor, test_loader,
f_min_mels, f_max_mels, device, resize=True)
test_pred_df = pd.DataFrame({
"recording_id": valid_fold.recording_id.values
})
test_pred_df["kfold"] = fold
for i in range(24):
test_pred_df[f"s{i}"] = 0
test_pred_df[[f's{i}' for i in range(24)]] = test_pred
return test_pred_df
def inference(fold: int):
# Load Data
sub_df = pd.read_csv("../input/sample_submission.csv")
species_fmin_fmax = pd.read_csv(OUTPUT_DIR / "species_fmin_fmax.csv")
f_min_mels = torch.tensor(species_fmin_fmax["f_min_mel"].values, dtype=torch.int)
f_max_mels = torch.tensor(species_fmin_fmax["f_max_mel"].values, dtype=torch.int)
# Load model
model = AudioClassifier(CFG.model_param["encoder"], CFG.model_param["classes_num"])
model.load_state_dict(torch.load(OUTPUT_DIR / f'fold-{fold}.bin'))
model = model.to(device)
# Get valid
test_dataset = TestDataset(
df=sub_df,
period=CFG.period,
transforms=None,
data_path="../input/test",
)
test_loader = torch.utils.data.DataLoader(
test_dataset,
batch_size=CFG.batch_size//16,
shuffle=False,
drop_last=False,
num_workers=CFG.num_workers
)
window = 'hann'
center = True
pad_mode = 'reflect'
ref = 1.0
amin = 1e-10
top_db = None
spectrogram_extractor = Spectrogram(n_fft=WINDOW_SIZE, hop_length=HOP_SIZE,
win_length=WINDOW_SIZE, window=window,
center=center, pad_mode=pad_mode,
freeze_parameters=True).to(device)
logmel_extractor = LogmelFilterBank(sr=SR, n_fft=WINDOW_SIZE,
n_mels=N_MELS, fmin=FMIN, fmax=FMAX,
ref=ref, amin=amin, top_db=top_db,
freeze_parameters=True).to(device)
test_pred, ids = test_epoch(model, spectrogram_extractor, logmel_extractor, test_loader,
f_min_mels, f_max_mels, device, resize=True)
test_pred_df = pd.DataFrame({
"recording_id": sub_df.recording_id.values
})
test_pred_df["kfold"] = fold
for i in range(24):
test_pred_df[f"s{i}"] = 0
test_pred_df[[f's{i}' for i in range(24)]] = test_pred
return test_pred_df
################################################
# Training Loop #
################################################
def train_loop(fold):
LOGGER.info(f"========== fold: {fold} training ==========")
train_df = pd.read_csv(OUTPUT_DIR / 'folds.csv')
if CFG.debug:
train_df = train_df.sample(n=1000, random_state=42)
train_fold = train_df[train_df.kfold != fold]
valid_fold = train_df[train_df.kfold == fold]
columns = [
"recording_id", "species_id", "t_min", "f_min", "t_max", "f_max",
"istp", "f_min_mel", "f_max_mel", "kfold"
]
train_fold = train_fold[columns]
print(f"train fold before concat: {train_fold.shape}")
train_dataset = AudioDataset(
df=train_fold,
period=CFG.period,
time=CFG.duration,
transforms=augmenter,
data_path="../input/train",
)
valid_dataset = ValidDataset(
df=valid_fold,
period=CFG.period,
transforms=None,
data_path="../input/train"
)
train_loader = torch.utils.data.DataLoader(
train_dataset,
batch_size=CFG.batch_size,
shuffle=True,
drop_last=True,
num_workers=CFG.num_workers,
)
valid_loader = torch.utils.data.DataLoader(
valid_dataset,
batch_size=CFG.batch_size//4,
shuffle=False,
drop_last=False,
num_workers=CFG.num_workers
)
window = 'hann'
center = True
pad_mode = 'reflect'
ref = 1.0
amin = 1e-10
top_db = None
spectrogram_extractor = Spectrogram(n_fft=WINDOW_SIZE, hop_length=HOP_SIZE,
win_length=WINDOW_SIZE, window=window,
center=center, pad_mode=pad_mode,
freeze_parameters=True).to(device)
logmel_extractor = LogmelFilterBank(sr=SR, n_fft=WINDOW_SIZE,
n_mels=N_MELS, fmin=FMIN, fmax=FMAX,
ref=ref, amin=amin, top_db=top_db,
freeze_parameters=True).to(device)
# ====================================================
# scheduler
# ====================================================
def get_scheduler(optimizer):
if CFG.scheduler == 'ReduceLROnPlateau':
scheduler = ReduceLROnPlateau(optimizer, mode='min', factor=CFG.factor, patience=CFG.patience, verbose=True, eps=CFG.min_lr)
elif CFG.scheduler == 'CosineAnnealingLR':
scheduler = CosineAnnealingLR(optimizer, T_max=CFG.T_max, eta_min=CFG.min_lr, last_epoch=-1)
elif CFG.scheduler == 'CosineAnnealingWarmRestarts':
scheduler = CosineAnnealingWarmRestarts(optimizer, T_0=CFG.T_0, T_mult=1, eta_min=CFG.min_lr, last_epoch=-1)
return scheduler
# ====================================================
# model & optimizer
# ====================================================
model = AudioClassifier(CFG.model_param["encoder"], CFG.model_param["classes_num"])
model = model.to(device)
# optimizer = Adam(model.parameters(), lr=CFG.lr, weight_decay=CFG.weight_decay, amsgrad=False)
# scheduler = get_scheduler(optimizer)
optimizer = torch.optim.AdamW(model.parameters(), lr=CFG.lr)
num_train_steps = int(len(train_loader) * CFG.epochs)
num_warmup_steps = int(0.1 * CFG.epochs * len(train_loader))
scheduler = get_linear_schedule_with_warmup(optimizer, num_warmup_steps=num_warmup_steps, num_training_steps=num_train_steps)
# criterion = nn.BCEWithLogitsLoss()
criterion = BCEFocalLoss()
best_score = -np.inf
for epoch in range(CFG.epochs):
if epoch < CFG.mixup_epochs:
p_mixup = CFG.p_mixup
else:
p_mixup = 0.
start_time = time.time()
# train
train_avg, train_loss = train_epoch(model, spectrogram_extractor, logmel_extractor, train_loader,
criterion, optimizer, scheduler, epoch, device, p_mixup, spec_aug=True)
# valid
valid_avg, valid_loss = valid_epoch(model, spectrogram_extractor, logmel_extractor, valid_loader,
criterion, epoch, device)
if isinstance(scheduler, ReduceLROnPlateau):
scheduler.step(valid_loss)
elif isinstance(scheduler, CosineAnnealingLR):
scheduler.step()
elif isinstance(scheduler, CosineAnnealingWarmRestarts):
scheduler.step()
elapsed = time.time() - start_time
LOGGER.info(f'Epoch {epoch+1} - avg_train_loss: {train_loss:.5f} avg_val_loss: {valid_loss:.5f} time: {elapsed:.0f}s')
LOGGER.info(f"Epoch {epoch+1} - train_LWLRAP:{train_avg['lwlrap']:0.5f} valid_LWLRAP:{valid_avg['lwlrap']:0.5f}")
LOGGER.info(f"Epoch {epoch+1} - train_F1:{train_avg['f1score']:0.5f} valid_F1:{valid_avg['f1score']:0.5f}")
if valid_avg['f1score'] > best_score:
LOGGER.info(f">>>>>>>> Model Improved From {best_score} ----> {valid_avg['f1score']}")
torch.save(model.state_dict(), OUTPUT_DIR / f'fold-{fold}.bin')
best_score = valid_avg['f1score']
def get_master_df():
df = pd.read_csv("../input/train_tp.csv").sort_values("recording_id")
df['species_ids'] = df['species_id'].astype(str)
label_dict = {}
for recording_id, tmp in df.groupby(['recording_id']):
label_dict[recording_id] = ' '.join(sorted(set(tmp['species_ids'].values)))
output = pd.DataFrame({'recording_id': df['recording_id'].unique()})
output['species_ids'] = output['recording_id'].map(label_dict)
y_true = np.zeros((len(output), 24))
for i, species in enumerate(output['species_ids'].values):
for s in species.split():
y_true[i, int(s)] = 1
for i in range(24):
output[f"true_s{i}"] = 0
output[[f'true_s{i}' for i in range(24)]] = y_true
return output.reset_index(drop=True)
def get_result(oof_df):
y_true = np.zeros((len(oof_df), 24))
for i, species in enumerate(oof_df['species_ids'].values):
for s in species.split():
y_true[i, int(s)] = 1
preds = oof_df[[f's{i}' for i in range(24)]].values
score = get_score(y_true, preds)
LOGGER.info(f'LWLRAP Score: {score:<.5f}')
################################################
# Main #
################################################
def main():
if CFG.train:
master_df = get_master_df()
# train
oof_df = pd.DataFrame()
for fold in range(CFG.n_fold):
if fold in CFG.trn_fold:
train_loop(fold)
_oof_df = get_valid_all_clip_result(fold)
_oof_df = _oof_df.merge(master_df, on='recording_id', how='left')
oof_df = pd.concat([oof_df, _oof_df])
LOGGER.info(f"========== fold: {fold} result ==========")
get_result(_oof_df)
# CV result
LOGGER.info("========== CV ==========")
get_result(oof_df)
# save result
oof_df.to_csv(OUTPUT_DIR / 'oof_df.csv', index=False)
if CFG.inference:
# inference
LOGGER.info("========== inference ==========")
submission = pd.DataFrame()
for fold in range(CFG.n_fold):
if fold in CFG.trn_fold:
sub = inference(fold)
submission = pd.concat([submission, sub])
print(f'raw_submission: {submission.shape}')
submission.to_csv(OUTPUT_DIR / "raw_submission.csv", index=False)
sub = submission.groupby("recording_id", as_index=False).mean()
output_cols = ['recording_id'] + [f's{i}' for i in range(24)]
print(f'raw_submission: {sub.shape}')
sub[output_cols].to_csv(OUTPUT_DIR / "submission.csv", index=False)
LOGGER.info("========== submission ==========")
LOGGER.info(sub[output_cols].head())
if __name__ == '__main__':
main()
|
[
"arabiannight1994@yahoo.co.jp"
] |
arabiannight1994@yahoo.co.jp
|
7e2178bbaea5a74da95f3e91c473d6314be0c123
|
53dd5d2cfb79edc87f6c606bbfb7d0bedcf6da61
|
/.history/EMR/EMRryzd_1_20190410143150.py
|
447c8d147b75b36af2f0e17929c25c3b55f8321c
|
[] |
no_license
|
cyc19950621/python
|
4add54894dc81187211aa8d45e5115903b69a182
|
d184b83e73334a37d413306d3694e14a19580cb0
|
refs/heads/master
| 2020-04-11T20:39:34.641303
| 2019-07-02T12:54:49
| 2019-07-02T12:54:49
| 162,078,640
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,494
|
py
|
#-*- coding: UTF-8 -*-
#本文件用于提取目标目录中的所有txt,并提取关键词所在行到指定目录,并提取关键词新建文件
import time
import math
import os
import sys
import os, os.path,shutil
import codecs
import EMRdef
import re
emrtxts = EMRdef.txttq(u'D:\DeepLearning ER\EHR')#txt目录提取
zljhs = []
for emrtxt in emrtxts:
f = open(emrtxt,'r',errors="ignore")#中文加入errors
emrtxt = os.path.basename(emrtxt)
emrtxt_str = re.findall(r'(^.+?)\_',emrtxt)#提取ID
emrtxt = "".join(emrtxt_str)#转成str
pattern = r',|.|,|。|;|;'#清除标点
#txtp=txtp.decode('utf-8')
for line in f.readlines():
line = re.sub(' ','',line)#删除空格
if line.find (u'入院诊断:',0,6) >-1:
line = re.sub(r'h|H', '小时', line)#小时替换成中文
line = re.sub(r'入院诊断:', '', line)#删除入院诊断字样
line_deldl = re.split(r';|。|,|;|?',line)#根据标点分行
line_deld = '\n'.join(line_deldl) #转成str格式
line_out = re.sub(r'\d+、','\n',line_deld) #删除序号
line_output = re.split('\n',line_out)
line = ''.join(line_output)
EMRdef.text_create(r'D:\DeepLearning ER\EHRryzd','.txt' ,emrtxt,line)#导出带有诊疗计划的文件和诊疗计划
#zljhs.append(emrtxt+':'+line)
#EMRdef.text_save('D:\python\EMR\zljh.txt',zljhs)
|
[
"1044801968@qq.com"
] |
1044801968@qq.com
|
df6dd2353e401871a241b24c6eb060b31bf936ce
|
96b03f66f55b2f733f3da5defbd5b37d2a02bc8a
|
/modules/calc900_200.py
|
c57ba2ff7df493abc68557412c554913c82f8ea8
|
[] |
no_license
|
th3fall3n0n3/my_first_calc_extended
|
641e66119c2b7055ea47a55ebd3559077394fc90
|
c2c0dfe50ebc59ea20bb595db50ef63d603d54af
|
refs/heads/master
| 2016-09-13T18:08:15.841173
| 2016-05-14T15:18:08
| 2016-05-14T15:18:08
| 58,811,146
| 2
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 863,801
|
py
|
def calc(num1, sign, num2):
if num1 == 900 and sign == '+' and num2 == 200:
print('900+200 = 1100')
if num1 == 900 and sign == '+' and num2 == 201:
print('900+201 = 1101')
if num1 == 900 and sign == '+' and num2 == 202:
print('900+202 = 1102')
if num1 == 900 and sign == '+' and num2 == 203:
print('900+203 = 1103')
if num1 == 900 and sign == '+' and num2 == 204:
print('900+204 = 1104')
if num1 == 900 and sign == '+' and num2 == 205:
print('900+205 = 1105')
if num1 == 900 and sign == '+' and num2 == 206:
print('900+206 = 1106')
if num1 == 900 and sign == '+' and num2 == 207:
print('900+207 = 1107')
if num1 == 900 and sign == '+' and num2 == 208:
print('900+208 = 1108')
if num1 == 900 and sign == '+' and num2 == 209:
print('900+209 = 1109')
if num1 == 900 and sign == '+' and num2 == 210:
print('900+210 = 1110')
if num1 == 900 and sign == '+' and num2 == 211:
print('900+211 = 1111')
if num1 == 900 and sign == '+' and num2 == 212:
print('900+212 = 1112')
if num1 == 900 and sign == '+' and num2 == 213:
print('900+213 = 1113')
if num1 == 900 and sign == '+' and num2 == 214:
print('900+214 = 1114')
if num1 == 900 and sign == '+' and num2 == 215:
print('900+215 = 1115')
if num1 == 900 and sign == '+' and num2 == 216:
print('900+216 = 1116')
if num1 == 900 and sign == '+' and num2 == 217:
print('900+217 = 1117')
if num1 == 900 and sign == '+' and num2 == 218:
print('900+218 = 1118')
if num1 == 900 and sign == '+' and num2 == 219:
print('900+219 = 1119')
if num1 == 900 and sign == '+' and num2 == 220:
print('900+220 = 1120')
if num1 == 900 and sign == '+' and num2 == 221:
print('900+221 = 1121')
if num1 == 900 and sign == '+' and num2 == 222:
print('900+222 = 1122')
if num1 == 900 and sign == '+' and num2 == 223:
print('900+223 = 1123')
if num1 == 900 and sign == '+' and num2 == 224:
print('900+224 = 1124')
if num1 == 900 and sign == '+' and num2 == 225:
print('900+225 = 1125')
if num1 == 900 and sign == '+' and num2 == 226:
print('900+226 = 1126')
if num1 == 900 and sign == '+' and num2 == 227:
print('900+227 = 1127')
if num1 == 900 and sign == '+' and num2 == 228:
print('900+228 = 1128')
if num1 == 900 and sign == '+' and num2 == 229:
print('900+229 = 1129')
if num1 == 900 and sign == '+' and num2 == 230:
print('900+230 = 1130')
if num1 == 900 and sign == '+' and num2 == 231:
print('900+231 = 1131')
if num1 == 900 and sign == '+' and num2 == 232:
print('900+232 = 1132')
if num1 == 900 and sign == '+' and num2 == 233:
print('900+233 = 1133')
if num1 == 900 and sign == '+' and num2 == 234:
print('900+234 = 1134')
if num1 == 900 and sign == '+' and num2 == 235:
print('900+235 = 1135')
if num1 == 900 and sign == '+' and num2 == 236:
print('900+236 = 1136')
if num1 == 900 and sign == '+' and num2 == 237:
print('900+237 = 1137')
if num1 == 900 and sign == '+' and num2 == 238:
print('900+238 = 1138')
if num1 == 900 and sign == '+' and num2 == 239:
print('900+239 = 1139')
if num1 == 900 and sign == '+' and num2 == 240:
print('900+240 = 1140')
if num1 == 900 and sign == '+' and num2 == 241:
print('900+241 = 1141')
if num1 == 900 and sign == '+' and num2 == 242:
print('900+242 = 1142')
if num1 == 900 and sign == '+' and num2 == 243:
print('900+243 = 1143')
if num1 == 900 and sign == '+' and num2 == 244:
print('900+244 = 1144')
if num1 == 900 and sign == '+' and num2 == 245:
print('900+245 = 1145')
if num1 == 900 and sign == '+' and num2 == 246:
print('900+246 = 1146')
if num1 == 900 and sign == '+' and num2 == 247:
print('900+247 = 1147')
if num1 == 900 and sign == '+' and num2 == 248:
print('900+248 = 1148')
if num1 == 900 and sign == '+' and num2 == 249:
print('900+249 = 1149')
if num1 == 901 and sign == '+' and num2 == 200:
print('901+200 = 1101')
if num1 == 901 and sign == '+' and num2 == 201:
print('901+201 = 1102')
if num1 == 901 and sign == '+' and num2 == 202:
print('901+202 = 1103')
if num1 == 901 and sign == '+' and num2 == 203:
print('901+203 = 1104')
if num1 == 901 and sign == '+' and num2 == 204:
print('901+204 = 1105')
if num1 == 901 and sign == '+' and num2 == 205:
print('901+205 = 1106')
if num1 == 901 and sign == '+' and num2 == 206:
print('901+206 = 1107')
if num1 == 901 and sign == '+' and num2 == 207:
print('901+207 = 1108')
if num1 == 901 and sign == '+' and num2 == 208:
print('901+208 = 1109')
if num1 == 901 and sign == '+' and num2 == 209:
print('901+209 = 1110')
if num1 == 901 and sign == '+' and num2 == 210:
print('901+210 = 1111')
if num1 == 901 and sign == '+' and num2 == 211:
print('901+211 = 1112')
if num1 == 901 and sign == '+' and num2 == 212:
print('901+212 = 1113')
if num1 == 901 and sign == '+' and num2 == 213:
print('901+213 = 1114')
if num1 == 901 and sign == '+' and num2 == 214:
print('901+214 = 1115')
if num1 == 901 and sign == '+' and num2 == 215:
print('901+215 = 1116')
if num1 == 901 and sign == '+' and num2 == 216:
print('901+216 = 1117')
if num1 == 901 and sign == '+' and num2 == 217:
print('901+217 = 1118')
if num1 == 901 and sign == '+' and num2 == 218:
print('901+218 = 1119')
if num1 == 901 and sign == '+' and num2 == 219:
print('901+219 = 1120')
if num1 == 901 and sign == '+' and num2 == 220:
print('901+220 = 1121')
if num1 == 901 and sign == '+' and num2 == 221:
print('901+221 = 1122')
if num1 == 901 and sign == '+' and num2 == 222:
print('901+222 = 1123')
if num1 == 901 and sign == '+' and num2 == 223:
print('901+223 = 1124')
if num1 == 901 and sign == '+' and num2 == 224:
print('901+224 = 1125')
if num1 == 901 and sign == '+' and num2 == 225:
print('901+225 = 1126')
if num1 == 901 and sign == '+' and num2 == 226:
print('901+226 = 1127')
if num1 == 901 and sign == '+' and num2 == 227:
print('901+227 = 1128')
if num1 == 901 and sign == '+' and num2 == 228:
print('901+228 = 1129')
if num1 == 901 and sign == '+' and num2 == 229:
print('901+229 = 1130')
if num1 == 901 and sign == '+' and num2 == 230:
print('901+230 = 1131')
if num1 == 901 and sign == '+' and num2 == 231:
print('901+231 = 1132')
if num1 == 901 and sign == '+' and num2 == 232:
print('901+232 = 1133')
if num1 == 901 and sign == '+' and num2 == 233:
print('901+233 = 1134')
if num1 == 901 and sign == '+' and num2 == 234:
print('901+234 = 1135')
if num1 == 901 and sign == '+' and num2 == 235:
print('901+235 = 1136')
if num1 == 901 and sign == '+' and num2 == 236:
print('901+236 = 1137')
if num1 == 901 and sign == '+' and num2 == 237:
print('901+237 = 1138')
if num1 == 901 and sign == '+' and num2 == 238:
print('901+238 = 1139')
if num1 == 901 and sign == '+' and num2 == 239:
print('901+239 = 1140')
if num1 == 901 and sign == '+' and num2 == 240:
print('901+240 = 1141')
if num1 == 901 and sign == '+' and num2 == 241:
print('901+241 = 1142')
if num1 == 901 and sign == '+' and num2 == 242:
print('901+242 = 1143')
if num1 == 901 and sign == '+' and num2 == 243:
print('901+243 = 1144')
if num1 == 901 and sign == '+' and num2 == 244:
print('901+244 = 1145')
if num1 == 901 and sign == '+' and num2 == 245:
print('901+245 = 1146')
if num1 == 901 and sign == '+' and num2 == 246:
print('901+246 = 1147')
if num1 == 901 and sign == '+' and num2 == 247:
print('901+247 = 1148')
if num1 == 901 and sign == '+' and num2 == 248:
print('901+248 = 1149')
if num1 == 901 and sign == '+' and num2 == 249:
print('901+249 = 1150')
if num1 == 902 and sign == '+' and num2 == 200:
print('902+200 = 1102')
if num1 == 902 and sign == '+' and num2 == 201:
print('902+201 = 1103')
if num1 == 902 and sign == '+' and num2 == 202:
print('902+202 = 1104')
if num1 == 902 and sign == '+' and num2 == 203:
print('902+203 = 1105')
if num1 == 902 and sign == '+' and num2 == 204:
print('902+204 = 1106')
if num1 == 902 and sign == '+' and num2 == 205:
print('902+205 = 1107')
if num1 == 902 and sign == '+' and num2 == 206:
print('902+206 = 1108')
if num1 == 902 and sign == '+' and num2 == 207:
print('902+207 = 1109')
if num1 == 902 and sign == '+' and num2 == 208:
print('902+208 = 1110')
if num1 == 902 and sign == '+' and num2 == 209:
print('902+209 = 1111')
if num1 == 902 and sign == '+' and num2 == 210:
print('902+210 = 1112')
if num1 == 902 and sign == '+' and num2 == 211:
print('902+211 = 1113')
if num1 == 902 and sign == '+' and num2 == 212:
print('902+212 = 1114')
if num1 == 902 and sign == '+' and num2 == 213:
print('902+213 = 1115')
if num1 == 902 and sign == '+' and num2 == 214:
print('902+214 = 1116')
if num1 == 902 and sign == '+' and num2 == 215:
print('902+215 = 1117')
if num1 == 902 and sign == '+' and num2 == 216:
print('902+216 = 1118')
if num1 == 902 and sign == '+' and num2 == 217:
print('902+217 = 1119')
if num1 == 902 and sign == '+' and num2 == 218:
print('902+218 = 1120')
if num1 == 902 and sign == '+' and num2 == 219:
print('902+219 = 1121')
if num1 == 902 and sign == '+' and num2 == 220:
print('902+220 = 1122')
if num1 == 902 and sign == '+' and num2 == 221:
print('902+221 = 1123')
if num1 == 902 and sign == '+' and num2 == 222:
print('902+222 = 1124')
if num1 == 902 and sign == '+' and num2 == 223:
print('902+223 = 1125')
if num1 == 902 and sign == '+' and num2 == 224:
print('902+224 = 1126')
if num1 == 902 and sign == '+' and num2 == 225:
print('902+225 = 1127')
if num1 == 902 and sign == '+' and num2 == 226:
print('902+226 = 1128')
if num1 == 902 and sign == '+' and num2 == 227:
print('902+227 = 1129')
if num1 == 902 and sign == '+' and num2 == 228:
print('902+228 = 1130')
if num1 == 902 and sign == '+' and num2 == 229:
print('902+229 = 1131')
if num1 == 902 and sign == '+' and num2 == 230:
print('902+230 = 1132')
if num1 == 902 and sign == '+' and num2 == 231:
print('902+231 = 1133')
if num1 == 902 and sign == '+' and num2 == 232:
print('902+232 = 1134')
if num1 == 902 and sign == '+' and num2 == 233:
print('902+233 = 1135')
if num1 == 902 and sign == '+' and num2 == 234:
print('902+234 = 1136')
if num1 == 902 and sign == '+' and num2 == 235:
print('902+235 = 1137')
if num1 == 902 and sign == '+' and num2 == 236:
print('902+236 = 1138')
if num1 == 902 and sign == '+' and num2 == 237:
print('902+237 = 1139')
if num1 == 902 and sign == '+' and num2 == 238:
print('902+238 = 1140')
if num1 == 902 and sign == '+' and num2 == 239:
print('902+239 = 1141')
if num1 == 902 and sign == '+' and num2 == 240:
print('902+240 = 1142')
if num1 == 902 and sign == '+' and num2 == 241:
print('902+241 = 1143')
if num1 == 902 and sign == '+' and num2 == 242:
print('902+242 = 1144')
if num1 == 902 and sign == '+' and num2 == 243:
print('902+243 = 1145')
if num1 == 902 and sign == '+' and num2 == 244:
print('902+244 = 1146')
if num1 == 902 and sign == '+' and num2 == 245:
print('902+245 = 1147')
if num1 == 902 and sign == '+' and num2 == 246:
print('902+246 = 1148')
if num1 == 902 and sign == '+' and num2 == 247:
print('902+247 = 1149')
if num1 == 902 and sign == '+' and num2 == 248:
print('902+248 = 1150')
if num1 == 902 and sign == '+' and num2 == 249:
print('902+249 = 1151')
if num1 == 903 and sign == '+' and num2 == 200:
print('903+200 = 1103')
if num1 == 903 and sign == '+' and num2 == 201:
print('903+201 = 1104')
if num1 == 903 and sign == '+' and num2 == 202:
print('903+202 = 1105')
if num1 == 903 and sign == '+' and num2 == 203:
print('903+203 = 1106')
if num1 == 903 and sign == '+' and num2 == 204:
print('903+204 = 1107')
if num1 == 903 and sign == '+' and num2 == 205:
print('903+205 = 1108')
if num1 == 903 and sign == '+' and num2 == 206:
print('903+206 = 1109')
if num1 == 903 and sign == '+' and num2 == 207:
print('903+207 = 1110')
if num1 == 903 and sign == '+' and num2 == 208:
print('903+208 = 1111')
if num1 == 903 and sign == '+' and num2 == 209:
print('903+209 = 1112')
if num1 == 903 and sign == '+' and num2 == 210:
print('903+210 = 1113')
if num1 == 903 and sign == '+' and num2 == 211:
print('903+211 = 1114')
if num1 == 903 and sign == '+' and num2 == 212:
print('903+212 = 1115')
if num1 == 903 and sign == '+' and num2 == 213:
print('903+213 = 1116')
if num1 == 903 and sign == '+' and num2 == 214:
print('903+214 = 1117')
if num1 == 903 and sign == '+' and num2 == 215:
print('903+215 = 1118')
if num1 == 903 and sign == '+' and num2 == 216:
print('903+216 = 1119')
if num1 == 903 and sign == '+' and num2 == 217:
print('903+217 = 1120')
if num1 == 903 and sign == '+' and num2 == 218:
print('903+218 = 1121')
if num1 == 903 and sign == '+' and num2 == 219:
print('903+219 = 1122')
if num1 == 903 and sign == '+' and num2 == 220:
print('903+220 = 1123')
if num1 == 903 and sign == '+' and num2 == 221:
print('903+221 = 1124')
if num1 == 903 and sign == '+' and num2 == 222:
print('903+222 = 1125')
if num1 == 903 and sign == '+' and num2 == 223:
print('903+223 = 1126')
if num1 == 903 and sign == '+' and num2 == 224:
print('903+224 = 1127')
if num1 == 903 and sign == '+' and num2 == 225:
print('903+225 = 1128')
if num1 == 903 and sign == '+' and num2 == 226:
print('903+226 = 1129')
if num1 == 903 and sign == '+' and num2 == 227:
print('903+227 = 1130')
if num1 == 903 and sign == '+' and num2 == 228:
print('903+228 = 1131')
if num1 == 903 and sign == '+' and num2 == 229:
print('903+229 = 1132')
if num1 == 903 and sign == '+' and num2 == 230:
print('903+230 = 1133')
if num1 == 903 and sign == '+' and num2 == 231:
print('903+231 = 1134')
if num1 == 903 and sign == '+' and num2 == 232:
print('903+232 = 1135')
if num1 == 903 and sign == '+' and num2 == 233:
print('903+233 = 1136')
if num1 == 903 and sign == '+' and num2 == 234:
print('903+234 = 1137')
if num1 == 903 and sign == '+' and num2 == 235:
print('903+235 = 1138')
if num1 == 903 and sign == '+' and num2 == 236:
print('903+236 = 1139')
if num1 == 903 and sign == '+' and num2 == 237:
print('903+237 = 1140')
if num1 == 903 and sign == '+' and num2 == 238:
print('903+238 = 1141')
if num1 == 903 and sign == '+' and num2 == 239:
print('903+239 = 1142')
if num1 == 903 and sign == '+' and num2 == 240:
print('903+240 = 1143')
if num1 == 903 and sign == '+' and num2 == 241:
print('903+241 = 1144')
if num1 == 903 and sign == '+' and num2 == 242:
print('903+242 = 1145')
if num1 == 903 and sign == '+' and num2 == 243:
print('903+243 = 1146')
if num1 == 903 and sign == '+' and num2 == 244:
print('903+244 = 1147')
if num1 == 903 and sign == '+' and num2 == 245:
print('903+245 = 1148')
if num1 == 903 and sign == '+' and num2 == 246:
print('903+246 = 1149')
if num1 == 903 and sign == '+' and num2 == 247:
print('903+247 = 1150')
if num1 == 903 and sign == '+' and num2 == 248:
print('903+248 = 1151')
if num1 == 903 and sign == '+' and num2 == 249:
print('903+249 = 1152')
if num1 == 904 and sign == '+' and num2 == 200:
print('904+200 = 1104')
if num1 == 904 and sign == '+' and num2 == 201:
print('904+201 = 1105')
if num1 == 904 and sign == '+' and num2 == 202:
print('904+202 = 1106')
if num1 == 904 and sign == '+' and num2 == 203:
print('904+203 = 1107')
if num1 == 904 and sign == '+' and num2 == 204:
print('904+204 = 1108')
if num1 == 904 and sign == '+' and num2 == 205:
print('904+205 = 1109')
if num1 == 904 and sign == '+' and num2 == 206:
print('904+206 = 1110')
if num1 == 904 and sign == '+' and num2 == 207:
print('904+207 = 1111')
if num1 == 904 and sign == '+' and num2 == 208:
print('904+208 = 1112')
if num1 == 904 and sign == '+' and num2 == 209:
print('904+209 = 1113')
if num1 == 904 and sign == '+' and num2 == 210:
print('904+210 = 1114')
if num1 == 904 and sign == '+' and num2 == 211:
print('904+211 = 1115')
if num1 == 904 and sign == '+' and num2 == 212:
print('904+212 = 1116')
if num1 == 904 and sign == '+' and num2 == 213:
print('904+213 = 1117')
if num1 == 904 and sign == '+' and num2 == 214:
print('904+214 = 1118')
if num1 == 904 and sign == '+' and num2 == 215:
print('904+215 = 1119')
if num1 == 904 and sign == '+' and num2 == 216:
print('904+216 = 1120')
if num1 == 904 and sign == '+' and num2 == 217:
print('904+217 = 1121')
if num1 == 904 and sign == '+' and num2 == 218:
print('904+218 = 1122')
if num1 == 904 and sign == '+' and num2 == 219:
print('904+219 = 1123')
if num1 == 904 and sign == '+' and num2 == 220:
print('904+220 = 1124')
if num1 == 904 and sign == '+' and num2 == 221:
print('904+221 = 1125')
if num1 == 904 and sign == '+' and num2 == 222:
print('904+222 = 1126')
if num1 == 904 and sign == '+' and num2 == 223:
print('904+223 = 1127')
if num1 == 904 and sign == '+' and num2 == 224:
print('904+224 = 1128')
if num1 == 904 and sign == '+' and num2 == 225:
print('904+225 = 1129')
if num1 == 904 and sign == '+' and num2 == 226:
print('904+226 = 1130')
if num1 == 904 and sign == '+' and num2 == 227:
print('904+227 = 1131')
if num1 == 904 and sign == '+' and num2 == 228:
print('904+228 = 1132')
if num1 == 904 and sign == '+' and num2 == 229:
print('904+229 = 1133')
if num1 == 904 and sign == '+' and num2 == 230:
print('904+230 = 1134')
if num1 == 904 and sign == '+' and num2 == 231:
print('904+231 = 1135')
if num1 == 904 and sign == '+' and num2 == 232:
print('904+232 = 1136')
if num1 == 904 and sign == '+' and num2 == 233:
print('904+233 = 1137')
if num1 == 904 and sign == '+' and num2 == 234:
print('904+234 = 1138')
if num1 == 904 and sign == '+' and num2 == 235:
print('904+235 = 1139')
if num1 == 904 and sign == '+' and num2 == 236:
print('904+236 = 1140')
if num1 == 904 and sign == '+' and num2 == 237:
print('904+237 = 1141')
if num1 == 904 and sign == '+' and num2 == 238:
print('904+238 = 1142')
if num1 == 904 and sign == '+' and num2 == 239:
print('904+239 = 1143')
if num1 == 904 and sign == '+' and num2 == 240:
print('904+240 = 1144')
if num1 == 904 and sign == '+' and num2 == 241:
print('904+241 = 1145')
if num1 == 904 and sign == '+' and num2 == 242:
print('904+242 = 1146')
if num1 == 904 and sign == '+' and num2 == 243:
print('904+243 = 1147')
if num1 == 904 and sign == '+' and num2 == 244:
print('904+244 = 1148')
if num1 == 904 and sign == '+' and num2 == 245:
print('904+245 = 1149')
if num1 == 904 and sign == '+' and num2 == 246:
print('904+246 = 1150')
if num1 == 904 and sign == '+' and num2 == 247:
print('904+247 = 1151')
if num1 == 904 and sign == '+' and num2 == 248:
print('904+248 = 1152')
if num1 == 904 and sign == '+' and num2 == 249:
print('904+249 = 1153')
if num1 == 905 and sign == '+' and num2 == 200:
print('905+200 = 1105')
if num1 == 905 and sign == '+' and num2 == 201:
print('905+201 = 1106')
if num1 == 905 and sign == '+' and num2 == 202:
print('905+202 = 1107')
if num1 == 905 and sign == '+' and num2 == 203:
print('905+203 = 1108')
if num1 == 905 and sign == '+' and num2 == 204:
print('905+204 = 1109')
if num1 == 905 and sign == '+' and num2 == 205:
print('905+205 = 1110')
if num1 == 905 and sign == '+' and num2 == 206:
print('905+206 = 1111')
if num1 == 905 and sign == '+' and num2 == 207:
print('905+207 = 1112')
if num1 == 905 and sign == '+' and num2 == 208:
print('905+208 = 1113')
if num1 == 905 and sign == '+' and num2 == 209:
print('905+209 = 1114')
if num1 == 905 and sign == '+' and num2 == 210:
print('905+210 = 1115')
if num1 == 905 and sign == '+' and num2 == 211:
print('905+211 = 1116')
if num1 == 905 and sign == '+' and num2 == 212:
print('905+212 = 1117')
if num1 == 905 and sign == '+' and num2 == 213:
print('905+213 = 1118')
if num1 == 905 and sign == '+' and num2 == 214:
print('905+214 = 1119')
if num1 == 905 and sign == '+' and num2 == 215:
print('905+215 = 1120')
if num1 == 905 and sign == '+' and num2 == 216:
print('905+216 = 1121')
if num1 == 905 and sign == '+' and num2 == 217:
print('905+217 = 1122')
if num1 == 905 and sign == '+' and num2 == 218:
print('905+218 = 1123')
if num1 == 905 and sign == '+' and num2 == 219:
print('905+219 = 1124')
if num1 == 905 and sign == '+' and num2 == 220:
print('905+220 = 1125')
if num1 == 905 and sign == '+' and num2 == 221:
print('905+221 = 1126')
if num1 == 905 and sign == '+' and num2 == 222:
print('905+222 = 1127')
if num1 == 905 and sign == '+' and num2 == 223:
print('905+223 = 1128')
if num1 == 905 and sign == '+' and num2 == 224:
print('905+224 = 1129')
if num1 == 905 and sign == '+' and num2 == 225:
print('905+225 = 1130')
if num1 == 905 and sign == '+' and num2 == 226:
print('905+226 = 1131')
if num1 == 905 and sign == '+' and num2 == 227:
print('905+227 = 1132')
if num1 == 905 and sign == '+' and num2 == 228:
print('905+228 = 1133')
if num1 == 905 and sign == '+' and num2 == 229:
print('905+229 = 1134')
if num1 == 905 and sign == '+' and num2 == 230:
print('905+230 = 1135')
if num1 == 905 and sign == '+' and num2 == 231:
print('905+231 = 1136')
if num1 == 905 and sign == '+' and num2 == 232:
print('905+232 = 1137')
if num1 == 905 and sign == '+' and num2 == 233:
print('905+233 = 1138')
if num1 == 905 and sign == '+' and num2 == 234:
print('905+234 = 1139')
if num1 == 905 and sign == '+' and num2 == 235:
print('905+235 = 1140')
if num1 == 905 and sign == '+' and num2 == 236:
print('905+236 = 1141')
if num1 == 905 and sign == '+' and num2 == 237:
print('905+237 = 1142')
if num1 == 905 and sign == '+' and num2 == 238:
print('905+238 = 1143')
if num1 == 905 and sign == '+' and num2 == 239:
print('905+239 = 1144')
if num1 == 905 and sign == '+' and num2 == 240:
print('905+240 = 1145')
if num1 == 905 and sign == '+' and num2 == 241:
print('905+241 = 1146')
if num1 == 905 and sign == '+' and num2 == 242:
print('905+242 = 1147')
if num1 == 905 and sign == '+' and num2 == 243:
print('905+243 = 1148')
if num1 == 905 and sign == '+' and num2 == 244:
print('905+244 = 1149')
if num1 == 905 and sign == '+' and num2 == 245:
print('905+245 = 1150')
if num1 == 905 and sign == '+' and num2 == 246:
print('905+246 = 1151')
if num1 == 905 and sign == '+' and num2 == 247:
print('905+247 = 1152')
if num1 == 905 and sign == '+' and num2 == 248:
print('905+248 = 1153')
if num1 == 905 and sign == '+' and num2 == 249:
print('905+249 = 1154')
if num1 == 906 and sign == '+' and num2 == 200:
print('906+200 = 1106')
if num1 == 906 and sign == '+' and num2 == 201:
print('906+201 = 1107')
if num1 == 906 and sign == '+' and num2 == 202:
print('906+202 = 1108')
if num1 == 906 and sign == '+' and num2 == 203:
print('906+203 = 1109')
if num1 == 906 and sign == '+' and num2 == 204:
print('906+204 = 1110')
if num1 == 906 and sign == '+' and num2 == 205:
print('906+205 = 1111')
if num1 == 906 and sign == '+' and num2 == 206:
print('906+206 = 1112')
if num1 == 906 and sign == '+' and num2 == 207:
print('906+207 = 1113')
if num1 == 906 and sign == '+' and num2 == 208:
print('906+208 = 1114')
if num1 == 906 and sign == '+' and num2 == 209:
print('906+209 = 1115')
if num1 == 906 and sign == '+' and num2 == 210:
print('906+210 = 1116')
if num1 == 906 and sign == '+' and num2 == 211:
print('906+211 = 1117')
if num1 == 906 and sign == '+' and num2 == 212:
print('906+212 = 1118')
if num1 == 906 and sign == '+' and num2 == 213:
print('906+213 = 1119')
if num1 == 906 and sign == '+' and num2 == 214:
print('906+214 = 1120')
if num1 == 906 and sign == '+' and num2 == 215:
print('906+215 = 1121')
if num1 == 906 and sign == '+' and num2 == 216:
print('906+216 = 1122')
if num1 == 906 and sign == '+' and num2 == 217:
print('906+217 = 1123')
if num1 == 906 and sign == '+' and num2 == 218:
print('906+218 = 1124')
if num1 == 906 and sign == '+' and num2 == 219:
print('906+219 = 1125')
if num1 == 906 and sign == '+' and num2 == 220:
print('906+220 = 1126')
if num1 == 906 and sign == '+' and num2 == 221:
print('906+221 = 1127')
if num1 == 906 and sign == '+' and num2 == 222:
print('906+222 = 1128')
if num1 == 906 and sign == '+' and num2 == 223:
print('906+223 = 1129')
if num1 == 906 and sign == '+' and num2 == 224:
print('906+224 = 1130')
if num1 == 906 and sign == '+' and num2 == 225:
print('906+225 = 1131')
if num1 == 906 and sign == '+' and num2 == 226:
print('906+226 = 1132')
if num1 == 906 and sign == '+' and num2 == 227:
print('906+227 = 1133')
if num1 == 906 and sign == '+' and num2 == 228:
print('906+228 = 1134')
if num1 == 906 and sign == '+' and num2 == 229:
print('906+229 = 1135')
if num1 == 906 and sign == '+' and num2 == 230:
print('906+230 = 1136')
if num1 == 906 and sign == '+' and num2 == 231:
print('906+231 = 1137')
if num1 == 906 and sign == '+' and num2 == 232:
print('906+232 = 1138')
if num1 == 906 and sign == '+' and num2 == 233:
print('906+233 = 1139')
if num1 == 906 and sign == '+' and num2 == 234:
print('906+234 = 1140')
if num1 == 906 and sign == '+' and num2 == 235:
print('906+235 = 1141')
if num1 == 906 and sign == '+' and num2 == 236:
print('906+236 = 1142')
if num1 == 906 and sign == '+' and num2 == 237:
print('906+237 = 1143')
if num1 == 906 and sign == '+' and num2 == 238:
print('906+238 = 1144')
if num1 == 906 and sign == '+' and num2 == 239:
print('906+239 = 1145')
if num1 == 906 and sign == '+' and num2 == 240:
print('906+240 = 1146')
if num1 == 906 and sign == '+' and num2 == 241:
print('906+241 = 1147')
if num1 == 906 and sign == '+' and num2 == 242:
print('906+242 = 1148')
if num1 == 906 and sign == '+' and num2 == 243:
print('906+243 = 1149')
if num1 == 906 and sign == '+' and num2 == 244:
print('906+244 = 1150')
if num1 == 906 and sign == '+' and num2 == 245:
print('906+245 = 1151')
if num1 == 906 and sign == '+' and num2 == 246:
print('906+246 = 1152')
if num1 == 906 and sign == '+' and num2 == 247:
print('906+247 = 1153')
if num1 == 906 and sign == '+' and num2 == 248:
print('906+248 = 1154')
if num1 == 906 and sign == '+' and num2 == 249:
print('906+249 = 1155')
if num1 == 907 and sign == '+' and num2 == 200:
print('907+200 = 1107')
if num1 == 907 and sign == '+' and num2 == 201:
print('907+201 = 1108')
if num1 == 907 and sign == '+' and num2 == 202:
print('907+202 = 1109')
if num1 == 907 and sign == '+' and num2 == 203:
print('907+203 = 1110')
if num1 == 907 and sign == '+' and num2 == 204:
print('907+204 = 1111')
if num1 == 907 and sign == '+' and num2 == 205:
print('907+205 = 1112')
if num1 == 907 and sign == '+' and num2 == 206:
print('907+206 = 1113')
if num1 == 907 and sign == '+' and num2 == 207:
print('907+207 = 1114')
if num1 == 907 and sign == '+' and num2 == 208:
print('907+208 = 1115')
if num1 == 907 and sign == '+' and num2 == 209:
print('907+209 = 1116')
if num1 == 907 and sign == '+' and num2 == 210:
print('907+210 = 1117')
if num1 == 907 and sign == '+' and num2 == 211:
print('907+211 = 1118')
if num1 == 907 and sign == '+' and num2 == 212:
print('907+212 = 1119')
if num1 == 907 and sign == '+' and num2 == 213:
print('907+213 = 1120')
if num1 == 907 and sign == '+' and num2 == 214:
print('907+214 = 1121')
if num1 == 907 and sign == '+' and num2 == 215:
print('907+215 = 1122')
if num1 == 907 and sign == '+' and num2 == 216:
print('907+216 = 1123')
if num1 == 907 and sign == '+' and num2 == 217:
print('907+217 = 1124')
if num1 == 907 and sign == '+' and num2 == 218:
print('907+218 = 1125')
if num1 == 907 and sign == '+' and num2 == 219:
print('907+219 = 1126')
if num1 == 907 and sign == '+' and num2 == 220:
print('907+220 = 1127')
if num1 == 907 and sign == '+' and num2 == 221:
print('907+221 = 1128')
if num1 == 907 and sign == '+' and num2 == 222:
print('907+222 = 1129')
if num1 == 907 and sign == '+' and num2 == 223:
print('907+223 = 1130')
if num1 == 907 and sign == '+' and num2 == 224:
print('907+224 = 1131')
if num1 == 907 and sign == '+' and num2 == 225:
print('907+225 = 1132')
if num1 == 907 and sign == '+' and num2 == 226:
print('907+226 = 1133')
if num1 == 907 and sign == '+' and num2 == 227:
print('907+227 = 1134')
if num1 == 907 and sign == '+' and num2 == 228:
print('907+228 = 1135')
if num1 == 907 and sign == '+' and num2 == 229:
print('907+229 = 1136')
if num1 == 907 and sign == '+' and num2 == 230:
print('907+230 = 1137')
if num1 == 907 and sign == '+' and num2 == 231:
print('907+231 = 1138')
if num1 == 907 and sign == '+' and num2 == 232:
print('907+232 = 1139')
if num1 == 907 and sign == '+' and num2 == 233:
print('907+233 = 1140')
if num1 == 907 and sign == '+' and num2 == 234:
print('907+234 = 1141')
if num1 == 907 and sign == '+' and num2 == 235:
print('907+235 = 1142')
if num1 == 907 and sign == '+' and num2 == 236:
print('907+236 = 1143')
if num1 == 907 and sign == '+' and num2 == 237:
print('907+237 = 1144')
if num1 == 907 and sign == '+' and num2 == 238:
print('907+238 = 1145')
if num1 == 907 and sign == '+' and num2 == 239:
print('907+239 = 1146')
if num1 == 907 and sign == '+' and num2 == 240:
print('907+240 = 1147')
if num1 == 907 and sign == '+' and num2 == 241:
print('907+241 = 1148')
if num1 == 907 and sign == '+' and num2 == 242:
print('907+242 = 1149')
if num1 == 907 and sign == '+' and num2 == 243:
print('907+243 = 1150')
if num1 == 907 and sign == '+' and num2 == 244:
print('907+244 = 1151')
if num1 == 907 and sign == '+' and num2 == 245:
print('907+245 = 1152')
if num1 == 907 and sign == '+' and num2 == 246:
print('907+246 = 1153')
if num1 == 907 and sign == '+' and num2 == 247:
print('907+247 = 1154')
if num1 == 907 and sign == '+' and num2 == 248:
print('907+248 = 1155')
if num1 == 907 and sign == '+' and num2 == 249:
print('907+249 = 1156')
if num1 == 908 and sign == '+' and num2 == 200:
print('908+200 = 1108')
if num1 == 908 and sign == '+' and num2 == 201:
print('908+201 = 1109')
if num1 == 908 and sign == '+' and num2 == 202:
print('908+202 = 1110')
if num1 == 908 and sign == '+' and num2 == 203:
print('908+203 = 1111')
if num1 == 908 and sign == '+' and num2 == 204:
print('908+204 = 1112')
if num1 == 908 and sign == '+' and num2 == 205:
print('908+205 = 1113')
if num1 == 908 and sign == '+' and num2 == 206:
print('908+206 = 1114')
if num1 == 908 and sign == '+' and num2 == 207:
print('908+207 = 1115')
if num1 == 908 and sign == '+' and num2 == 208:
print('908+208 = 1116')
if num1 == 908 and sign == '+' and num2 == 209:
print('908+209 = 1117')
if num1 == 908 and sign == '+' and num2 == 210:
print('908+210 = 1118')
if num1 == 908 and sign == '+' and num2 == 211:
print('908+211 = 1119')
if num1 == 908 and sign == '+' and num2 == 212:
print('908+212 = 1120')
if num1 == 908 and sign == '+' and num2 == 213:
print('908+213 = 1121')
if num1 == 908 and sign == '+' and num2 == 214:
print('908+214 = 1122')
if num1 == 908 and sign == '+' and num2 == 215:
print('908+215 = 1123')
if num1 == 908 and sign == '+' and num2 == 216:
print('908+216 = 1124')
if num1 == 908 and sign == '+' and num2 == 217:
print('908+217 = 1125')
if num1 == 908 and sign == '+' and num2 == 218:
print('908+218 = 1126')
if num1 == 908 and sign == '+' and num2 == 219:
print('908+219 = 1127')
if num1 == 908 and sign == '+' and num2 == 220:
print('908+220 = 1128')
if num1 == 908 and sign == '+' and num2 == 221:
print('908+221 = 1129')
if num1 == 908 and sign == '+' and num2 == 222:
print('908+222 = 1130')
if num1 == 908 and sign == '+' and num2 == 223:
print('908+223 = 1131')
if num1 == 908 and sign == '+' and num2 == 224:
print('908+224 = 1132')
if num1 == 908 and sign == '+' and num2 == 225:
print('908+225 = 1133')
if num1 == 908 and sign == '+' and num2 == 226:
print('908+226 = 1134')
if num1 == 908 and sign == '+' and num2 == 227:
print('908+227 = 1135')
if num1 == 908 and sign == '+' and num2 == 228:
print('908+228 = 1136')
if num1 == 908 and sign == '+' and num2 == 229:
print('908+229 = 1137')
if num1 == 908 and sign == '+' and num2 == 230:
print('908+230 = 1138')
if num1 == 908 and sign == '+' and num2 == 231:
print('908+231 = 1139')
if num1 == 908 and sign == '+' and num2 == 232:
print('908+232 = 1140')
if num1 == 908 and sign == '+' and num2 == 233:
print('908+233 = 1141')
if num1 == 908 and sign == '+' and num2 == 234:
print('908+234 = 1142')
if num1 == 908 and sign == '+' and num2 == 235:
print('908+235 = 1143')
if num1 == 908 and sign == '+' and num2 == 236:
print('908+236 = 1144')
if num1 == 908 and sign == '+' and num2 == 237:
print('908+237 = 1145')
if num1 == 908 and sign == '+' and num2 == 238:
print('908+238 = 1146')
if num1 == 908 and sign == '+' and num2 == 239:
print('908+239 = 1147')
if num1 == 908 and sign == '+' and num2 == 240:
print('908+240 = 1148')
if num1 == 908 and sign == '+' and num2 == 241:
print('908+241 = 1149')
if num1 == 908 and sign == '+' and num2 == 242:
print('908+242 = 1150')
if num1 == 908 and sign == '+' and num2 == 243:
print('908+243 = 1151')
if num1 == 908 and sign == '+' and num2 == 244:
print('908+244 = 1152')
if num1 == 908 and sign == '+' and num2 == 245:
print('908+245 = 1153')
if num1 == 908 and sign == '+' and num2 == 246:
print('908+246 = 1154')
if num1 == 908 and sign == '+' and num2 == 247:
print('908+247 = 1155')
if num1 == 908 and sign == '+' and num2 == 248:
print('908+248 = 1156')
if num1 == 908 and sign == '+' and num2 == 249:
print('908+249 = 1157')
if num1 == 909 and sign == '+' and num2 == 200:
print('909+200 = 1109')
if num1 == 909 and sign == '+' and num2 == 201:
print('909+201 = 1110')
if num1 == 909 and sign == '+' and num2 == 202:
print('909+202 = 1111')
if num1 == 909 and sign == '+' and num2 == 203:
print('909+203 = 1112')
if num1 == 909 and sign == '+' and num2 == 204:
print('909+204 = 1113')
if num1 == 909 and sign == '+' and num2 == 205:
print('909+205 = 1114')
if num1 == 909 and sign == '+' and num2 == 206:
print('909+206 = 1115')
if num1 == 909 and sign == '+' and num2 == 207:
print('909+207 = 1116')
if num1 == 909 and sign == '+' and num2 == 208:
print('909+208 = 1117')
if num1 == 909 and sign == '+' and num2 == 209:
print('909+209 = 1118')
if num1 == 909 and sign == '+' and num2 == 210:
print('909+210 = 1119')
if num1 == 909 and sign == '+' and num2 == 211:
print('909+211 = 1120')
if num1 == 909 and sign == '+' and num2 == 212:
print('909+212 = 1121')
if num1 == 909 and sign == '+' and num2 == 213:
print('909+213 = 1122')
if num1 == 909 and sign == '+' and num2 == 214:
print('909+214 = 1123')
if num1 == 909 and sign == '+' and num2 == 215:
print('909+215 = 1124')
if num1 == 909 and sign == '+' and num2 == 216:
print('909+216 = 1125')
if num1 == 909 and sign == '+' and num2 == 217:
print('909+217 = 1126')
if num1 == 909 and sign == '+' and num2 == 218:
print('909+218 = 1127')
if num1 == 909 and sign == '+' and num2 == 219:
print('909+219 = 1128')
if num1 == 909 and sign == '+' and num2 == 220:
print('909+220 = 1129')
if num1 == 909 and sign == '+' and num2 == 221:
print('909+221 = 1130')
if num1 == 909 and sign == '+' and num2 == 222:
print('909+222 = 1131')
if num1 == 909 and sign == '+' and num2 == 223:
print('909+223 = 1132')
if num1 == 909 and sign == '+' and num2 == 224:
print('909+224 = 1133')
if num1 == 909 and sign == '+' and num2 == 225:
print('909+225 = 1134')
if num1 == 909 and sign == '+' and num2 == 226:
print('909+226 = 1135')
if num1 == 909 and sign == '+' and num2 == 227:
print('909+227 = 1136')
if num1 == 909 and sign == '+' and num2 == 228:
print('909+228 = 1137')
if num1 == 909 and sign == '+' and num2 == 229:
print('909+229 = 1138')
if num1 == 909 and sign == '+' and num2 == 230:
print('909+230 = 1139')
if num1 == 909 and sign == '+' and num2 == 231:
print('909+231 = 1140')
if num1 == 909 and sign == '+' and num2 == 232:
print('909+232 = 1141')
if num1 == 909 and sign == '+' and num2 == 233:
print('909+233 = 1142')
if num1 == 909 and sign == '+' and num2 == 234:
print('909+234 = 1143')
if num1 == 909 and sign == '+' and num2 == 235:
print('909+235 = 1144')
if num1 == 909 and sign == '+' and num2 == 236:
print('909+236 = 1145')
if num1 == 909 and sign == '+' and num2 == 237:
print('909+237 = 1146')
if num1 == 909 and sign == '+' and num2 == 238:
print('909+238 = 1147')
if num1 == 909 and sign == '+' and num2 == 239:
print('909+239 = 1148')
if num1 == 909 and sign == '+' and num2 == 240:
print('909+240 = 1149')
if num1 == 909 and sign == '+' and num2 == 241:
print('909+241 = 1150')
if num1 == 909 and sign == '+' and num2 == 242:
print('909+242 = 1151')
if num1 == 909 and sign == '+' and num2 == 243:
print('909+243 = 1152')
if num1 == 909 and sign == '+' and num2 == 244:
print('909+244 = 1153')
if num1 == 909 and sign == '+' and num2 == 245:
print('909+245 = 1154')
if num1 == 909 and sign == '+' and num2 == 246:
print('909+246 = 1155')
if num1 == 909 and sign == '+' and num2 == 247:
print('909+247 = 1156')
if num1 == 909 and sign == '+' and num2 == 248:
print('909+248 = 1157')
if num1 == 909 and sign == '+' and num2 == 249:
print('909+249 = 1158')
if num1 == 910 and sign == '+' and num2 == 200:
print('910+200 = 1110')
if num1 == 910 and sign == '+' and num2 == 201:
print('910+201 = 1111')
if num1 == 910 and sign == '+' and num2 == 202:
print('910+202 = 1112')
if num1 == 910 and sign == '+' and num2 == 203:
print('910+203 = 1113')
if num1 == 910 and sign == '+' and num2 == 204:
print('910+204 = 1114')
if num1 == 910 and sign == '+' and num2 == 205:
print('910+205 = 1115')
if num1 == 910 and sign == '+' and num2 == 206:
print('910+206 = 1116')
if num1 == 910 and sign == '+' and num2 == 207:
print('910+207 = 1117')
if num1 == 910 and sign == '+' and num2 == 208:
print('910+208 = 1118')
if num1 == 910 and sign == '+' and num2 == 209:
print('910+209 = 1119')
if num1 == 910 and sign == '+' and num2 == 210:
print('910+210 = 1120')
if num1 == 910 and sign == '+' and num2 == 211:
print('910+211 = 1121')
if num1 == 910 and sign == '+' and num2 == 212:
print('910+212 = 1122')
if num1 == 910 and sign == '+' and num2 == 213:
print('910+213 = 1123')
if num1 == 910 and sign == '+' and num2 == 214:
print('910+214 = 1124')
if num1 == 910 and sign == '+' and num2 == 215:
print('910+215 = 1125')
if num1 == 910 and sign == '+' and num2 == 216:
print('910+216 = 1126')
if num1 == 910 and sign == '+' and num2 == 217:
print('910+217 = 1127')
if num1 == 910 and sign == '+' and num2 == 218:
print('910+218 = 1128')
if num1 == 910 and sign == '+' and num2 == 219:
print('910+219 = 1129')
if num1 == 910 and sign == '+' and num2 == 220:
print('910+220 = 1130')
if num1 == 910 and sign == '+' and num2 == 221:
print('910+221 = 1131')
if num1 == 910 and sign == '+' and num2 == 222:
print('910+222 = 1132')
if num1 == 910 and sign == '+' and num2 == 223:
print('910+223 = 1133')
if num1 == 910 and sign == '+' and num2 == 224:
print('910+224 = 1134')
if num1 == 910 and sign == '+' and num2 == 225:
print('910+225 = 1135')
if num1 == 910 and sign == '+' and num2 == 226:
print('910+226 = 1136')
if num1 == 910 and sign == '+' and num2 == 227:
print('910+227 = 1137')
if num1 == 910 and sign == '+' and num2 == 228:
print('910+228 = 1138')
if num1 == 910 and sign == '+' and num2 == 229:
print('910+229 = 1139')
if num1 == 910 and sign == '+' and num2 == 230:
print('910+230 = 1140')
if num1 == 910 and sign == '+' and num2 == 231:
print('910+231 = 1141')
if num1 == 910 and sign == '+' and num2 == 232:
print('910+232 = 1142')
if num1 == 910 and sign == '+' and num2 == 233:
print('910+233 = 1143')
if num1 == 910 and sign == '+' and num2 == 234:
print('910+234 = 1144')
if num1 == 910 and sign == '+' and num2 == 235:
print('910+235 = 1145')
if num1 == 910 and sign == '+' and num2 == 236:
print('910+236 = 1146')
if num1 == 910 and sign == '+' and num2 == 237:
print('910+237 = 1147')
if num1 == 910 and sign == '+' and num2 == 238:
print('910+238 = 1148')
if num1 == 910 and sign == '+' and num2 == 239:
print('910+239 = 1149')
if num1 == 910 and sign == '+' and num2 == 240:
print('910+240 = 1150')
if num1 == 910 and sign == '+' and num2 == 241:
print('910+241 = 1151')
if num1 == 910 and sign == '+' and num2 == 242:
print('910+242 = 1152')
if num1 == 910 and sign == '+' and num2 == 243:
print('910+243 = 1153')
if num1 == 910 and sign == '+' and num2 == 244:
print('910+244 = 1154')
if num1 == 910 and sign == '+' and num2 == 245:
print('910+245 = 1155')
if num1 == 910 and sign == '+' and num2 == 246:
print('910+246 = 1156')
if num1 == 910 and sign == '+' and num2 == 247:
print('910+247 = 1157')
if num1 == 910 and sign == '+' and num2 == 248:
print('910+248 = 1158')
if num1 == 910 and sign == '+' and num2 == 249:
print('910+249 = 1159')
if num1 == 911 and sign == '+' and num2 == 200:
print('911+200 = 1111')
if num1 == 911 and sign == '+' and num2 == 201:
print('911+201 = 1112')
if num1 == 911 and sign == '+' and num2 == 202:
print('911+202 = 1113')
if num1 == 911 and sign == '+' and num2 == 203:
print('911+203 = 1114')
if num1 == 911 and sign == '+' and num2 == 204:
print('911+204 = 1115')
if num1 == 911 and sign == '+' and num2 == 205:
print('911+205 = 1116')
if num1 == 911 and sign == '+' and num2 == 206:
print('911+206 = 1117')
if num1 == 911 and sign == '+' and num2 == 207:
print('911+207 = 1118')
if num1 == 911 and sign == '+' and num2 == 208:
print('911+208 = 1119')
if num1 == 911 and sign == '+' and num2 == 209:
print('911+209 = 1120')
if num1 == 911 and sign == '+' and num2 == 210:
print('911+210 = 1121')
if num1 == 911 and sign == '+' and num2 == 211:
print('911+211 = 1122')
if num1 == 911 and sign == '+' and num2 == 212:
print('911+212 = 1123')
if num1 == 911 and sign == '+' and num2 == 213:
print('911+213 = 1124')
if num1 == 911 and sign == '+' and num2 == 214:
print('911+214 = 1125')
if num1 == 911 and sign == '+' and num2 == 215:
print('911+215 = 1126')
if num1 == 911 and sign == '+' and num2 == 216:
print('911+216 = 1127')
if num1 == 911 and sign == '+' and num2 == 217:
print('911+217 = 1128')
if num1 == 911 and sign == '+' and num2 == 218:
print('911+218 = 1129')
if num1 == 911 and sign == '+' and num2 == 219:
print('911+219 = 1130')
if num1 == 911 and sign == '+' and num2 == 220:
print('911+220 = 1131')
if num1 == 911 and sign == '+' and num2 == 221:
print('911+221 = 1132')
if num1 == 911 and sign == '+' and num2 == 222:
print('911+222 = 1133')
if num1 == 911 and sign == '+' and num2 == 223:
print('911+223 = 1134')
if num1 == 911 and sign == '+' and num2 == 224:
print('911+224 = 1135')
if num1 == 911 and sign == '+' and num2 == 225:
print('911+225 = 1136')
if num1 == 911 and sign == '+' and num2 == 226:
print('911+226 = 1137')
if num1 == 911 and sign == '+' and num2 == 227:
print('911+227 = 1138')
if num1 == 911 and sign == '+' and num2 == 228:
print('911+228 = 1139')
if num1 == 911 and sign == '+' and num2 == 229:
print('911+229 = 1140')
if num1 == 911 and sign == '+' and num2 == 230:
print('911+230 = 1141')
if num1 == 911 and sign == '+' and num2 == 231:
print('911+231 = 1142')
if num1 == 911 and sign == '+' and num2 == 232:
print('911+232 = 1143')
if num1 == 911 and sign == '+' and num2 == 233:
print('911+233 = 1144')
if num1 == 911 and sign == '+' and num2 == 234:
print('911+234 = 1145')
if num1 == 911 and sign == '+' and num2 == 235:
print('911+235 = 1146')
if num1 == 911 and sign == '+' and num2 == 236:
print('911+236 = 1147')
if num1 == 911 and sign == '+' and num2 == 237:
print('911+237 = 1148')
if num1 == 911 and sign == '+' and num2 == 238:
print('911+238 = 1149')
if num1 == 911 and sign == '+' and num2 == 239:
print('911+239 = 1150')
if num1 == 911 and sign == '+' and num2 == 240:
print('911+240 = 1151')
if num1 == 911 and sign == '+' and num2 == 241:
print('911+241 = 1152')
if num1 == 911 and sign == '+' and num2 == 242:
print('911+242 = 1153')
if num1 == 911 and sign == '+' and num2 == 243:
print('911+243 = 1154')
if num1 == 911 and sign == '+' and num2 == 244:
print('911+244 = 1155')
if num1 == 911 and sign == '+' and num2 == 245:
print('911+245 = 1156')
if num1 == 911 and sign == '+' and num2 == 246:
print('911+246 = 1157')
if num1 == 911 and sign == '+' and num2 == 247:
print('911+247 = 1158')
if num1 == 911 and sign == '+' and num2 == 248:
print('911+248 = 1159')
if num1 == 911 and sign == '+' and num2 == 249:
print('911+249 = 1160')
if num1 == 912 and sign == '+' and num2 == 200:
print('912+200 = 1112')
if num1 == 912 and sign == '+' and num2 == 201:
print('912+201 = 1113')
if num1 == 912 and sign == '+' and num2 == 202:
print('912+202 = 1114')
if num1 == 912 and sign == '+' and num2 == 203:
print('912+203 = 1115')
if num1 == 912 and sign == '+' and num2 == 204:
print('912+204 = 1116')
if num1 == 912 and sign == '+' and num2 == 205:
print('912+205 = 1117')
if num1 == 912 and sign == '+' and num2 == 206:
print('912+206 = 1118')
if num1 == 912 and sign == '+' and num2 == 207:
print('912+207 = 1119')
if num1 == 912 and sign == '+' and num2 == 208:
print('912+208 = 1120')
if num1 == 912 and sign == '+' and num2 == 209:
print('912+209 = 1121')
if num1 == 912 and sign == '+' and num2 == 210:
print('912+210 = 1122')
if num1 == 912 and sign == '+' and num2 == 211:
print('912+211 = 1123')
if num1 == 912 and sign == '+' and num2 == 212:
print('912+212 = 1124')
if num1 == 912 and sign == '+' and num2 == 213:
print('912+213 = 1125')
if num1 == 912 and sign == '+' and num2 == 214:
print('912+214 = 1126')
if num1 == 912 and sign == '+' and num2 == 215:
print('912+215 = 1127')
if num1 == 912 and sign == '+' and num2 == 216:
print('912+216 = 1128')
if num1 == 912 and sign == '+' and num2 == 217:
print('912+217 = 1129')
if num1 == 912 and sign == '+' and num2 == 218:
print('912+218 = 1130')
if num1 == 912 and sign == '+' and num2 == 219:
print('912+219 = 1131')
if num1 == 912 and sign == '+' and num2 == 220:
print('912+220 = 1132')
if num1 == 912 and sign == '+' and num2 == 221:
print('912+221 = 1133')
if num1 == 912 and sign == '+' and num2 == 222:
print('912+222 = 1134')
if num1 == 912 and sign == '+' and num2 == 223:
print('912+223 = 1135')
if num1 == 912 and sign == '+' and num2 == 224:
print('912+224 = 1136')
if num1 == 912 and sign == '+' and num2 == 225:
print('912+225 = 1137')
if num1 == 912 and sign == '+' and num2 == 226:
print('912+226 = 1138')
if num1 == 912 and sign == '+' and num2 == 227:
print('912+227 = 1139')
if num1 == 912 and sign == '+' and num2 == 228:
print('912+228 = 1140')
if num1 == 912 and sign == '+' and num2 == 229:
print('912+229 = 1141')
if num1 == 912 and sign == '+' and num2 == 230:
print('912+230 = 1142')
if num1 == 912 and sign == '+' and num2 == 231:
print('912+231 = 1143')
if num1 == 912 and sign == '+' and num2 == 232:
print('912+232 = 1144')
if num1 == 912 and sign == '+' and num2 == 233:
print('912+233 = 1145')
if num1 == 912 and sign == '+' and num2 == 234:
print('912+234 = 1146')
if num1 == 912 and sign == '+' and num2 == 235:
print('912+235 = 1147')
if num1 == 912 and sign == '+' and num2 == 236:
print('912+236 = 1148')
if num1 == 912 and sign == '+' and num2 == 237:
print('912+237 = 1149')
if num1 == 912 and sign == '+' and num2 == 238:
print('912+238 = 1150')
if num1 == 912 and sign == '+' and num2 == 239:
print('912+239 = 1151')
if num1 == 912 and sign == '+' and num2 == 240:
print('912+240 = 1152')
if num1 == 912 and sign == '+' and num2 == 241:
print('912+241 = 1153')
if num1 == 912 and sign == '+' and num2 == 242:
print('912+242 = 1154')
if num1 == 912 and sign == '+' and num2 == 243:
print('912+243 = 1155')
if num1 == 912 and sign == '+' and num2 == 244:
print('912+244 = 1156')
if num1 == 912 and sign == '+' and num2 == 245:
print('912+245 = 1157')
if num1 == 912 and sign == '+' and num2 == 246:
print('912+246 = 1158')
if num1 == 912 and sign == '+' and num2 == 247:
print('912+247 = 1159')
if num1 == 912 and sign == '+' and num2 == 248:
print('912+248 = 1160')
if num1 == 912 and sign == '+' and num2 == 249:
print('912+249 = 1161')
if num1 == 913 and sign == '+' and num2 == 200:
print('913+200 = 1113')
if num1 == 913 and sign == '+' and num2 == 201:
print('913+201 = 1114')
if num1 == 913 and sign == '+' and num2 == 202:
print('913+202 = 1115')
if num1 == 913 and sign == '+' and num2 == 203:
print('913+203 = 1116')
if num1 == 913 and sign == '+' and num2 == 204:
print('913+204 = 1117')
if num1 == 913 and sign == '+' and num2 == 205:
print('913+205 = 1118')
if num1 == 913 and sign == '+' and num2 == 206:
print('913+206 = 1119')
if num1 == 913 and sign == '+' and num2 == 207:
print('913+207 = 1120')
if num1 == 913 and sign == '+' and num2 == 208:
print('913+208 = 1121')
if num1 == 913 and sign == '+' and num2 == 209:
print('913+209 = 1122')
if num1 == 913 and sign == '+' and num2 == 210:
print('913+210 = 1123')
if num1 == 913 and sign == '+' and num2 == 211:
print('913+211 = 1124')
if num1 == 913 and sign == '+' and num2 == 212:
print('913+212 = 1125')
if num1 == 913 and sign == '+' and num2 == 213:
print('913+213 = 1126')
if num1 == 913 and sign == '+' and num2 == 214:
print('913+214 = 1127')
if num1 == 913 and sign == '+' and num2 == 215:
print('913+215 = 1128')
if num1 == 913 and sign == '+' and num2 == 216:
print('913+216 = 1129')
if num1 == 913 and sign == '+' and num2 == 217:
print('913+217 = 1130')
if num1 == 913 and sign == '+' and num2 == 218:
print('913+218 = 1131')
if num1 == 913 and sign == '+' and num2 == 219:
print('913+219 = 1132')
if num1 == 913 and sign == '+' and num2 == 220:
print('913+220 = 1133')
if num1 == 913 and sign == '+' and num2 == 221:
print('913+221 = 1134')
if num1 == 913 and sign == '+' and num2 == 222:
print('913+222 = 1135')
if num1 == 913 and sign == '+' and num2 == 223:
print('913+223 = 1136')
if num1 == 913 and sign == '+' and num2 == 224:
print('913+224 = 1137')
if num1 == 913 and sign == '+' and num2 == 225:
print('913+225 = 1138')
if num1 == 913 and sign == '+' and num2 == 226:
print('913+226 = 1139')
if num1 == 913 and sign == '+' and num2 == 227:
print('913+227 = 1140')
if num1 == 913 and sign == '+' and num2 == 228:
print('913+228 = 1141')
if num1 == 913 and sign == '+' and num2 == 229:
print('913+229 = 1142')
if num1 == 913 and sign == '+' and num2 == 230:
print('913+230 = 1143')
if num1 == 913 and sign == '+' and num2 == 231:
print('913+231 = 1144')
if num1 == 913 and sign == '+' and num2 == 232:
print('913+232 = 1145')
if num1 == 913 and sign == '+' and num2 == 233:
print('913+233 = 1146')
if num1 == 913 and sign == '+' and num2 == 234:
print('913+234 = 1147')
if num1 == 913 and sign == '+' and num2 == 235:
print('913+235 = 1148')
if num1 == 913 and sign == '+' and num2 == 236:
print('913+236 = 1149')
if num1 == 913 and sign == '+' and num2 == 237:
print('913+237 = 1150')
if num1 == 913 and sign == '+' and num2 == 238:
print('913+238 = 1151')
if num1 == 913 and sign == '+' and num2 == 239:
print('913+239 = 1152')
if num1 == 913 and sign == '+' and num2 == 240:
print('913+240 = 1153')
if num1 == 913 and sign == '+' and num2 == 241:
print('913+241 = 1154')
if num1 == 913 and sign == '+' and num2 == 242:
print('913+242 = 1155')
if num1 == 913 and sign == '+' and num2 == 243:
print('913+243 = 1156')
if num1 == 913 and sign == '+' and num2 == 244:
print('913+244 = 1157')
if num1 == 913 and sign == '+' and num2 == 245:
print('913+245 = 1158')
if num1 == 913 and sign == '+' and num2 == 246:
print('913+246 = 1159')
if num1 == 913 and sign == '+' and num2 == 247:
print('913+247 = 1160')
if num1 == 913 and sign == '+' and num2 == 248:
print('913+248 = 1161')
if num1 == 913 and sign == '+' and num2 == 249:
print('913+249 = 1162')
if num1 == 914 and sign == '+' and num2 == 200:
print('914+200 = 1114')
if num1 == 914 and sign == '+' and num2 == 201:
print('914+201 = 1115')
if num1 == 914 and sign == '+' and num2 == 202:
print('914+202 = 1116')
if num1 == 914 and sign == '+' and num2 == 203:
print('914+203 = 1117')
if num1 == 914 and sign == '+' and num2 == 204:
print('914+204 = 1118')
if num1 == 914 and sign == '+' and num2 == 205:
print('914+205 = 1119')
if num1 == 914 and sign == '+' and num2 == 206:
print('914+206 = 1120')
if num1 == 914 and sign == '+' and num2 == 207:
print('914+207 = 1121')
if num1 == 914 and sign == '+' and num2 == 208:
print('914+208 = 1122')
if num1 == 914 and sign == '+' and num2 == 209:
print('914+209 = 1123')
if num1 == 914 and sign == '+' and num2 == 210:
print('914+210 = 1124')
if num1 == 914 and sign == '+' and num2 == 211:
print('914+211 = 1125')
if num1 == 914 and sign == '+' and num2 == 212:
print('914+212 = 1126')
if num1 == 914 and sign == '+' and num2 == 213:
print('914+213 = 1127')
if num1 == 914 and sign == '+' and num2 == 214:
print('914+214 = 1128')
if num1 == 914 and sign == '+' and num2 == 215:
print('914+215 = 1129')
if num1 == 914 and sign == '+' and num2 == 216:
print('914+216 = 1130')
if num1 == 914 and sign == '+' and num2 == 217:
print('914+217 = 1131')
if num1 == 914 and sign == '+' and num2 == 218:
print('914+218 = 1132')
if num1 == 914 and sign == '+' and num2 == 219:
print('914+219 = 1133')
if num1 == 914 and sign == '+' and num2 == 220:
print('914+220 = 1134')
if num1 == 914 and sign == '+' and num2 == 221:
print('914+221 = 1135')
if num1 == 914 and sign == '+' and num2 == 222:
print('914+222 = 1136')
if num1 == 914 and sign == '+' and num2 == 223:
print('914+223 = 1137')
if num1 == 914 and sign == '+' and num2 == 224:
print('914+224 = 1138')
if num1 == 914 and sign == '+' and num2 == 225:
print('914+225 = 1139')
if num1 == 914 and sign == '+' and num2 == 226:
print('914+226 = 1140')
if num1 == 914 and sign == '+' and num2 == 227:
print('914+227 = 1141')
if num1 == 914 and sign == '+' and num2 == 228:
print('914+228 = 1142')
if num1 == 914 and sign == '+' and num2 == 229:
print('914+229 = 1143')
if num1 == 914 and sign == '+' and num2 == 230:
print('914+230 = 1144')
if num1 == 914 and sign == '+' and num2 == 231:
print('914+231 = 1145')
if num1 == 914 and sign == '+' and num2 == 232:
print('914+232 = 1146')
if num1 == 914 and sign == '+' and num2 == 233:
print('914+233 = 1147')
if num1 == 914 and sign == '+' and num2 == 234:
print('914+234 = 1148')
if num1 == 914 and sign == '+' and num2 == 235:
print('914+235 = 1149')
if num1 == 914 and sign == '+' and num2 == 236:
print('914+236 = 1150')
if num1 == 914 and sign == '+' and num2 == 237:
print('914+237 = 1151')
if num1 == 914 and sign == '+' and num2 == 238:
print('914+238 = 1152')
if num1 == 914 and sign == '+' and num2 == 239:
print('914+239 = 1153')
if num1 == 914 and sign == '+' and num2 == 240:
print('914+240 = 1154')
if num1 == 914 and sign == '+' and num2 == 241:
print('914+241 = 1155')
if num1 == 914 and sign == '+' and num2 == 242:
print('914+242 = 1156')
if num1 == 914 and sign == '+' and num2 == 243:
print('914+243 = 1157')
if num1 == 914 and sign == '+' and num2 == 244:
print('914+244 = 1158')
if num1 == 914 and sign == '+' and num2 == 245:
print('914+245 = 1159')
if num1 == 914 and sign == '+' and num2 == 246:
print('914+246 = 1160')
if num1 == 914 and sign == '+' and num2 == 247:
print('914+247 = 1161')
if num1 == 914 and sign == '+' and num2 == 248:
print('914+248 = 1162')
if num1 == 914 and sign == '+' and num2 == 249:
print('914+249 = 1163')
if num1 == 915 and sign == '+' and num2 == 200:
print('915+200 = 1115')
if num1 == 915 and sign == '+' and num2 == 201:
print('915+201 = 1116')
if num1 == 915 and sign == '+' and num2 == 202:
print('915+202 = 1117')
if num1 == 915 and sign == '+' and num2 == 203:
print('915+203 = 1118')
if num1 == 915 and sign == '+' and num2 == 204:
print('915+204 = 1119')
if num1 == 915 and sign == '+' and num2 == 205:
print('915+205 = 1120')
if num1 == 915 and sign == '+' and num2 == 206:
print('915+206 = 1121')
if num1 == 915 and sign == '+' and num2 == 207:
print('915+207 = 1122')
if num1 == 915 and sign == '+' and num2 == 208:
print('915+208 = 1123')
if num1 == 915 and sign == '+' and num2 == 209:
print('915+209 = 1124')
if num1 == 915 and sign == '+' and num2 == 210:
print('915+210 = 1125')
if num1 == 915 and sign == '+' and num2 == 211:
print('915+211 = 1126')
if num1 == 915 and sign == '+' and num2 == 212:
print('915+212 = 1127')
if num1 == 915 and sign == '+' and num2 == 213:
print('915+213 = 1128')
if num1 == 915 and sign == '+' and num2 == 214:
print('915+214 = 1129')
if num1 == 915 and sign == '+' and num2 == 215:
print('915+215 = 1130')
if num1 == 915 and sign == '+' and num2 == 216:
print('915+216 = 1131')
if num1 == 915 and sign == '+' and num2 == 217:
print('915+217 = 1132')
if num1 == 915 and sign == '+' and num2 == 218:
print('915+218 = 1133')
if num1 == 915 and sign == '+' and num2 == 219:
print('915+219 = 1134')
if num1 == 915 and sign == '+' and num2 == 220:
print('915+220 = 1135')
if num1 == 915 and sign == '+' and num2 == 221:
print('915+221 = 1136')
if num1 == 915 and sign == '+' and num2 == 222:
print('915+222 = 1137')
if num1 == 915 and sign == '+' and num2 == 223:
print('915+223 = 1138')
if num1 == 915 and sign == '+' and num2 == 224:
print('915+224 = 1139')
if num1 == 915 and sign == '+' and num2 == 225:
print('915+225 = 1140')
if num1 == 915 and sign == '+' and num2 == 226:
print('915+226 = 1141')
if num1 == 915 and sign == '+' and num2 == 227:
print('915+227 = 1142')
if num1 == 915 and sign == '+' and num2 == 228:
print('915+228 = 1143')
if num1 == 915 and sign == '+' and num2 == 229:
print('915+229 = 1144')
if num1 == 915 and sign == '+' and num2 == 230:
print('915+230 = 1145')
if num1 == 915 and sign == '+' and num2 == 231:
print('915+231 = 1146')
if num1 == 915 and sign == '+' and num2 == 232:
print('915+232 = 1147')
if num1 == 915 and sign == '+' and num2 == 233:
print('915+233 = 1148')
if num1 == 915 and sign == '+' and num2 == 234:
print('915+234 = 1149')
if num1 == 915 and sign == '+' and num2 == 235:
print('915+235 = 1150')
if num1 == 915 and sign == '+' and num2 == 236:
print('915+236 = 1151')
if num1 == 915 and sign == '+' and num2 == 237:
print('915+237 = 1152')
if num1 == 915 and sign == '+' and num2 == 238:
print('915+238 = 1153')
if num1 == 915 and sign == '+' and num2 == 239:
print('915+239 = 1154')
if num1 == 915 and sign == '+' and num2 == 240:
print('915+240 = 1155')
if num1 == 915 and sign == '+' and num2 == 241:
print('915+241 = 1156')
if num1 == 915 and sign == '+' and num2 == 242:
print('915+242 = 1157')
if num1 == 915 and sign == '+' and num2 == 243:
print('915+243 = 1158')
if num1 == 915 and sign == '+' and num2 == 244:
print('915+244 = 1159')
if num1 == 915 and sign == '+' and num2 == 245:
print('915+245 = 1160')
if num1 == 915 and sign == '+' and num2 == 246:
print('915+246 = 1161')
if num1 == 915 and sign == '+' and num2 == 247:
print('915+247 = 1162')
if num1 == 915 and sign == '+' and num2 == 248:
print('915+248 = 1163')
if num1 == 915 and sign == '+' and num2 == 249:
print('915+249 = 1164')
if num1 == 916 and sign == '+' and num2 == 200:
print('916+200 = 1116')
if num1 == 916 and sign == '+' and num2 == 201:
print('916+201 = 1117')
if num1 == 916 and sign == '+' and num2 == 202:
print('916+202 = 1118')
if num1 == 916 and sign == '+' and num2 == 203:
print('916+203 = 1119')
if num1 == 916 and sign == '+' and num2 == 204:
print('916+204 = 1120')
if num1 == 916 and sign == '+' and num2 == 205:
print('916+205 = 1121')
if num1 == 916 and sign == '+' and num2 == 206:
print('916+206 = 1122')
if num1 == 916 and sign == '+' and num2 == 207:
print('916+207 = 1123')
if num1 == 916 and sign == '+' and num2 == 208:
print('916+208 = 1124')
if num1 == 916 and sign == '+' and num2 == 209:
print('916+209 = 1125')
if num1 == 916 and sign == '+' and num2 == 210:
print('916+210 = 1126')
if num1 == 916 and sign == '+' and num2 == 211:
print('916+211 = 1127')
if num1 == 916 and sign == '+' and num2 == 212:
print('916+212 = 1128')
if num1 == 916 and sign == '+' and num2 == 213:
print('916+213 = 1129')
if num1 == 916 and sign == '+' and num2 == 214:
print('916+214 = 1130')
if num1 == 916 and sign == '+' and num2 == 215:
print('916+215 = 1131')
if num1 == 916 and sign == '+' and num2 == 216:
print('916+216 = 1132')
if num1 == 916 and sign == '+' and num2 == 217:
print('916+217 = 1133')
if num1 == 916 and sign == '+' and num2 == 218:
print('916+218 = 1134')
if num1 == 916 and sign == '+' and num2 == 219:
print('916+219 = 1135')
if num1 == 916 and sign == '+' and num2 == 220:
print('916+220 = 1136')
if num1 == 916 and sign == '+' and num2 == 221:
print('916+221 = 1137')
if num1 == 916 and sign == '+' and num2 == 222:
print('916+222 = 1138')
if num1 == 916 and sign == '+' and num2 == 223:
print('916+223 = 1139')
if num1 == 916 and sign == '+' and num2 == 224:
print('916+224 = 1140')
if num1 == 916 and sign == '+' and num2 == 225:
print('916+225 = 1141')
if num1 == 916 and sign == '+' and num2 == 226:
print('916+226 = 1142')
if num1 == 916 and sign == '+' and num2 == 227:
print('916+227 = 1143')
if num1 == 916 and sign == '+' and num2 == 228:
print('916+228 = 1144')
if num1 == 916 and sign == '+' and num2 == 229:
print('916+229 = 1145')
if num1 == 916 and sign == '+' and num2 == 230:
print('916+230 = 1146')
if num1 == 916 and sign == '+' and num2 == 231:
print('916+231 = 1147')
if num1 == 916 and sign == '+' and num2 == 232:
print('916+232 = 1148')
if num1 == 916 and sign == '+' and num2 == 233:
print('916+233 = 1149')
if num1 == 916 and sign == '+' and num2 == 234:
print('916+234 = 1150')
if num1 == 916 and sign == '+' and num2 == 235:
print('916+235 = 1151')
if num1 == 916 and sign == '+' and num2 == 236:
print('916+236 = 1152')
if num1 == 916 and sign == '+' and num2 == 237:
print('916+237 = 1153')
if num1 == 916 and sign == '+' and num2 == 238:
print('916+238 = 1154')
if num1 == 916 and sign == '+' and num2 == 239:
print('916+239 = 1155')
if num1 == 916 and sign == '+' and num2 == 240:
print('916+240 = 1156')
if num1 == 916 and sign == '+' and num2 == 241:
print('916+241 = 1157')
if num1 == 916 and sign == '+' and num2 == 242:
print('916+242 = 1158')
if num1 == 916 and sign == '+' and num2 == 243:
print('916+243 = 1159')
if num1 == 916 and sign == '+' and num2 == 244:
print('916+244 = 1160')
if num1 == 916 and sign == '+' and num2 == 245:
print('916+245 = 1161')
if num1 == 916 and sign == '+' and num2 == 246:
print('916+246 = 1162')
if num1 == 916 and sign == '+' and num2 == 247:
print('916+247 = 1163')
if num1 == 916 and sign == '+' and num2 == 248:
print('916+248 = 1164')
if num1 == 916 and sign == '+' and num2 == 249:
print('916+249 = 1165')
if num1 == 917 and sign == '+' and num2 == 200:
print('917+200 = 1117')
if num1 == 917 and sign == '+' and num2 == 201:
print('917+201 = 1118')
if num1 == 917 and sign == '+' and num2 == 202:
print('917+202 = 1119')
if num1 == 917 and sign == '+' and num2 == 203:
print('917+203 = 1120')
if num1 == 917 and sign == '+' and num2 == 204:
print('917+204 = 1121')
if num1 == 917 and sign == '+' and num2 == 205:
print('917+205 = 1122')
if num1 == 917 and sign == '+' and num2 == 206:
print('917+206 = 1123')
if num1 == 917 and sign == '+' and num2 == 207:
print('917+207 = 1124')
if num1 == 917 and sign == '+' and num2 == 208:
print('917+208 = 1125')
if num1 == 917 and sign == '+' and num2 == 209:
print('917+209 = 1126')
if num1 == 917 and sign == '+' and num2 == 210:
print('917+210 = 1127')
if num1 == 917 and sign == '+' and num2 == 211:
print('917+211 = 1128')
if num1 == 917 and sign == '+' and num2 == 212:
print('917+212 = 1129')
if num1 == 917 and sign == '+' and num2 == 213:
print('917+213 = 1130')
if num1 == 917 and sign == '+' and num2 == 214:
print('917+214 = 1131')
if num1 == 917 and sign == '+' and num2 == 215:
print('917+215 = 1132')
if num1 == 917 and sign == '+' and num2 == 216:
print('917+216 = 1133')
if num1 == 917 and sign == '+' and num2 == 217:
print('917+217 = 1134')
if num1 == 917 and sign == '+' and num2 == 218:
print('917+218 = 1135')
if num1 == 917 and sign == '+' and num2 == 219:
print('917+219 = 1136')
if num1 == 917 and sign == '+' and num2 == 220:
print('917+220 = 1137')
if num1 == 917 and sign == '+' and num2 == 221:
print('917+221 = 1138')
if num1 == 917 and sign == '+' and num2 == 222:
print('917+222 = 1139')
if num1 == 917 and sign == '+' and num2 == 223:
print('917+223 = 1140')
if num1 == 917 and sign == '+' and num2 == 224:
print('917+224 = 1141')
if num1 == 917 and sign == '+' and num2 == 225:
print('917+225 = 1142')
if num1 == 917 and sign == '+' and num2 == 226:
print('917+226 = 1143')
if num1 == 917 and sign == '+' and num2 == 227:
print('917+227 = 1144')
if num1 == 917 and sign == '+' and num2 == 228:
print('917+228 = 1145')
if num1 == 917 and sign == '+' and num2 == 229:
print('917+229 = 1146')
if num1 == 917 and sign == '+' and num2 == 230:
print('917+230 = 1147')
if num1 == 917 and sign == '+' and num2 == 231:
print('917+231 = 1148')
if num1 == 917 and sign == '+' and num2 == 232:
print('917+232 = 1149')
if num1 == 917 and sign == '+' and num2 == 233:
print('917+233 = 1150')
if num1 == 917 and sign == '+' and num2 == 234:
print('917+234 = 1151')
if num1 == 917 and sign == '+' and num2 == 235:
print('917+235 = 1152')
if num1 == 917 and sign == '+' and num2 == 236:
print('917+236 = 1153')
if num1 == 917 and sign == '+' and num2 == 237:
print('917+237 = 1154')
if num1 == 917 and sign == '+' and num2 == 238:
print('917+238 = 1155')
if num1 == 917 and sign == '+' and num2 == 239:
print('917+239 = 1156')
if num1 == 917 and sign == '+' and num2 == 240:
print('917+240 = 1157')
if num1 == 917 and sign == '+' and num2 == 241:
print('917+241 = 1158')
if num1 == 917 and sign == '+' and num2 == 242:
print('917+242 = 1159')
if num1 == 917 and sign == '+' and num2 == 243:
print('917+243 = 1160')
if num1 == 917 and sign == '+' and num2 == 244:
print('917+244 = 1161')
if num1 == 917 and sign == '+' and num2 == 245:
print('917+245 = 1162')
if num1 == 917 and sign == '+' and num2 == 246:
print('917+246 = 1163')
if num1 == 917 and sign == '+' and num2 == 247:
print('917+247 = 1164')
if num1 == 917 and sign == '+' and num2 == 248:
print('917+248 = 1165')
if num1 == 917 and sign == '+' and num2 == 249:
print('917+249 = 1166')
if num1 == 918 and sign == '+' and num2 == 200:
print('918+200 = 1118')
if num1 == 918 and sign == '+' and num2 == 201:
print('918+201 = 1119')
if num1 == 918 and sign == '+' and num2 == 202:
print('918+202 = 1120')
if num1 == 918 and sign == '+' and num2 == 203:
print('918+203 = 1121')
if num1 == 918 and sign == '+' and num2 == 204:
print('918+204 = 1122')
if num1 == 918 and sign == '+' and num2 == 205:
print('918+205 = 1123')
if num1 == 918 and sign == '+' and num2 == 206:
print('918+206 = 1124')
if num1 == 918 and sign == '+' and num2 == 207:
print('918+207 = 1125')
if num1 == 918 and sign == '+' and num2 == 208:
print('918+208 = 1126')
if num1 == 918 and sign == '+' and num2 == 209:
print('918+209 = 1127')
if num1 == 918 and sign == '+' and num2 == 210:
print('918+210 = 1128')
if num1 == 918 and sign == '+' and num2 == 211:
print('918+211 = 1129')
if num1 == 918 and sign == '+' and num2 == 212:
print('918+212 = 1130')
if num1 == 918 and sign == '+' and num2 == 213:
print('918+213 = 1131')
if num1 == 918 and sign == '+' and num2 == 214:
print('918+214 = 1132')
if num1 == 918 and sign == '+' and num2 == 215:
print('918+215 = 1133')
if num1 == 918 and sign == '+' and num2 == 216:
print('918+216 = 1134')
if num1 == 918 and sign == '+' and num2 == 217:
print('918+217 = 1135')
if num1 == 918 and sign == '+' and num2 == 218:
print('918+218 = 1136')
if num1 == 918 and sign == '+' and num2 == 219:
print('918+219 = 1137')
if num1 == 918 and sign == '+' and num2 == 220:
print('918+220 = 1138')
if num1 == 918 and sign == '+' and num2 == 221:
print('918+221 = 1139')
if num1 == 918 and sign == '+' and num2 == 222:
print('918+222 = 1140')
if num1 == 918 and sign == '+' and num2 == 223:
print('918+223 = 1141')
if num1 == 918 and sign == '+' and num2 == 224:
print('918+224 = 1142')
if num1 == 918 and sign == '+' and num2 == 225:
print('918+225 = 1143')
if num1 == 918 and sign == '+' and num2 == 226:
print('918+226 = 1144')
if num1 == 918 and sign == '+' and num2 == 227:
print('918+227 = 1145')
if num1 == 918 and sign == '+' and num2 == 228:
print('918+228 = 1146')
if num1 == 918 and sign == '+' and num2 == 229:
print('918+229 = 1147')
if num1 == 918 and sign == '+' and num2 == 230:
print('918+230 = 1148')
if num1 == 918 and sign == '+' and num2 == 231:
print('918+231 = 1149')
if num1 == 918 and sign == '+' and num2 == 232:
print('918+232 = 1150')
if num1 == 918 and sign == '+' and num2 == 233:
print('918+233 = 1151')
if num1 == 918 and sign == '+' and num2 == 234:
print('918+234 = 1152')
if num1 == 918 and sign == '+' and num2 == 235:
print('918+235 = 1153')
if num1 == 918 and sign == '+' and num2 == 236:
print('918+236 = 1154')
if num1 == 918 and sign == '+' and num2 == 237:
print('918+237 = 1155')
if num1 == 918 and sign == '+' and num2 == 238:
print('918+238 = 1156')
if num1 == 918 and sign == '+' and num2 == 239:
print('918+239 = 1157')
if num1 == 918 and sign == '+' and num2 == 240:
print('918+240 = 1158')
if num1 == 918 and sign == '+' and num2 == 241:
print('918+241 = 1159')
if num1 == 918 and sign == '+' and num2 == 242:
print('918+242 = 1160')
if num1 == 918 and sign == '+' and num2 == 243:
print('918+243 = 1161')
if num1 == 918 and sign == '+' and num2 == 244:
print('918+244 = 1162')
if num1 == 918 and sign == '+' and num2 == 245:
print('918+245 = 1163')
if num1 == 918 and sign == '+' and num2 == 246:
print('918+246 = 1164')
if num1 == 918 and sign == '+' and num2 == 247:
print('918+247 = 1165')
if num1 == 918 and sign == '+' and num2 == 248:
print('918+248 = 1166')
if num1 == 918 and sign == '+' and num2 == 249:
print('918+249 = 1167')
if num1 == 919 and sign == '+' and num2 == 200:
print('919+200 = 1119')
if num1 == 919 and sign == '+' and num2 == 201:
print('919+201 = 1120')
if num1 == 919 and sign == '+' and num2 == 202:
print('919+202 = 1121')
if num1 == 919 and sign == '+' and num2 == 203:
print('919+203 = 1122')
if num1 == 919 and sign == '+' and num2 == 204:
print('919+204 = 1123')
if num1 == 919 and sign == '+' and num2 == 205:
print('919+205 = 1124')
if num1 == 919 and sign == '+' and num2 == 206:
print('919+206 = 1125')
if num1 == 919 and sign == '+' and num2 == 207:
print('919+207 = 1126')
if num1 == 919 and sign == '+' and num2 == 208:
print('919+208 = 1127')
if num1 == 919 and sign == '+' and num2 == 209:
print('919+209 = 1128')
if num1 == 919 and sign == '+' and num2 == 210:
print('919+210 = 1129')
if num1 == 919 and sign == '+' and num2 == 211:
print('919+211 = 1130')
if num1 == 919 and sign == '+' and num2 == 212:
print('919+212 = 1131')
if num1 == 919 and sign == '+' and num2 == 213:
print('919+213 = 1132')
if num1 == 919 and sign == '+' and num2 == 214:
print('919+214 = 1133')
if num1 == 919 and sign == '+' and num2 == 215:
print('919+215 = 1134')
if num1 == 919 and sign == '+' and num2 == 216:
print('919+216 = 1135')
if num1 == 919 and sign == '+' and num2 == 217:
print('919+217 = 1136')
if num1 == 919 and sign == '+' and num2 == 218:
print('919+218 = 1137')
if num1 == 919 and sign == '+' and num2 == 219:
print('919+219 = 1138')
if num1 == 919 and sign == '+' and num2 == 220:
print('919+220 = 1139')
if num1 == 919 and sign == '+' and num2 == 221:
print('919+221 = 1140')
if num1 == 919 and sign == '+' and num2 == 222:
print('919+222 = 1141')
if num1 == 919 and sign == '+' and num2 == 223:
print('919+223 = 1142')
if num1 == 919 and sign == '+' and num2 == 224:
print('919+224 = 1143')
if num1 == 919 and sign == '+' and num2 == 225:
print('919+225 = 1144')
if num1 == 919 and sign == '+' and num2 == 226:
print('919+226 = 1145')
if num1 == 919 and sign == '+' and num2 == 227:
print('919+227 = 1146')
if num1 == 919 and sign == '+' and num2 == 228:
print('919+228 = 1147')
if num1 == 919 and sign == '+' and num2 == 229:
print('919+229 = 1148')
if num1 == 919 and sign == '+' and num2 == 230:
print('919+230 = 1149')
if num1 == 919 and sign == '+' and num2 == 231:
print('919+231 = 1150')
if num1 == 919 and sign == '+' and num2 == 232:
print('919+232 = 1151')
if num1 == 919 and sign == '+' and num2 == 233:
print('919+233 = 1152')
if num1 == 919 and sign == '+' and num2 == 234:
print('919+234 = 1153')
if num1 == 919 and sign == '+' and num2 == 235:
print('919+235 = 1154')
if num1 == 919 and sign == '+' and num2 == 236:
print('919+236 = 1155')
if num1 == 919 and sign == '+' and num2 == 237:
print('919+237 = 1156')
if num1 == 919 and sign == '+' and num2 == 238:
print('919+238 = 1157')
if num1 == 919 and sign == '+' and num2 == 239:
print('919+239 = 1158')
if num1 == 919 and sign == '+' and num2 == 240:
print('919+240 = 1159')
if num1 == 919 and sign == '+' and num2 == 241:
print('919+241 = 1160')
if num1 == 919 and sign == '+' and num2 == 242:
print('919+242 = 1161')
if num1 == 919 and sign == '+' and num2 == 243:
print('919+243 = 1162')
if num1 == 919 and sign == '+' and num2 == 244:
print('919+244 = 1163')
if num1 == 919 and sign == '+' and num2 == 245:
print('919+245 = 1164')
if num1 == 919 and sign == '+' and num2 == 246:
print('919+246 = 1165')
if num1 == 919 and sign == '+' and num2 == 247:
print('919+247 = 1166')
if num1 == 919 and sign == '+' and num2 == 248:
print('919+248 = 1167')
if num1 == 919 and sign == '+' and num2 == 249:
print('919+249 = 1168')
if num1 == 920 and sign == '+' and num2 == 200:
print('920+200 = 1120')
if num1 == 920 and sign == '+' and num2 == 201:
print('920+201 = 1121')
if num1 == 920 and sign == '+' and num2 == 202:
print('920+202 = 1122')
if num1 == 920 and sign == '+' and num2 == 203:
print('920+203 = 1123')
if num1 == 920 and sign == '+' and num2 == 204:
print('920+204 = 1124')
if num1 == 920 and sign == '+' and num2 == 205:
print('920+205 = 1125')
if num1 == 920 and sign == '+' and num2 == 206:
print('920+206 = 1126')
if num1 == 920 and sign == '+' and num2 == 207:
print('920+207 = 1127')
if num1 == 920 and sign == '+' and num2 == 208:
print('920+208 = 1128')
if num1 == 920 and sign == '+' and num2 == 209:
print('920+209 = 1129')
if num1 == 920 and sign == '+' and num2 == 210:
print('920+210 = 1130')
if num1 == 920 and sign == '+' and num2 == 211:
print('920+211 = 1131')
if num1 == 920 and sign == '+' and num2 == 212:
print('920+212 = 1132')
if num1 == 920 and sign == '+' and num2 == 213:
print('920+213 = 1133')
if num1 == 920 and sign == '+' and num2 == 214:
print('920+214 = 1134')
if num1 == 920 and sign == '+' and num2 == 215:
print('920+215 = 1135')
if num1 == 920 and sign == '+' and num2 == 216:
print('920+216 = 1136')
if num1 == 920 and sign == '+' and num2 == 217:
print('920+217 = 1137')
if num1 == 920 and sign == '+' and num2 == 218:
print('920+218 = 1138')
if num1 == 920 and sign == '+' and num2 == 219:
print('920+219 = 1139')
if num1 == 920 and sign == '+' and num2 == 220:
print('920+220 = 1140')
if num1 == 920 and sign == '+' and num2 == 221:
print('920+221 = 1141')
if num1 == 920 and sign == '+' and num2 == 222:
print('920+222 = 1142')
if num1 == 920 and sign == '+' and num2 == 223:
print('920+223 = 1143')
if num1 == 920 and sign == '+' and num2 == 224:
print('920+224 = 1144')
if num1 == 920 and sign == '+' and num2 == 225:
print('920+225 = 1145')
if num1 == 920 and sign == '+' and num2 == 226:
print('920+226 = 1146')
if num1 == 920 and sign == '+' and num2 == 227:
print('920+227 = 1147')
if num1 == 920 and sign == '+' and num2 == 228:
print('920+228 = 1148')
if num1 == 920 and sign == '+' and num2 == 229:
print('920+229 = 1149')
if num1 == 920 and sign == '+' and num2 == 230:
print('920+230 = 1150')
if num1 == 920 and sign == '+' and num2 == 231:
print('920+231 = 1151')
if num1 == 920 and sign == '+' and num2 == 232:
print('920+232 = 1152')
if num1 == 920 and sign == '+' and num2 == 233:
print('920+233 = 1153')
if num1 == 920 and sign == '+' and num2 == 234:
print('920+234 = 1154')
if num1 == 920 and sign == '+' and num2 == 235:
print('920+235 = 1155')
if num1 == 920 and sign == '+' and num2 == 236:
print('920+236 = 1156')
if num1 == 920 and sign == '+' and num2 == 237:
print('920+237 = 1157')
if num1 == 920 and sign == '+' and num2 == 238:
print('920+238 = 1158')
if num1 == 920 and sign == '+' and num2 == 239:
print('920+239 = 1159')
if num1 == 920 and sign == '+' and num2 == 240:
print('920+240 = 1160')
if num1 == 920 and sign == '+' and num2 == 241:
print('920+241 = 1161')
if num1 == 920 and sign == '+' and num2 == 242:
print('920+242 = 1162')
if num1 == 920 and sign == '+' and num2 == 243:
print('920+243 = 1163')
if num1 == 920 and sign == '+' and num2 == 244:
print('920+244 = 1164')
if num1 == 920 and sign == '+' and num2 == 245:
print('920+245 = 1165')
if num1 == 920 and sign == '+' and num2 == 246:
print('920+246 = 1166')
if num1 == 920 and sign == '+' and num2 == 247:
print('920+247 = 1167')
if num1 == 920 and sign == '+' and num2 == 248:
print('920+248 = 1168')
if num1 == 920 and sign == '+' and num2 == 249:
print('920+249 = 1169')
if num1 == 921 and sign == '+' and num2 == 200:
print('921+200 = 1121')
if num1 == 921 and sign == '+' and num2 == 201:
print('921+201 = 1122')
if num1 == 921 and sign == '+' and num2 == 202:
print('921+202 = 1123')
if num1 == 921 and sign == '+' and num2 == 203:
print('921+203 = 1124')
if num1 == 921 and sign == '+' and num2 == 204:
print('921+204 = 1125')
if num1 == 921 and sign == '+' and num2 == 205:
print('921+205 = 1126')
if num1 == 921 and sign == '+' and num2 == 206:
print('921+206 = 1127')
if num1 == 921 and sign == '+' and num2 == 207:
print('921+207 = 1128')
if num1 == 921 and sign == '+' and num2 == 208:
print('921+208 = 1129')
if num1 == 921 and sign == '+' and num2 == 209:
print('921+209 = 1130')
if num1 == 921 and sign == '+' and num2 == 210:
print('921+210 = 1131')
if num1 == 921 and sign == '+' and num2 == 211:
print('921+211 = 1132')
if num1 == 921 and sign == '+' and num2 == 212:
print('921+212 = 1133')
if num1 == 921 and sign == '+' and num2 == 213:
print('921+213 = 1134')
if num1 == 921 and sign == '+' and num2 == 214:
print('921+214 = 1135')
if num1 == 921 and sign == '+' and num2 == 215:
print('921+215 = 1136')
if num1 == 921 and sign == '+' and num2 == 216:
print('921+216 = 1137')
if num1 == 921 and sign == '+' and num2 == 217:
print('921+217 = 1138')
if num1 == 921 and sign == '+' and num2 == 218:
print('921+218 = 1139')
if num1 == 921 and sign == '+' and num2 == 219:
print('921+219 = 1140')
if num1 == 921 and sign == '+' and num2 == 220:
print('921+220 = 1141')
if num1 == 921 and sign == '+' and num2 == 221:
print('921+221 = 1142')
if num1 == 921 and sign == '+' and num2 == 222:
print('921+222 = 1143')
if num1 == 921 and sign == '+' and num2 == 223:
print('921+223 = 1144')
if num1 == 921 and sign == '+' and num2 == 224:
print('921+224 = 1145')
if num1 == 921 and sign == '+' and num2 == 225:
print('921+225 = 1146')
if num1 == 921 and sign == '+' and num2 == 226:
print('921+226 = 1147')
if num1 == 921 and sign == '+' and num2 == 227:
print('921+227 = 1148')
if num1 == 921 and sign == '+' and num2 == 228:
print('921+228 = 1149')
if num1 == 921 and sign == '+' and num2 == 229:
print('921+229 = 1150')
if num1 == 921 and sign == '+' and num2 == 230:
print('921+230 = 1151')
if num1 == 921 and sign == '+' and num2 == 231:
print('921+231 = 1152')
if num1 == 921 and sign == '+' and num2 == 232:
print('921+232 = 1153')
if num1 == 921 and sign == '+' and num2 == 233:
print('921+233 = 1154')
if num1 == 921 and sign == '+' and num2 == 234:
print('921+234 = 1155')
if num1 == 921 and sign == '+' and num2 == 235:
print('921+235 = 1156')
if num1 == 921 and sign == '+' and num2 == 236:
print('921+236 = 1157')
if num1 == 921 and sign == '+' and num2 == 237:
print('921+237 = 1158')
if num1 == 921 and sign == '+' and num2 == 238:
print('921+238 = 1159')
if num1 == 921 and sign == '+' and num2 == 239:
print('921+239 = 1160')
if num1 == 921 and sign == '+' and num2 == 240:
print('921+240 = 1161')
if num1 == 921 and sign == '+' and num2 == 241:
print('921+241 = 1162')
if num1 == 921 and sign == '+' and num2 == 242:
print('921+242 = 1163')
if num1 == 921 and sign == '+' and num2 == 243:
print('921+243 = 1164')
if num1 == 921 and sign == '+' and num2 == 244:
print('921+244 = 1165')
if num1 == 921 and sign == '+' and num2 == 245:
print('921+245 = 1166')
if num1 == 921 and sign == '+' and num2 == 246:
print('921+246 = 1167')
if num1 == 921 and sign == '+' and num2 == 247:
print('921+247 = 1168')
if num1 == 921 and sign == '+' and num2 == 248:
print('921+248 = 1169')
if num1 == 921 and sign == '+' and num2 == 249:
print('921+249 = 1170')
if num1 == 922 and sign == '+' and num2 == 200:
print('922+200 = 1122')
if num1 == 922 and sign == '+' and num2 == 201:
print('922+201 = 1123')
if num1 == 922 and sign == '+' and num2 == 202:
print('922+202 = 1124')
if num1 == 922 and sign == '+' and num2 == 203:
print('922+203 = 1125')
if num1 == 922 and sign == '+' and num2 == 204:
print('922+204 = 1126')
if num1 == 922 and sign == '+' and num2 == 205:
print('922+205 = 1127')
if num1 == 922 and sign == '+' and num2 == 206:
print('922+206 = 1128')
if num1 == 922 and sign == '+' and num2 == 207:
print('922+207 = 1129')
if num1 == 922 and sign == '+' and num2 == 208:
print('922+208 = 1130')
if num1 == 922 and sign == '+' and num2 == 209:
print('922+209 = 1131')
if num1 == 922 and sign == '+' and num2 == 210:
print('922+210 = 1132')
if num1 == 922 and sign == '+' and num2 == 211:
print('922+211 = 1133')
if num1 == 922 and sign == '+' and num2 == 212:
print('922+212 = 1134')
if num1 == 922 and sign == '+' and num2 == 213:
print('922+213 = 1135')
if num1 == 922 and sign == '+' and num2 == 214:
print('922+214 = 1136')
if num1 == 922 and sign == '+' and num2 == 215:
print('922+215 = 1137')
if num1 == 922 and sign == '+' and num2 == 216:
print('922+216 = 1138')
if num1 == 922 and sign == '+' and num2 == 217:
print('922+217 = 1139')
if num1 == 922 and sign == '+' and num2 == 218:
print('922+218 = 1140')
if num1 == 922 and sign == '+' and num2 == 219:
print('922+219 = 1141')
if num1 == 922 and sign == '+' and num2 == 220:
print('922+220 = 1142')
if num1 == 922 and sign == '+' and num2 == 221:
print('922+221 = 1143')
if num1 == 922 and sign == '+' and num2 == 222:
print('922+222 = 1144')
if num1 == 922 and sign == '+' and num2 == 223:
print('922+223 = 1145')
if num1 == 922 and sign == '+' and num2 == 224:
print('922+224 = 1146')
if num1 == 922 and sign == '+' and num2 == 225:
print('922+225 = 1147')
if num1 == 922 and sign == '+' and num2 == 226:
print('922+226 = 1148')
if num1 == 922 and sign == '+' and num2 == 227:
print('922+227 = 1149')
if num1 == 922 and sign == '+' and num2 == 228:
print('922+228 = 1150')
if num1 == 922 and sign == '+' and num2 == 229:
print('922+229 = 1151')
if num1 == 922 and sign == '+' and num2 == 230:
print('922+230 = 1152')
if num1 == 922 and sign == '+' and num2 == 231:
print('922+231 = 1153')
if num1 == 922 and sign == '+' and num2 == 232:
print('922+232 = 1154')
if num1 == 922 and sign == '+' and num2 == 233:
print('922+233 = 1155')
if num1 == 922 and sign == '+' and num2 == 234:
print('922+234 = 1156')
if num1 == 922 and sign == '+' and num2 == 235:
print('922+235 = 1157')
if num1 == 922 and sign == '+' and num2 == 236:
print('922+236 = 1158')
if num1 == 922 and sign == '+' and num2 == 237:
print('922+237 = 1159')
if num1 == 922 and sign == '+' and num2 == 238:
print('922+238 = 1160')
if num1 == 922 and sign == '+' and num2 == 239:
print('922+239 = 1161')
if num1 == 922 and sign == '+' and num2 == 240:
print('922+240 = 1162')
if num1 == 922 and sign == '+' and num2 == 241:
print('922+241 = 1163')
if num1 == 922 and sign == '+' and num2 == 242:
print('922+242 = 1164')
if num1 == 922 and sign == '+' and num2 == 243:
print('922+243 = 1165')
if num1 == 922 and sign == '+' and num2 == 244:
print('922+244 = 1166')
if num1 == 922 and sign == '+' and num2 == 245:
print('922+245 = 1167')
if num1 == 922 and sign == '+' and num2 == 246:
print('922+246 = 1168')
if num1 == 922 and sign == '+' and num2 == 247:
print('922+247 = 1169')
if num1 == 922 and sign == '+' and num2 == 248:
print('922+248 = 1170')
if num1 == 922 and sign == '+' and num2 == 249:
print('922+249 = 1171')
if num1 == 923 and sign == '+' and num2 == 200:
print('923+200 = 1123')
if num1 == 923 and sign == '+' and num2 == 201:
print('923+201 = 1124')
if num1 == 923 and sign == '+' and num2 == 202:
print('923+202 = 1125')
if num1 == 923 and sign == '+' and num2 == 203:
print('923+203 = 1126')
if num1 == 923 and sign == '+' and num2 == 204:
print('923+204 = 1127')
if num1 == 923 and sign == '+' and num2 == 205:
print('923+205 = 1128')
if num1 == 923 and sign == '+' and num2 == 206:
print('923+206 = 1129')
if num1 == 923 and sign == '+' and num2 == 207:
print('923+207 = 1130')
if num1 == 923 and sign == '+' and num2 == 208:
print('923+208 = 1131')
if num1 == 923 and sign == '+' and num2 == 209:
print('923+209 = 1132')
if num1 == 923 and sign == '+' and num2 == 210:
print('923+210 = 1133')
if num1 == 923 and sign == '+' and num2 == 211:
print('923+211 = 1134')
if num1 == 923 and sign == '+' and num2 == 212:
print('923+212 = 1135')
if num1 == 923 and sign == '+' and num2 == 213:
print('923+213 = 1136')
if num1 == 923 and sign == '+' and num2 == 214:
print('923+214 = 1137')
if num1 == 923 and sign == '+' and num2 == 215:
print('923+215 = 1138')
if num1 == 923 and sign == '+' and num2 == 216:
print('923+216 = 1139')
if num1 == 923 and sign == '+' and num2 == 217:
print('923+217 = 1140')
if num1 == 923 and sign == '+' and num2 == 218:
print('923+218 = 1141')
if num1 == 923 and sign == '+' and num2 == 219:
print('923+219 = 1142')
if num1 == 923 and sign == '+' and num2 == 220:
print('923+220 = 1143')
if num1 == 923 and sign == '+' and num2 == 221:
print('923+221 = 1144')
if num1 == 923 and sign == '+' and num2 == 222:
print('923+222 = 1145')
if num1 == 923 and sign == '+' and num2 == 223:
print('923+223 = 1146')
if num1 == 923 and sign == '+' and num2 == 224:
print('923+224 = 1147')
if num1 == 923 and sign == '+' and num2 == 225:
print('923+225 = 1148')
if num1 == 923 and sign == '+' and num2 == 226:
print('923+226 = 1149')
if num1 == 923 and sign == '+' and num2 == 227:
print('923+227 = 1150')
if num1 == 923 and sign == '+' and num2 == 228:
print('923+228 = 1151')
if num1 == 923 and sign == '+' and num2 == 229:
print('923+229 = 1152')
if num1 == 923 and sign == '+' and num2 == 230:
print('923+230 = 1153')
if num1 == 923 and sign == '+' and num2 == 231:
print('923+231 = 1154')
if num1 == 923 and sign == '+' and num2 == 232:
print('923+232 = 1155')
if num1 == 923 and sign == '+' and num2 == 233:
print('923+233 = 1156')
if num1 == 923 and sign == '+' and num2 == 234:
print('923+234 = 1157')
if num1 == 923 and sign == '+' and num2 == 235:
print('923+235 = 1158')
if num1 == 923 and sign == '+' and num2 == 236:
print('923+236 = 1159')
if num1 == 923 and sign == '+' and num2 == 237:
print('923+237 = 1160')
if num1 == 923 and sign == '+' and num2 == 238:
print('923+238 = 1161')
if num1 == 923 and sign == '+' and num2 == 239:
print('923+239 = 1162')
if num1 == 923 and sign == '+' and num2 == 240:
print('923+240 = 1163')
if num1 == 923 and sign == '+' and num2 == 241:
print('923+241 = 1164')
if num1 == 923 and sign == '+' and num2 == 242:
print('923+242 = 1165')
if num1 == 923 and sign == '+' and num2 == 243:
print('923+243 = 1166')
if num1 == 923 and sign == '+' and num2 == 244:
print('923+244 = 1167')
if num1 == 923 and sign == '+' and num2 == 245:
print('923+245 = 1168')
if num1 == 923 and sign == '+' and num2 == 246:
print('923+246 = 1169')
if num1 == 923 and sign == '+' and num2 == 247:
print('923+247 = 1170')
if num1 == 923 and sign == '+' and num2 == 248:
print('923+248 = 1171')
if num1 == 923 and sign == '+' and num2 == 249:
print('923+249 = 1172')
if num1 == 924 and sign == '+' and num2 == 200:
print('924+200 = 1124')
if num1 == 924 and sign == '+' and num2 == 201:
print('924+201 = 1125')
if num1 == 924 and sign == '+' and num2 == 202:
print('924+202 = 1126')
if num1 == 924 and sign == '+' and num2 == 203:
print('924+203 = 1127')
if num1 == 924 and sign == '+' and num2 == 204:
print('924+204 = 1128')
if num1 == 924 and sign == '+' and num2 == 205:
print('924+205 = 1129')
if num1 == 924 and sign == '+' and num2 == 206:
print('924+206 = 1130')
if num1 == 924 and sign == '+' and num2 == 207:
print('924+207 = 1131')
if num1 == 924 and sign == '+' and num2 == 208:
print('924+208 = 1132')
if num1 == 924 and sign == '+' and num2 == 209:
print('924+209 = 1133')
if num1 == 924 and sign == '+' and num2 == 210:
print('924+210 = 1134')
if num1 == 924 and sign == '+' and num2 == 211:
print('924+211 = 1135')
if num1 == 924 and sign == '+' and num2 == 212:
print('924+212 = 1136')
if num1 == 924 and sign == '+' and num2 == 213:
print('924+213 = 1137')
if num1 == 924 and sign == '+' and num2 == 214:
print('924+214 = 1138')
if num1 == 924 and sign == '+' and num2 == 215:
print('924+215 = 1139')
if num1 == 924 and sign == '+' and num2 == 216:
print('924+216 = 1140')
if num1 == 924 and sign == '+' and num2 == 217:
print('924+217 = 1141')
if num1 == 924 and sign == '+' and num2 == 218:
print('924+218 = 1142')
if num1 == 924 and sign == '+' and num2 == 219:
print('924+219 = 1143')
if num1 == 924 and sign == '+' and num2 == 220:
print('924+220 = 1144')
if num1 == 924 and sign == '+' and num2 == 221:
print('924+221 = 1145')
if num1 == 924 and sign == '+' and num2 == 222:
print('924+222 = 1146')
if num1 == 924 and sign == '+' and num2 == 223:
print('924+223 = 1147')
if num1 == 924 and sign == '+' and num2 == 224:
print('924+224 = 1148')
if num1 == 924 and sign == '+' and num2 == 225:
print('924+225 = 1149')
if num1 == 924 and sign == '+' and num2 == 226:
print('924+226 = 1150')
if num1 == 924 and sign == '+' and num2 == 227:
print('924+227 = 1151')
if num1 == 924 and sign == '+' and num2 == 228:
print('924+228 = 1152')
if num1 == 924 and sign == '+' and num2 == 229:
print('924+229 = 1153')
if num1 == 924 and sign == '+' and num2 == 230:
print('924+230 = 1154')
if num1 == 924 and sign == '+' and num2 == 231:
print('924+231 = 1155')
if num1 == 924 and sign == '+' and num2 == 232:
print('924+232 = 1156')
if num1 == 924 and sign == '+' and num2 == 233:
print('924+233 = 1157')
if num1 == 924 and sign == '+' and num2 == 234:
print('924+234 = 1158')
if num1 == 924 and sign == '+' and num2 == 235:
print('924+235 = 1159')
if num1 == 924 and sign == '+' and num2 == 236:
print('924+236 = 1160')
if num1 == 924 and sign == '+' and num2 == 237:
print('924+237 = 1161')
if num1 == 924 and sign == '+' and num2 == 238:
print('924+238 = 1162')
if num1 == 924 and sign == '+' and num2 == 239:
print('924+239 = 1163')
if num1 == 924 and sign == '+' and num2 == 240:
print('924+240 = 1164')
if num1 == 924 and sign == '+' and num2 == 241:
print('924+241 = 1165')
if num1 == 924 and sign == '+' and num2 == 242:
print('924+242 = 1166')
if num1 == 924 and sign == '+' and num2 == 243:
print('924+243 = 1167')
if num1 == 924 and sign == '+' and num2 == 244:
print('924+244 = 1168')
if num1 == 924 and sign == '+' and num2 == 245:
print('924+245 = 1169')
if num1 == 924 and sign == '+' and num2 == 246:
print('924+246 = 1170')
if num1 == 924 and sign == '+' and num2 == 247:
print('924+247 = 1171')
if num1 == 924 and sign == '+' and num2 == 248:
print('924+248 = 1172')
if num1 == 924 and sign == '+' and num2 == 249:
print('924+249 = 1173')
if num1 == 925 and sign == '+' and num2 == 200:
print('925+200 = 1125')
if num1 == 925 and sign == '+' and num2 == 201:
print('925+201 = 1126')
if num1 == 925 and sign == '+' and num2 == 202:
print('925+202 = 1127')
if num1 == 925 and sign == '+' and num2 == 203:
print('925+203 = 1128')
if num1 == 925 and sign == '+' and num2 == 204:
print('925+204 = 1129')
if num1 == 925 and sign == '+' and num2 == 205:
print('925+205 = 1130')
if num1 == 925 and sign == '+' and num2 == 206:
print('925+206 = 1131')
if num1 == 925 and sign == '+' and num2 == 207:
print('925+207 = 1132')
if num1 == 925 and sign == '+' and num2 == 208:
print('925+208 = 1133')
if num1 == 925 and sign == '+' and num2 == 209:
print('925+209 = 1134')
if num1 == 925 and sign == '+' and num2 == 210:
print('925+210 = 1135')
if num1 == 925 and sign == '+' and num2 == 211:
print('925+211 = 1136')
if num1 == 925 and sign == '+' and num2 == 212:
print('925+212 = 1137')
if num1 == 925 and sign == '+' and num2 == 213:
print('925+213 = 1138')
if num1 == 925 and sign == '+' and num2 == 214:
print('925+214 = 1139')
if num1 == 925 and sign == '+' and num2 == 215:
print('925+215 = 1140')
if num1 == 925 and sign == '+' and num2 == 216:
print('925+216 = 1141')
if num1 == 925 and sign == '+' and num2 == 217:
print('925+217 = 1142')
if num1 == 925 and sign == '+' and num2 == 218:
print('925+218 = 1143')
if num1 == 925 and sign == '+' and num2 == 219:
print('925+219 = 1144')
if num1 == 925 and sign == '+' and num2 == 220:
print('925+220 = 1145')
if num1 == 925 and sign == '+' and num2 == 221:
print('925+221 = 1146')
if num1 == 925 and sign == '+' and num2 == 222:
print('925+222 = 1147')
if num1 == 925 and sign == '+' and num2 == 223:
print('925+223 = 1148')
if num1 == 925 and sign == '+' and num2 == 224:
print('925+224 = 1149')
if num1 == 925 and sign == '+' and num2 == 225:
print('925+225 = 1150')
if num1 == 925 and sign == '+' and num2 == 226:
print('925+226 = 1151')
if num1 == 925 and sign == '+' and num2 == 227:
print('925+227 = 1152')
if num1 == 925 and sign == '+' and num2 == 228:
print('925+228 = 1153')
if num1 == 925 and sign == '+' and num2 == 229:
print('925+229 = 1154')
if num1 == 925 and sign == '+' and num2 == 230:
print('925+230 = 1155')
if num1 == 925 and sign == '+' and num2 == 231:
print('925+231 = 1156')
if num1 == 925 and sign == '+' and num2 == 232:
print('925+232 = 1157')
if num1 == 925 and sign == '+' and num2 == 233:
print('925+233 = 1158')
if num1 == 925 and sign == '+' and num2 == 234:
print('925+234 = 1159')
if num1 == 925 and sign == '+' and num2 == 235:
print('925+235 = 1160')
if num1 == 925 and sign == '+' and num2 == 236:
print('925+236 = 1161')
if num1 == 925 and sign == '+' and num2 == 237:
print('925+237 = 1162')
if num1 == 925 and sign == '+' and num2 == 238:
print('925+238 = 1163')
if num1 == 925 and sign == '+' and num2 == 239:
print('925+239 = 1164')
if num1 == 925 and sign == '+' and num2 == 240:
print('925+240 = 1165')
if num1 == 925 and sign == '+' and num2 == 241:
print('925+241 = 1166')
if num1 == 925 and sign == '+' and num2 == 242:
print('925+242 = 1167')
if num1 == 925 and sign == '+' and num2 == 243:
print('925+243 = 1168')
if num1 == 925 and sign == '+' and num2 == 244:
print('925+244 = 1169')
if num1 == 925 and sign == '+' and num2 == 245:
print('925+245 = 1170')
if num1 == 925 and sign == '+' and num2 == 246:
print('925+246 = 1171')
if num1 == 925 and sign == '+' and num2 == 247:
print('925+247 = 1172')
if num1 == 925 and sign == '+' and num2 == 248:
print('925+248 = 1173')
if num1 == 925 and sign == '+' and num2 == 249:
print('925+249 = 1174')
if num1 == 926 and sign == '+' and num2 == 200:
print('926+200 = 1126')
if num1 == 926 and sign == '+' and num2 == 201:
print('926+201 = 1127')
if num1 == 926 and sign == '+' and num2 == 202:
print('926+202 = 1128')
if num1 == 926 and sign == '+' and num2 == 203:
print('926+203 = 1129')
if num1 == 926 and sign == '+' and num2 == 204:
print('926+204 = 1130')
if num1 == 926 and sign == '+' and num2 == 205:
print('926+205 = 1131')
if num1 == 926 and sign == '+' and num2 == 206:
print('926+206 = 1132')
if num1 == 926 and sign == '+' and num2 == 207:
print('926+207 = 1133')
if num1 == 926 and sign == '+' and num2 == 208:
print('926+208 = 1134')
if num1 == 926 and sign == '+' and num2 == 209:
print('926+209 = 1135')
if num1 == 926 and sign == '+' and num2 == 210:
print('926+210 = 1136')
if num1 == 926 and sign == '+' and num2 == 211:
print('926+211 = 1137')
if num1 == 926 and sign == '+' and num2 == 212:
print('926+212 = 1138')
if num1 == 926 and sign == '+' and num2 == 213:
print('926+213 = 1139')
if num1 == 926 and sign == '+' and num2 == 214:
print('926+214 = 1140')
if num1 == 926 and sign == '+' and num2 == 215:
print('926+215 = 1141')
if num1 == 926 and sign == '+' and num2 == 216:
print('926+216 = 1142')
if num1 == 926 and sign == '+' and num2 == 217:
print('926+217 = 1143')
if num1 == 926 and sign == '+' and num2 == 218:
print('926+218 = 1144')
if num1 == 926 and sign == '+' and num2 == 219:
print('926+219 = 1145')
if num1 == 926 and sign == '+' and num2 == 220:
print('926+220 = 1146')
if num1 == 926 and sign == '+' and num2 == 221:
print('926+221 = 1147')
if num1 == 926 and sign == '+' and num2 == 222:
print('926+222 = 1148')
if num1 == 926 and sign == '+' and num2 == 223:
print('926+223 = 1149')
if num1 == 926 and sign == '+' and num2 == 224:
print('926+224 = 1150')
if num1 == 926 and sign == '+' and num2 == 225:
print('926+225 = 1151')
if num1 == 926 and sign == '+' and num2 == 226:
print('926+226 = 1152')
if num1 == 926 and sign == '+' and num2 == 227:
print('926+227 = 1153')
if num1 == 926 and sign == '+' and num2 == 228:
print('926+228 = 1154')
if num1 == 926 and sign == '+' and num2 == 229:
print('926+229 = 1155')
if num1 == 926 and sign == '+' and num2 == 230:
print('926+230 = 1156')
if num1 == 926 and sign == '+' and num2 == 231:
print('926+231 = 1157')
if num1 == 926 and sign == '+' and num2 == 232:
print('926+232 = 1158')
if num1 == 926 and sign == '+' and num2 == 233:
print('926+233 = 1159')
if num1 == 926 and sign == '+' and num2 == 234:
print('926+234 = 1160')
if num1 == 926 and sign == '+' and num2 == 235:
print('926+235 = 1161')
if num1 == 926 and sign == '+' and num2 == 236:
print('926+236 = 1162')
if num1 == 926 and sign == '+' and num2 == 237:
print('926+237 = 1163')
if num1 == 926 and sign == '+' and num2 == 238:
print('926+238 = 1164')
if num1 == 926 and sign == '+' and num2 == 239:
print('926+239 = 1165')
if num1 == 926 and sign == '+' and num2 == 240:
print('926+240 = 1166')
if num1 == 926 and sign == '+' and num2 == 241:
print('926+241 = 1167')
if num1 == 926 and sign == '+' and num2 == 242:
print('926+242 = 1168')
if num1 == 926 and sign == '+' and num2 == 243:
print('926+243 = 1169')
if num1 == 926 and sign == '+' and num2 == 244:
print('926+244 = 1170')
if num1 == 926 and sign == '+' and num2 == 245:
print('926+245 = 1171')
if num1 == 926 and sign == '+' and num2 == 246:
print('926+246 = 1172')
if num1 == 926 and sign == '+' and num2 == 247:
print('926+247 = 1173')
if num1 == 926 and sign == '+' and num2 == 248:
print('926+248 = 1174')
if num1 == 926 and sign == '+' and num2 == 249:
print('926+249 = 1175')
if num1 == 927 and sign == '+' and num2 == 200:
print('927+200 = 1127')
if num1 == 927 and sign == '+' and num2 == 201:
print('927+201 = 1128')
if num1 == 927 and sign == '+' and num2 == 202:
print('927+202 = 1129')
if num1 == 927 and sign == '+' and num2 == 203:
print('927+203 = 1130')
if num1 == 927 and sign == '+' and num2 == 204:
print('927+204 = 1131')
if num1 == 927 and sign == '+' and num2 == 205:
print('927+205 = 1132')
if num1 == 927 and sign == '+' and num2 == 206:
print('927+206 = 1133')
if num1 == 927 and sign == '+' and num2 == 207:
print('927+207 = 1134')
if num1 == 927 and sign == '+' and num2 == 208:
print('927+208 = 1135')
if num1 == 927 and sign == '+' and num2 == 209:
print('927+209 = 1136')
if num1 == 927 and sign == '+' and num2 == 210:
print('927+210 = 1137')
if num1 == 927 and sign == '+' and num2 == 211:
print('927+211 = 1138')
if num1 == 927 and sign == '+' and num2 == 212:
print('927+212 = 1139')
if num1 == 927 and sign == '+' and num2 == 213:
print('927+213 = 1140')
if num1 == 927 and sign == '+' and num2 == 214:
print('927+214 = 1141')
if num1 == 927 and sign == '+' and num2 == 215:
print('927+215 = 1142')
if num1 == 927 and sign == '+' and num2 == 216:
print('927+216 = 1143')
if num1 == 927 and sign == '+' and num2 == 217:
print('927+217 = 1144')
if num1 == 927 and sign == '+' and num2 == 218:
print('927+218 = 1145')
if num1 == 927 and sign == '+' and num2 == 219:
print('927+219 = 1146')
if num1 == 927 and sign == '+' and num2 == 220:
print('927+220 = 1147')
if num1 == 927 and sign == '+' and num2 == 221:
print('927+221 = 1148')
if num1 == 927 and sign == '+' and num2 == 222:
print('927+222 = 1149')
if num1 == 927 and sign == '+' and num2 == 223:
print('927+223 = 1150')
if num1 == 927 and sign == '+' and num2 == 224:
print('927+224 = 1151')
if num1 == 927 and sign == '+' and num2 == 225:
print('927+225 = 1152')
if num1 == 927 and sign == '+' and num2 == 226:
print('927+226 = 1153')
if num1 == 927 and sign == '+' and num2 == 227:
print('927+227 = 1154')
if num1 == 927 and sign == '+' and num2 == 228:
print('927+228 = 1155')
if num1 == 927 and sign == '+' and num2 == 229:
print('927+229 = 1156')
if num1 == 927 and sign == '+' and num2 == 230:
print('927+230 = 1157')
if num1 == 927 and sign == '+' and num2 == 231:
print('927+231 = 1158')
if num1 == 927 and sign == '+' and num2 == 232:
print('927+232 = 1159')
if num1 == 927 and sign == '+' and num2 == 233:
print('927+233 = 1160')
if num1 == 927 and sign == '+' and num2 == 234:
print('927+234 = 1161')
if num1 == 927 and sign == '+' and num2 == 235:
print('927+235 = 1162')
if num1 == 927 and sign == '+' and num2 == 236:
print('927+236 = 1163')
if num1 == 927 and sign == '+' and num2 == 237:
print('927+237 = 1164')
if num1 == 927 and sign == '+' and num2 == 238:
print('927+238 = 1165')
if num1 == 927 and sign == '+' and num2 == 239:
print('927+239 = 1166')
if num1 == 927 and sign == '+' and num2 == 240:
print('927+240 = 1167')
if num1 == 927 and sign == '+' and num2 == 241:
print('927+241 = 1168')
if num1 == 927 and sign == '+' and num2 == 242:
print('927+242 = 1169')
if num1 == 927 and sign == '+' and num2 == 243:
print('927+243 = 1170')
if num1 == 927 and sign == '+' and num2 == 244:
print('927+244 = 1171')
if num1 == 927 and sign == '+' and num2 == 245:
print('927+245 = 1172')
if num1 == 927 and sign == '+' and num2 == 246:
print('927+246 = 1173')
if num1 == 927 and sign == '+' and num2 == 247:
print('927+247 = 1174')
if num1 == 927 and sign == '+' and num2 == 248:
print('927+248 = 1175')
if num1 == 927 and sign == '+' and num2 == 249:
print('927+249 = 1176')
if num1 == 928 and sign == '+' and num2 == 200:
print('928+200 = 1128')
if num1 == 928 and sign == '+' and num2 == 201:
print('928+201 = 1129')
if num1 == 928 and sign == '+' and num2 == 202:
print('928+202 = 1130')
if num1 == 928 and sign == '+' and num2 == 203:
print('928+203 = 1131')
if num1 == 928 and sign == '+' and num2 == 204:
print('928+204 = 1132')
if num1 == 928 and sign == '+' and num2 == 205:
print('928+205 = 1133')
if num1 == 928 and sign == '+' and num2 == 206:
print('928+206 = 1134')
if num1 == 928 and sign == '+' and num2 == 207:
print('928+207 = 1135')
if num1 == 928 and sign == '+' and num2 == 208:
print('928+208 = 1136')
if num1 == 928 and sign == '+' and num2 == 209:
print('928+209 = 1137')
if num1 == 928 and sign == '+' and num2 == 210:
print('928+210 = 1138')
if num1 == 928 and sign == '+' and num2 == 211:
print('928+211 = 1139')
if num1 == 928 and sign == '+' and num2 == 212:
print('928+212 = 1140')
if num1 == 928 and sign == '+' and num2 == 213:
print('928+213 = 1141')
if num1 == 928 and sign == '+' and num2 == 214:
print('928+214 = 1142')
if num1 == 928 and sign == '+' and num2 == 215:
print('928+215 = 1143')
if num1 == 928 and sign == '+' and num2 == 216:
print('928+216 = 1144')
if num1 == 928 and sign == '+' and num2 == 217:
print('928+217 = 1145')
if num1 == 928 and sign == '+' and num2 == 218:
print('928+218 = 1146')
if num1 == 928 and sign == '+' and num2 == 219:
print('928+219 = 1147')
if num1 == 928 and sign == '+' and num2 == 220:
print('928+220 = 1148')
if num1 == 928 and sign == '+' and num2 == 221:
print('928+221 = 1149')
if num1 == 928 and sign == '+' and num2 == 222:
print('928+222 = 1150')
if num1 == 928 and sign == '+' and num2 == 223:
print('928+223 = 1151')
if num1 == 928 and sign == '+' and num2 == 224:
print('928+224 = 1152')
if num1 == 928 and sign == '+' and num2 == 225:
print('928+225 = 1153')
if num1 == 928 and sign == '+' and num2 == 226:
print('928+226 = 1154')
if num1 == 928 and sign == '+' and num2 == 227:
print('928+227 = 1155')
if num1 == 928 and sign == '+' and num2 == 228:
print('928+228 = 1156')
if num1 == 928 and sign == '+' and num2 == 229:
print('928+229 = 1157')
if num1 == 928 and sign == '+' and num2 == 230:
print('928+230 = 1158')
if num1 == 928 and sign == '+' and num2 == 231:
print('928+231 = 1159')
if num1 == 928 and sign == '+' and num2 == 232:
print('928+232 = 1160')
if num1 == 928 and sign == '+' and num2 == 233:
print('928+233 = 1161')
if num1 == 928 and sign == '+' and num2 == 234:
print('928+234 = 1162')
if num1 == 928 and sign == '+' and num2 == 235:
print('928+235 = 1163')
if num1 == 928 and sign == '+' and num2 == 236:
print('928+236 = 1164')
if num1 == 928 and sign == '+' and num2 == 237:
print('928+237 = 1165')
if num1 == 928 and sign == '+' and num2 == 238:
print('928+238 = 1166')
if num1 == 928 and sign == '+' and num2 == 239:
print('928+239 = 1167')
if num1 == 928 and sign == '+' and num2 == 240:
print('928+240 = 1168')
if num1 == 928 and sign == '+' and num2 == 241:
print('928+241 = 1169')
if num1 == 928 and sign == '+' and num2 == 242:
print('928+242 = 1170')
if num1 == 928 and sign == '+' and num2 == 243:
print('928+243 = 1171')
if num1 == 928 and sign == '+' and num2 == 244:
print('928+244 = 1172')
if num1 == 928 and sign == '+' and num2 == 245:
print('928+245 = 1173')
if num1 == 928 and sign == '+' and num2 == 246:
print('928+246 = 1174')
if num1 == 928 and sign == '+' and num2 == 247:
print('928+247 = 1175')
if num1 == 928 and sign == '+' and num2 == 248:
print('928+248 = 1176')
if num1 == 928 and sign == '+' and num2 == 249:
print('928+249 = 1177')
if num1 == 929 and sign == '+' and num2 == 200:
print('929+200 = 1129')
if num1 == 929 and sign == '+' and num2 == 201:
print('929+201 = 1130')
if num1 == 929 and sign == '+' and num2 == 202:
print('929+202 = 1131')
if num1 == 929 and sign == '+' and num2 == 203:
print('929+203 = 1132')
if num1 == 929 and sign == '+' and num2 == 204:
print('929+204 = 1133')
if num1 == 929 and sign == '+' and num2 == 205:
print('929+205 = 1134')
if num1 == 929 and sign == '+' and num2 == 206:
print('929+206 = 1135')
if num1 == 929 and sign == '+' and num2 == 207:
print('929+207 = 1136')
if num1 == 929 and sign == '+' and num2 == 208:
print('929+208 = 1137')
if num1 == 929 and sign == '+' and num2 == 209:
print('929+209 = 1138')
if num1 == 929 and sign == '+' and num2 == 210:
print('929+210 = 1139')
if num1 == 929 and sign == '+' and num2 == 211:
print('929+211 = 1140')
if num1 == 929 and sign == '+' and num2 == 212:
print('929+212 = 1141')
if num1 == 929 and sign == '+' and num2 == 213:
print('929+213 = 1142')
if num1 == 929 and sign == '+' and num2 == 214:
print('929+214 = 1143')
if num1 == 929 and sign == '+' and num2 == 215:
print('929+215 = 1144')
if num1 == 929 and sign == '+' and num2 == 216:
print('929+216 = 1145')
if num1 == 929 and sign == '+' and num2 == 217:
print('929+217 = 1146')
if num1 == 929 and sign == '+' and num2 == 218:
print('929+218 = 1147')
if num1 == 929 and sign == '+' and num2 == 219:
print('929+219 = 1148')
if num1 == 929 and sign == '+' and num2 == 220:
print('929+220 = 1149')
if num1 == 929 and sign == '+' and num2 == 221:
print('929+221 = 1150')
if num1 == 929 and sign == '+' and num2 == 222:
print('929+222 = 1151')
if num1 == 929 and sign == '+' and num2 == 223:
print('929+223 = 1152')
if num1 == 929 and sign == '+' and num2 == 224:
print('929+224 = 1153')
if num1 == 929 and sign == '+' and num2 == 225:
print('929+225 = 1154')
if num1 == 929 and sign == '+' and num2 == 226:
print('929+226 = 1155')
if num1 == 929 and sign == '+' and num2 == 227:
print('929+227 = 1156')
if num1 == 929 and sign == '+' and num2 == 228:
print('929+228 = 1157')
if num1 == 929 and sign == '+' and num2 == 229:
print('929+229 = 1158')
if num1 == 929 and sign == '+' and num2 == 230:
print('929+230 = 1159')
if num1 == 929 and sign == '+' and num2 == 231:
print('929+231 = 1160')
if num1 == 929 and sign == '+' and num2 == 232:
print('929+232 = 1161')
if num1 == 929 and sign == '+' and num2 == 233:
print('929+233 = 1162')
if num1 == 929 and sign == '+' and num2 == 234:
print('929+234 = 1163')
if num1 == 929 and sign == '+' and num2 == 235:
print('929+235 = 1164')
if num1 == 929 and sign == '+' and num2 == 236:
print('929+236 = 1165')
if num1 == 929 and sign == '+' and num2 == 237:
print('929+237 = 1166')
if num1 == 929 and sign == '+' and num2 == 238:
print('929+238 = 1167')
if num1 == 929 and sign == '+' and num2 == 239:
print('929+239 = 1168')
if num1 == 929 and sign == '+' and num2 == 240:
print('929+240 = 1169')
if num1 == 929 and sign == '+' and num2 == 241:
print('929+241 = 1170')
if num1 == 929 and sign == '+' and num2 == 242:
print('929+242 = 1171')
if num1 == 929 and sign == '+' and num2 == 243:
print('929+243 = 1172')
if num1 == 929 and sign == '+' and num2 == 244:
print('929+244 = 1173')
if num1 == 929 and sign == '+' and num2 == 245:
print('929+245 = 1174')
if num1 == 929 and sign == '+' and num2 == 246:
print('929+246 = 1175')
if num1 == 929 and sign == '+' and num2 == 247:
print('929+247 = 1176')
if num1 == 929 and sign == '+' and num2 == 248:
print('929+248 = 1177')
if num1 == 929 and sign == '+' and num2 == 249:
print('929+249 = 1178')
if num1 == 930 and sign == '+' and num2 == 200:
print('930+200 = 1130')
if num1 == 930 and sign == '+' and num2 == 201:
print('930+201 = 1131')
if num1 == 930 and sign == '+' and num2 == 202:
print('930+202 = 1132')
if num1 == 930 and sign == '+' and num2 == 203:
print('930+203 = 1133')
if num1 == 930 and sign == '+' and num2 == 204:
print('930+204 = 1134')
if num1 == 930 and sign == '+' and num2 == 205:
print('930+205 = 1135')
if num1 == 930 and sign == '+' and num2 == 206:
print('930+206 = 1136')
if num1 == 930 and sign == '+' and num2 == 207:
print('930+207 = 1137')
if num1 == 930 and sign == '+' and num2 == 208:
print('930+208 = 1138')
if num1 == 930 and sign == '+' and num2 == 209:
print('930+209 = 1139')
if num1 == 930 and sign == '+' and num2 == 210:
print('930+210 = 1140')
if num1 == 930 and sign == '+' and num2 == 211:
print('930+211 = 1141')
if num1 == 930 and sign == '+' and num2 == 212:
print('930+212 = 1142')
if num1 == 930 and sign == '+' and num2 == 213:
print('930+213 = 1143')
if num1 == 930 and sign == '+' and num2 == 214:
print('930+214 = 1144')
if num1 == 930 and sign == '+' and num2 == 215:
print('930+215 = 1145')
if num1 == 930 and sign == '+' and num2 == 216:
print('930+216 = 1146')
if num1 == 930 and sign == '+' and num2 == 217:
print('930+217 = 1147')
if num1 == 930 and sign == '+' and num2 == 218:
print('930+218 = 1148')
if num1 == 930 and sign == '+' and num2 == 219:
print('930+219 = 1149')
if num1 == 930 and sign == '+' and num2 == 220:
print('930+220 = 1150')
if num1 == 930 and sign == '+' and num2 == 221:
print('930+221 = 1151')
if num1 == 930 and sign == '+' and num2 == 222:
print('930+222 = 1152')
if num1 == 930 and sign == '+' and num2 == 223:
print('930+223 = 1153')
if num1 == 930 and sign == '+' and num2 == 224:
print('930+224 = 1154')
if num1 == 930 and sign == '+' and num2 == 225:
print('930+225 = 1155')
if num1 == 930 and sign == '+' and num2 == 226:
print('930+226 = 1156')
if num1 == 930 and sign == '+' and num2 == 227:
print('930+227 = 1157')
if num1 == 930 and sign == '+' and num2 == 228:
print('930+228 = 1158')
if num1 == 930 and sign == '+' and num2 == 229:
print('930+229 = 1159')
if num1 == 930 and sign == '+' and num2 == 230:
print('930+230 = 1160')
if num1 == 930 and sign == '+' and num2 == 231:
print('930+231 = 1161')
if num1 == 930 and sign == '+' and num2 == 232:
print('930+232 = 1162')
if num1 == 930 and sign == '+' and num2 == 233:
print('930+233 = 1163')
if num1 == 930 and sign == '+' and num2 == 234:
print('930+234 = 1164')
if num1 == 930 and sign == '+' and num2 == 235:
print('930+235 = 1165')
if num1 == 930 and sign == '+' and num2 == 236:
print('930+236 = 1166')
if num1 == 930 and sign == '+' and num2 == 237:
print('930+237 = 1167')
if num1 == 930 and sign == '+' and num2 == 238:
print('930+238 = 1168')
if num1 == 930 and sign == '+' and num2 == 239:
print('930+239 = 1169')
if num1 == 930 and sign == '+' and num2 == 240:
print('930+240 = 1170')
if num1 == 930 and sign == '+' and num2 == 241:
print('930+241 = 1171')
if num1 == 930 and sign == '+' and num2 == 242:
print('930+242 = 1172')
if num1 == 930 and sign == '+' and num2 == 243:
print('930+243 = 1173')
if num1 == 930 and sign == '+' and num2 == 244:
print('930+244 = 1174')
if num1 == 930 and sign == '+' and num2 == 245:
print('930+245 = 1175')
if num1 == 930 and sign == '+' and num2 == 246:
print('930+246 = 1176')
if num1 == 930 and sign == '+' and num2 == 247:
print('930+247 = 1177')
if num1 == 930 and sign == '+' and num2 == 248:
print('930+248 = 1178')
if num1 == 930 and sign == '+' and num2 == 249:
print('930+249 = 1179')
if num1 == 931 and sign == '+' and num2 == 200:
print('931+200 = 1131')
if num1 == 931 and sign == '+' and num2 == 201:
print('931+201 = 1132')
if num1 == 931 and sign == '+' and num2 == 202:
print('931+202 = 1133')
if num1 == 931 and sign == '+' and num2 == 203:
print('931+203 = 1134')
if num1 == 931 and sign == '+' and num2 == 204:
print('931+204 = 1135')
if num1 == 931 and sign == '+' and num2 == 205:
print('931+205 = 1136')
if num1 == 931 and sign == '+' and num2 == 206:
print('931+206 = 1137')
if num1 == 931 and sign == '+' and num2 == 207:
print('931+207 = 1138')
if num1 == 931 and sign == '+' and num2 == 208:
print('931+208 = 1139')
if num1 == 931 and sign == '+' and num2 == 209:
print('931+209 = 1140')
if num1 == 931 and sign == '+' and num2 == 210:
print('931+210 = 1141')
if num1 == 931 and sign == '+' and num2 == 211:
print('931+211 = 1142')
if num1 == 931 and sign == '+' and num2 == 212:
print('931+212 = 1143')
if num1 == 931 and sign == '+' and num2 == 213:
print('931+213 = 1144')
if num1 == 931 and sign == '+' and num2 == 214:
print('931+214 = 1145')
if num1 == 931 and sign == '+' and num2 == 215:
print('931+215 = 1146')
if num1 == 931 and sign == '+' and num2 == 216:
print('931+216 = 1147')
if num1 == 931 and sign == '+' and num2 == 217:
print('931+217 = 1148')
if num1 == 931 and sign == '+' and num2 == 218:
print('931+218 = 1149')
if num1 == 931 and sign == '+' and num2 == 219:
print('931+219 = 1150')
if num1 == 931 and sign == '+' and num2 == 220:
print('931+220 = 1151')
if num1 == 931 and sign == '+' and num2 == 221:
print('931+221 = 1152')
if num1 == 931 and sign == '+' and num2 == 222:
print('931+222 = 1153')
if num1 == 931 and sign == '+' and num2 == 223:
print('931+223 = 1154')
if num1 == 931 and sign == '+' and num2 == 224:
print('931+224 = 1155')
if num1 == 931 and sign == '+' and num2 == 225:
print('931+225 = 1156')
if num1 == 931 and sign == '+' and num2 == 226:
print('931+226 = 1157')
if num1 == 931 and sign == '+' and num2 == 227:
print('931+227 = 1158')
if num1 == 931 and sign == '+' and num2 == 228:
print('931+228 = 1159')
if num1 == 931 and sign == '+' and num2 == 229:
print('931+229 = 1160')
if num1 == 931 and sign == '+' and num2 == 230:
print('931+230 = 1161')
if num1 == 931 and sign == '+' and num2 == 231:
print('931+231 = 1162')
if num1 == 931 and sign == '+' and num2 == 232:
print('931+232 = 1163')
if num1 == 931 and sign == '+' and num2 == 233:
print('931+233 = 1164')
if num1 == 931 and sign == '+' and num2 == 234:
print('931+234 = 1165')
if num1 == 931 and sign == '+' and num2 == 235:
print('931+235 = 1166')
if num1 == 931 and sign == '+' and num2 == 236:
print('931+236 = 1167')
if num1 == 931 and sign == '+' and num2 == 237:
print('931+237 = 1168')
if num1 == 931 and sign == '+' and num2 == 238:
print('931+238 = 1169')
if num1 == 931 and sign == '+' and num2 == 239:
print('931+239 = 1170')
if num1 == 931 and sign == '+' and num2 == 240:
print('931+240 = 1171')
if num1 == 931 and sign == '+' and num2 == 241:
print('931+241 = 1172')
if num1 == 931 and sign == '+' and num2 == 242:
print('931+242 = 1173')
if num1 == 931 and sign == '+' and num2 == 243:
print('931+243 = 1174')
if num1 == 931 and sign == '+' and num2 == 244:
print('931+244 = 1175')
if num1 == 931 and sign == '+' and num2 == 245:
print('931+245 = 1176')
if num1 == 931 and sign == '+' and num2 == 246:
print('931+246 = 1177')
if num1 == 931 and sign == '+' and num2 == 247:
print('931+247 = 1178')
if num1 == 931 and sign == '+' and num2 == 248:
print('931+248 = 1179')
if num1 == 931 and sign == '+' and num2 == 249:
print('931+249 = 1180')
if num1 == 932 and sign == '+' and num2 == 200:
print('932+200 = 1132')
if num1 == 932 and sign == '+' and num2 == 201:
print('932+201 = 1133')
if num1 == 932 and sign == '+' and num2 == 202:
print('932+202 = 1134')
if num1 == 932 and sign == '+' and num2 == 203:
print('932+203 = 1135')
if num1 == 932 and sign == '+' and num2 == 204:
print('932+204 = 1136')
if num1 == 932 and sign == '+' and num2 == 205:
print('932+205 = 1137')
if num1 == 932 and sign == '+' and num2 == 206:
print('932+206 = 1138')
if num1 == 932 and sign == '+' and num2 == 207:
print('932+207 = 1139')
if num1 == 932 and sign == '+' and num2 == 208:
print('932+208 = 1140')
if num1 == 932 and sign == '+' and num2 == 209:
print('932+209 = 1141')
if num1 == 932 and sign == '+' and num2 == 210:
print('932+210 = 1142')
if num1 == 932 and sign == '+' and num2 == 211:
print('932+211 = 1143')
if num1 == 932 and sign == '+' and num2 == 212:
print('932+212 = 1144')
if num1 == 932 and sign == '+' and num2 == 213:
print('932+213 = 1145')
if num1 == 932 and sign == '+' and num2 == 214:
print('932+214 = 1146')
if num1 == 932 and sign == '+' and num2 == 215:
print('932+215 = 1147')
if num1 == 932 and sign == '+' and num2 == 216:
print('932+216 = 1148')
if num1 == 932 and sign == '+' and num2 == 217:
print('932+217 = 1149')
if num1 == 932 and sign == '+' and num2 == 218:
print('932+218 = 1150')
if num1 == 932 and sign == '+' and num2 == 219:
print('932+219 = 1151')
if num1 == 932 and sign == '+' and num2 == 220:
print('932+220 = 1152')
if num1 == 932 and sign == '+' and num2 == 221:
print('932+221 = 1153')
if num1 == 932 and sign == '+' and num2 == 222:
print('932+222 = 1154')
if num1 == 932 and sign == '+' and num2 == 223:
print('932+223 = 1155')
if num1 == 932 and sign == '+' and num2 == 224:
print('932+224 = 1156')
if num1 == 932 and sign == '+' and num2 == 225:
print('932+225 = 1157')
if num1 == 932 and sign == '+' and num2 == 226:
print('932+226 = 1158')
if num1 == 932 and sign == '+' and num2 == 227:
print('932+227 = 1159')
if num1 == 932 and sign == '+' and num2 == 228:
print('932+228 = 1160')
if num1 == 932 and sign == '+' and num2 == 229:
print('932+229 = 1161')
if num1 == 932 and sign == '+' and num2 == 230:
print('932+230 = 1162')
if num1 == 932 and sign == '+' and num2 == 231:
print('932+231 = 1163')
if num1 == 932 and sign == '+' and num2 == 232:
print('932+232 = 1164')
if num1 == 932 and sign == '+' and num2 == 233:
print('932+233 = 1165')
if num1 == 932 and sign == '+' and num2 == 234:
print('932+234 = 1166')
if num1 == 932 and sign == '+' and num2 == 235:
print('932+235 = 1167')
if num1 == 932 and sign == '+' and num2 == 236:
print('932+236 = 1168')
if num1 == 932 and sign == '+' and num2 == 237:
print('932+237 = 1169')
if num1 == 932 and sign == '+' and num2 == 238:
print('932+238 = 1170')
if num1 == 932 and sign == '+' and num2 == 239:
print('932+239 = 1171')
if num1 == 932 and sign == '+' and num2 == 240:
print('932+240 = 1172')
if num1 == 932 and sign == '+' and num2 == 241:
print('932+241 = 1173')
if num1 == 932 and sign == '+' and num2 == 242:
print('932+242 = 1174')
if num1 == 932 and sign == '+' and num2 == 243:
print('932+243 = 1175')
if num1 == 932 and sign == '+' and num2 == 244:
print('932+244 = 1176')
if num1 == 932 and sign == '+' and num2 == 245:
print('932+245 = 1177')
if num1 == 932 and sign == '+' and num2 == 246:
print('932+246 = 1178')
if num1 == 932 and sign == '+' and num2 == 247:
print('932+247 = 1179')
if num1 == 932 and sign == '+' and num2 == 248:
print('932+248 = 1180')
if num1 == 932 and sign == '+' and num2 == 249:
print('932+249 = 1181')
if num1 == 933 and sign == '+' and num2 == 200:
print('933+200 = 1133')
if num1 == 933 and sign == '+' and num2 == 201:
print('933+201 = 1134')
if num1 == 933 and sign == '+' and num2 == 202:
print('933+202 = 1135')
if num1 == 933 and sign == '+' and num2 == 203:
print('933+203 = 1136')
if num1 == 933 and sign == '+' and num2 == 204:
print('933+204 = 1137')
if num1 == 933 and sign == '+' and num2 == 205:
print('933+205 = 1138')
if num1 == 933 and sign == '+' and num2 == 206:
print('933+206 = 1139')
if num1 == 933 and sign == '+' and num2 == 207:
print('933+207 = 1140')
if num1 == 933 and sign == '+' and num2 == 208:
print('933+208 = 1141')
if num1 == 933 and sign == '+' and num2 == 209:
print('933+209 = 1142')
if num1 == 933 and sign == '+' and num2 == 210:
print('933+210 = 1143')
if num1 == 933 and sign == '+' and num2 == 211:
print('933+211 = 1144')
if num1 == 933 and sign == '+' and num2 == 212:
print('933+212 = 1145')
if num1 == 933 and sign == '+' and num2 == 213:
print('933+213 = 1146')
if num1 == 933 and sign == '+' and num2 == 214:
print('933+214 = 1147')
if num1 == 933 and sign == '+' and num2 == 215:
print('933+215 = 1148')
if num1 == 933 and sign == '+' and num2 == 216:
print('933+216 = 1149')
if num1 == 933 and sign == '+' and num2 == 217:
print('933+217 = 1150')
if num1 == 933 and sign == '+' and num2 == 218:
print('933+218 = 1151')
if num1 == 933 and sign == '+' and num2 == 219:
print('933+219 = 1152')
if num1 == 933 and sign == '+' and num2 == 220:
print('933+220 = 1153')
if num1 == 933 and sign == '+' and num2 == 221:
print('933+221 = 1154')
if num1 == 933 and sign == '+' and num2 == 222:
print('933+222 = 1155')
if num1 == 933 and sign == '+' and num2 == 223:
print('933+223 = 1156')
if num1 == 933 and sign == '+' and num2 == 224:
print('933+224 = 1157')
if num1 == 933 and sign == '+' and num2 == 225:
print('933+225 = 1158')
if num1 == 933 and sign == '+' and num2 == 226:
print('933+226 = 1159')
if num1 == 933 and sign == '+' and num2 == 227:
print('933+227 = 1160')
if num1 == 933 and sign == '+' and num2 == 228:
print('933+228 = 1161')
if num1 == 933 and sign == '+' and num2 == 229:
print('933+229 = 1162')
if num1 == 933 and sign == '+' and num2 == 230:
print('933+230 = 1163')
if num1 == 933 and sign == '+' and num2 == 231:
print('933+231 = 1164')
if num1 == 933 and sign == '+' and num2 == 232:
print('933+232 = 1165')
if num1 == 933 and sign == '+' and num2 == 233:
print('933+233 = 1166')
if num1 == 933 and sign == '+' and num2 == 234:
print('933+234 = 1167')
if num1 == 933 and sign == '+' and num2 == 235:
print('933+235 = 1168')
if num1 == 933 and sign == '+' and num2 == 236:
print('933+236 = 1169')
if num1 == 933 and sign == '+' and num2 == 237:
print('933+237 = 1170')
if num1 == 933 and sign == '+' and num2 == 238:
print('933+238 = 1171')
if num1 == 933 and sign == '+' and num2 == 239:
print('933+239 = 1172')
if num1 == 933 and sign == '+' and num2 == 240:
print('933+240 = 1173')
if num1 == 933 and sign == '+' and num2 == 241:
print('933+241 = 1174')
if num1 == 933 and sign == '+' and num2 == 242:
print('933+242 = 1175')
if num1 == 933 and sign == '+' and num2 == 243:
print('933+243 = 1176')
if num1 == 933 and sign == '+' and num2 == 244:
print('933+244 = 1177')
if num1 == 933 and sign == '+' and num2 == 245:
print('933+245 = 1178')
if num1 == 933 and sign == '+' and num2 == 246:
print('933+246 = 1179')
if num1 == 933 and sign == '+' and num2 == 247:
print('933+247 = 1180')
if num1 == 933 and sign == '+' and num2 == 248:
print('933+248 = 1181')
if num1 == 933 and sign == '+' and num2 == 249:
print('933+249 = 1182')
if num1 == 934 and sign == '+' and num2 == 200:
print('934+200 = 1134')
if num1 == 934 and sign == '+' and num2 == 201:
print('934+201 = 1135')
if num1 == 934 and sign == '+' and num2 == 202:
print('934+202 = 1136')
if num1 == 934 and sign == '+' and num2 == 203:
print('934+203 = 1137')
if num1 == 934 and sign == '+' and num2 == 204:
print('934+204 = 1138')
if num1 == 934 and sign == '+' and num2 == 205:
print('934+205 = 1139')
if num1 == 934 and sign == '+' and num2 == 206:
print('934+206 = 1140')
if num1 == 934 and sign == '+' and num2 == 207:
print('934+207 = 1141')
if num1 == 934 and sign == '+' and num2 == 208:
print('934+208 = 1142')
if num1 == 934 and sign == '+' and num2 == 209:
print('934+209 = 1143')
if num1 == 934 and sign == '+' and num2 == 210:
print('934+210 = 1144')
if num1 == 934 and sign == '+' and num2 == 211:
print('934+211 = 1145')
if num1 == 934 and sign == '+' and num2 == 212:
print('934+212 = 1146')
if num1 == 934 and sign == '+' and num2 == 213:
print('934+213 = 1147')
if num1 == 934 and sign == '+' and num2 == 214:
print('934+214 = 1148')
if num1 == 934 and sign == '+' and num2 == 215:
print('934+215 = 1149')
if num1 == 934 and sign == '+' and num2 == 216:
print('934+216 = 1150')
if num1 == 934 and sign == '+' and num2 == 217:
print('934+217 = 1151')
if num1 == 934 and sign == '+' and num2 == 218:
print('934+218 = 1152')
if num1 == 934 and sign == '+' and num2 == 219:
print('934+219 = 1153')
if num1 == 934 and sign == '+' and num2 == 220:
print('934+220 = 1154')
if num1 == 934 and sign == '+' and num2 == 221:
print('934+221 = 1155')
if num1 == 934 and sign == '+' and num2 == 222:
print('934+222 = 1156')
if num1 == 934 and sign == '+' and num2 == 223:
print('934+223 = 1157')
if num1 == 934 and sign == '+' and num2 == 224:
print('934+224 = 1158')
if num1 == 934 and sign == '+' and num2 == 225:
print('934+225 = 1159')
if num1 == 934 and sign == '+' and num2 == 226:
print('934+226 = 1160')
if num1 == 934 and sign == '+' and num2 == 227:
print('934+227 = 1161')
if num1 == 934 and sign == '+' and num2 == 228:
print('934+228 = 1162')
if num1 == 934 and sign == '+' and num2 == 229:
print('934+229 = 1163')
if num1 == 934 and sign == '+' and num2 == 230:
print('934+230 = 1164')
if num1 == 934 and sign == '+' and num2 == 231:
print('934+231 = 1165')
if num1 == 934 and sign == '+' and num2 == 232:
print('934+232 = 1166')
if num1 == 934 and sign == '+' and num2 == 233:
print('934+233 = 1167')
if num1 == 934 and sign == '+' and num2 == 234:
print('934+234 = 1168')
if num1 == 934 and sign == '+' and num2 == 235:
print('934+235 = 1169')
if num1 == 934 and sign == '+' and num2 == 236:
print('934+236 = 1170')
if num1 == 934 and sign == '+' and num2 == 237:
print('934+237 = 1171')
if num1 == 934 and sign == '+' and num2 == 238:
print('934+238 = 1172')
if num1 == 934 and sign == '+' and num2 == 239:
print('934+239 = 1173')
if num1 == 934 and sign == '+' and num2 == 240:
print('934+240 = 1174')
if num1 == 934 and sign == '+' and num2 == 241:
print('934+241 = 1175')
if num1 == 934 and sign == '+' and num2 == 242:
print('934+242 = 1176')
if num1 == 934 and sign == '+' and num2 == 243:
print('934+243 = 1177')
if num1 == 934 and sign == '+' and num2 == 244:
print('934+244 = 1178')
if num1 == 934 and sign == '+' and num2 == 245:
print('934+245 = 1179')
if num1 == 934 and sign == '+' and num2 == 246:
print('934+246 = 1180')
if num1 == 934 and sign == '+' and num2 == 247:
print('934+247 = 1181')
if num1 == 934 and sign == '+' and num2 == 248:
print('934+248 = 1182')
if num1 == 934 and sign == '+' and num2 == 249:
print('934+249 = 1183')
if num1 == 935 and sign == '+' and num2 == 200:
print('935+200 = 1135')
if num1 == 935 and sign == '+' and num2 == 201:
print('935+201 = 1136')
if num1 == 935 and sign == '+' and num2 == 202:
print('935+202 = 1137')
if num1 == 935 and sign == '+' and num2 == 203:
print('935+203 = 1138')
if num1 == 935 and sign == '+' and num2 == 204:
print('935+204 = 1139')
if num1 == 935 and sign == '+' and num2 == 205:
print('935+205 = 1140')
if num1 == 935 and sign == '+' and num2 == 206:
print('935+206 = 1141')
if num1 == 935 and sign == '+' and num2 == 207:
print('935+207 = 1142')
if num1 == 935 and sign == '+' and num2 == 208:
print('935+208 = 1143')
if num1 == 935 and sign == '+' and num2 == 209:
print('935+209 = 1144')
if num1 == 935 and sign == '+' and num2 == 210:
print('935+210 = 1145')
if num1 == 935 and sign == '+' and num2 == 211:
print('935+211 = 1146')
if num1 == 935 and sign == '+' and num2 == 212:
print('935+212 = 1147')
if num1 == 935 and sign == '+' and num2 == 213:
print('935+213 = 1148')
if num1 == 935 and sign == '+' and num2 == 214:
print('935+214 = 1149')
if num1 == 935 and sign == '+' and num2 == 215:
print('935+215 = 1150')
if num1 == 935 and sign == '+' and num2 == 216:
print('935+216 = 1151')
if num1 == 935 and sign == '+' and num2 == 217:
print('935+217 = 1152')
if num1 == 935 and sign == '+' and num2 == 218:
print('935+218 = 1153')
if num1 == 935 and sign == '+' and num2 == 219:
print('935+219 = 1154')
if num1 == 935 and sign == '+' and num2 == 220:
print('935+220 = 1155')
if num1 == 935 and sign == '+' and num2 == 221:
print('935+221 = 1156')
if num1 == 935 and sign == '+' and num2 == 222:
print('935+222 = 1157')
if num1 == 935 and sign == '+' and num2 == 223:
print('935+223 = 1158')
if num1 == 935 and sign == '+' and num2 == 224:
print('935+224 = 1159')
if num1 == 935 and sign == '+' and num2 == 225:
print('935+225 = 1160')
if num1 == 935 and sign == '+' and num2 == 226:
print('935+226 = 1161')
if num1 == 935 and sign == '+' and num2 == 227:
print('935+227 = 1162')
if num1 == 935 and sign == '+' and num2 == 228:
print('935+228 = 1163')
if num1 == 935 and sign == '+' and num2 == 229:
print('935+229 = 1164')
if num1 == 935 and sign == '+' and num2 == 230:
print('935+230 = 1165')
if num1 == 935 and sign == '+' and num2 == 231:
print('935+231 = 1166')
if num1 == 935 and sign == '+' and num2 == 232:
print('935+232 = 1167')
if num1 == 935 and sign == '+' and num2 == 233:
print('935+233 = 1168')
if num1 == 935 and sign == '+' and num2 == 234:
print('935+234 = 1169')
if num1 == 935 and sign == '+' and num2 == 235:
print('935+235 = 1170')
if num1 == 935 and sign == '+' and num2 == 236:
print('935+236 = 1171')
if num1 == 935 and sign == '+' and num2 == 237:
print('935+237 = 1172')
if num1 == 935 and sign == '+' and num2 == 238:
print('935+238 = 1173')
if num1 == 935 and sign == '+' and num2 == 239:
print('935+239 = 1174')
if num1 == 935 and sign == '+' and num2 == 240:
print('935+240 = 1175')
if num1 == 935 and sign == '+' and num2 == 241:
print('935+241 = 1176')
if num1 == 935 and sign == '+' and num2 == 242:
print('935+242 = 1177')
if num1 == 935 and sign == '+' and num2 == 243:
print('935+243 = 1178')
if num1 == 935 and sign == '+' and num2 == 244:
print('935+244 = 1179')
if num1 == 935 and sign == '+' and num2 == 245:
print('935+245 = 1180')
if num1 == 935 and sign == '+' and num2 == 246:
print('935+246 = 1181')
if num1 == 935 and sign == '+' and num2 == 247:
print('935+247 = 1182')
if num1 == 935 and sign == '+' and num2 == 248:
print('935+248 = 1183')
if num1 == 935 and sign == '+' and num2 == 249:
print('935+249 = 1184')
if num1 == 936 and sign == '+' and num2 == 200:
print('936+200 = 1136')
if num1 == 936 and sign == '+' and num2 == 201:
print('936+201 = 1137')
if num1 == 936 and sign == '+' and num2 == 202:
print('936+202 = 1138')
if num1 == 936 and sign == '+' and num2 == 203:
print('936+203 = 1139')
if num1 == 936 and sign == '+' and num2 == 204:
print('936+204 = 1140')
if num1 == 936 and sign == '+' and num2 == 205:
print('936+205 = 1141')
if num1 == 936 and sign == '+' and num2 == 206:
print('936+206 = 1142')
if num1 == 936 and sign == '+' and num2 == 207:
print('936+207 = 1143')
if num1 == 936 and sign == '+' and num2 == 208:
print('936+208 = 1144')
if num1 == 936 and sign == '+' and num2 == 209:
print('936+209 = 1145')
if num1 == 936 and sign == '+' and num2 == 210:
print('936+210 = 1146')
if num1 == 936 and sign == '+' and num2 == 211:
print('936+211 = 1147')
if num1 == 936 and sign == '+' and num2 == 212:
print('936+212 = 1148')
if num1 == 936 and sign == '+' and num2 == 213:
print('936+213 = 1149')
if num1 == 936 and sign == '+' and num2 == 214:
print('936+214 = 1150')
if num1 == 936 and sign == '+' and num2 == 215:
print('936+215 = 1151')
if num1 == 936 and sign == '+' and num2 == 216:
print('936+216 = 1152')
if num1 == 936 and sign == '+' and num2 == 217:
print('936+217 = 1153')
if num1 == 936 and sign == '+' and num2 == 218:
print('936+218 = 1154')
if num1 == 936 and sign == '+' and num2 == 219:
print('936+219 = 1155')
if num1 == 936 and sign == '+' and num2 == 220:
print('936+220 = 1156')
if num1 == 936 and sign == '+' and num2 == 221:
print('936+221 = 1157')
if num1 == 936 and sign == '+' and num2 == 222:
print('936+222 = 1158')
if num1 == 936 and sign == '+' and num2 == 223:
print('936+223 = 1159')
if num1 == 936 and sign == '+' and num2 == 224:
print('936+224 = 1160')
if num1 == 936 and sign == '+' and num2 == 225:
print('936+225 = 1161')
if num1 == 936 and sign == '+' and num2 == 226:
print('936+226 = 1162')
if num1 == 936 and sign == '+' and num2 == 227:
print('936+227 = 1163')
if num1 == 936 and sign == '+' and num2 == 228:
print('936+228 = 1164')
if num1 == 936 and sign == '+' and num2 == 229:
print('936+229 = 1165')
if num1 == 936 and sign == '+' and num2 == 230:
print('936+230 = 1166')
if num1 == 936 and sign == '+' and num2 == 231:
print('936+231 = 1167')
if num1 == 936 and sign == '+' and num2 == 232:
print('936+232 = 1168')
if num1 == 936 and sign == '+' and num2 == 233:
print('936+233 = 1169')
if num1 == 936 and sign == '+' and num2 == 234:
print('936+234 = 1170')
if num1 == 936 and sign == '+' and num2 == 235:
print('936+235 = 1171')
if num1 == 936 and sign == '+' and num2 == 236:
print('936+236 = 1172')
if num1 == 936 and sign == '+' and num2 == 237:
print('936+237 = 1173')
if num1 == 936 and sign == '+' and num2 == 238:
print('936+238 = 1174')
if num1 == 936 and sign == '+' and num2 == 239:
print('936+239 = 1175')
if num1 == 936 and sign == '+' and num2 == 240:
print('936+240 = 1176')
if num1 == 936 and sign == '+' and num2 == 241:
print('936+241 = 1177')
if num1 == 936 and sign == '+' and num2 == 242:
print('936+242 = 1178')
if num1 == 936 and sign == '+' and num2 == 243:
print('936+243 = 1179')
if num1 == 936 and sign == '+' and num2 == 244:
print('936+244 = 1180')
if num1 == 936 and sign == '+' and num2 == 245:
print('936+245 = 1181')
if num1 == 936 and sign == '+' and num2 == 246:
print('936+246 = 1182')
if num1 == 936 and sign == '+' and num2 == 247:
print('936+247 = 1183')
if num1 == 936 and sign == '+' and num2 == 248:
print('936+248 = 1184')
if num1 == 936 and sign == '+' and num2 == 249:
print('936+249 = 1185')
if num1 == 937 and sign == '+' and num2 == 200:
print('937+200 = 1137')
if num1 == 937 and sign == '+' and num2 == 201:
print('937+201 = 1138')
if num1 == 937 and sign == '+' and num2 == 202:
print('937+202 = 1139')
if num1 == 937 and sign == '+' and num2 == 203:
print('937+203 = 1140')
if num1 == 937 and sign == '+' and num2 == 204:
print('937+204 = 1141')
if num1 == 937 and sign == '+' and num2 == 205:
print('937+205 = 1142')
if num1 == 937 and sign == '+' and num2 == 206:
print('937+206 = 1143')
if num1 == 937 and sign == '+' and num2 == 207:
print('937+207 = 1144')
if num1 == 937 and sign == '+' and num2 == 208:
print('937+208 = 1145')
if num1 == 937 and sign == '+' and num2 == 209:
print('937+209 = 1146')
if num1 == 937 and sign == '+' and num2 == 210:
print('937+210 = 1147')
if num1 == 937 and sign == '+' and num2 == 211:
print('937+211 = 1148')
if num1 == 937 and sign == '+' and num2 == 212:
print('937+212 = 1149')
if num1 == 937 and sign == '+' and num2 == 213:
print('937+213 = 1150')
if num1 == 937 and sign == '+' and num2 == 214:
print('937+214 = 1151')
if num1 == 937 and sign == '+' and num2 == 215:
print('937+215 = 1152')
if num1 == 937 and sign == '+' and num2 == 216:
print('937+216 = 1153')
if num1 == 937 and sign == '+' and num2 == 217:
print('937+217 = 1154')
if num1 == 937 and sign == '+' and num2 == 218:
print('937+218 = 1155')
if num1 == 937 and sign == '+' and num2 == 219:
print('937+219 = 1156')
if num1 == 937 and sign == '+' and num2 == 220:
print('937+220 = 1157')
if num1 == 937 and sign == '+' and num2 == 221:
print('937+221 = 1158')
if num1 == 937 and sign == '+' and num2 == 222:
print('937+222 = 1159')
if num1 == 937 and sign == '+' and num2 == 223:
print('937+223 = 1160')
if num1 == 937 and sign == '+' and num2 == 224:
print('937+224 = 1161')
if num1 == 937 and sign == '+' and num2 == 225:
print('937+225 = 1162')
if num1 == 937 and sign == '+' and num2 == 226:
print('937+226 = 1163')
if num1 == 937 and sign == '+' and num2 == 227:
print('937+227 = 1164')
if num1 == 937 and sign == '+' and num2 == 228:
print('937+228 = 1165')
if num1 == 937 and sign == '+' and num2 == 229:
print('937+229 = 1166')
if num1 == 937 and sign == '+' and num2 == 230:
print('937+230 = 1167')
if num1 == 937 and sign == '+' and num2 == 231:
print('937+231 = 1168')
if num1 == 937 and sign == '+' and num2 == 232:
print('937+232 = 1169')
if num1 == 937 and sign == '+' and num2 == 233:
print('937+233 = 1170')
if num1 == 937 and sign == '+' and num2 == 234:
print('937+234 = 1171')
if num1 == 937 and sign == '+' and num2 == 235:
print('937+235 = 1172')
if num1 == 937 and sign == '+' and num2 == 236:
print('937+236 = 1173')
if num1 == 937 and sign == '+' and num2 == 237:
print('937+237 = 1174')
if num1 == 937 and sign == '+' and num2 == 238:
print('937+238 = 1175')
if num1 == 937 and sign == '+' and num2 == 239:
print('937+239 = 1176')
if num1 == 937 and sign == '+' and num2 == 240:
print('937+240 = 1177')
if num1 == 937 and sign == '+' and num2 == 241:
print('937+241 = 1178')
if num1 == 937 and sign == '+' and num2 == 242:
print('937+242 = 1179')
if num1 == 937 and sign == '+' and num2 == 243:
print('937+243 = 1180')
if num1 == 937 and sign == '+' and num2 == 244:
print('937+244 = 1181')
if num1 == 937 and sign == '+' and num2 == 245:
print('937+245 = 1182')
if num1 == 937 and sign == '+' and num2 == 246:
print('937+246 = 1183')
if num1 == 937 and sign == '+' and num2 == 247:
print('937+247 = 1184')
if num1 == 937 and sign == '+' and num2 == 248:
print('937+248 = 1185')
if num1 == 937 and sign == '+' and num2 == 249:
print('937+249 = 1186')
if num1 == 938 and sign == '+' and num2 == 200:
print('938+200 = 1138')
if num1 == 938 and sign == '+' and num2 == 201:
print('938+201 = 1139')
if num1 == 938 and sign == '+' and num2 == 202:
print('938+202 = 1140')
if num1 == 938 and sign == '+' and num2 == 203:
print('938+203 = 1141')
if num1 == 938 and sign == '+' and num2 == 204:
print('938+204 = 1142')
if num1 == 938 and sign == '+' and num2 == 205:
print('938+205 = 1143')
if num1 == 938 and sign == '+' and num2 == 206:
print('938+206 = 1144')
if num1 == 938 and sign == '+' and num2 == 207:
print('938+207 = 1145')
if num1 == 938 and sign == '+' and num2 == 208:
print('938+208 = 1146')
if num1 == 938 and sign == '+' and num2 == 209:
print('938+209 = 1147')
if num1 == 938 and sign == '+' and num2 == 210:
print('938+210 = 1148')
if num1 == 938 and sign == '+' and num2 == 211:
print('938+211 = 1149')
if num1 == 938 and sign == '+' and num2 == 212:
print('938+212 = 1150')
if num1 == 938 and sign == '+' and num2 == 213:
print('938+213 = 1151')
if num1 == 938 and sign == '+' and num2 == 214:
print('938+214 = 1152')
if num1 == 938 and sign == '+' and num2 == 215:
print('938+215 = 1153')
if num1 == 938 and sign == '+' and num2 == 216:
print('938+216 = 1154')
if num1 == 938 and sign == '+' and num2 == 217:
print('938+217 = 1155')
if num1 == 938 and sign == '+' and num2 == 218:
print('938+218 = 1156')
if num1 == 938 and sign == '+' and num2 == 219:
print('938+219 = 1157')
if num1 == 938 and sign == '+' and num2 == 220:
print('938+220 = 1158')
if num1 == 938 and sign == '+' and num2 == 221:
print('938+221 = 1159')
if num1 == 938 and sign == '+' and num2 == 222:
print('938+222 = 1160')
if num1 == 938 and sign == '+' and num2 == 223:
print('938+223 = 1161')
if num1 == 938 and sign == '+' and num2 == 224:
print('938+224 = 1162')
if num1 == 938 and sign == '+' and num2 == 225:
print('938+225 = 1163')
if num1 == 938 and sign == '+' and num2 == 226:
print('938+226 = 1164')
if num1 == 938 and sign == '+' and num2 == 227:
print('938+227 = 1165')
if num1 == 938 and sign == '+' and num2 == 228:
print('938+228 = 1166')
if num1 == 938 and sign == '+' and num2 == 229:
print('938+229 = 1167')
if num1 == 938 and sign == '+' and num2 == 230:
print('938+230 = 1168')
if num1 == 938 and sign == '+' and num2 == 231:
print('938+231 = 1169')
if num1 == 938 and sign == '+' and num2 == 232:
print('938+232 = 1170')
if num1 == 938 and sign == '+' and num2 == 233:
print('938+233 = 1171')
if num1 == 938 and sign == '+' and num2 == 234:
print('938+234 = 1172')
if num1 == 938 and sign == '+' and num2 == 235:
print('938+235 = 1173')
if num1 == 938 and sign == '+' and num2 == 236:
print('938+236 = 1174')
if num1 == 938 and sign == '+' and num2 == 237:
print('938+237 = 1175')
if num1 == 938 and sign == '+' and num2 == 238:
print('938+238 = 1176')
if num1 == 938 and sign == '+' and num2 == 239:
print('938+239 = 1177')
if num1 == 938 and sign == '+' and num2 == 240:
print('938+240 = 1178')
if num1 == 938 and sign == '+' and num2 == 241:
print('938+241 = 1179')
if num1 == 938 and sign == '+' and num2 == 242:
print('938+242 = 1180')
if num1 == 938 and sign == '+' and num2 == 243:
print('938+243 = 1181')
if num1 == 938 and sign == '+' and num2 == 244:
print('938+244 = 1182')
if num1 == 938 and sign == '+' and num2 == 245:
print('938+245 = 1183')
if num1 == 938 and sign == '+' and num2 == 246:
print('938+246 = 1184')
if num1 == 938 and sign == '+' and num2 == 247:
print('938+247 = 1185')
if num1 == 938 and sign == '+' and num2 == 248:
print('938+248 = 1186')
if num1 == 938 and sign == '+' and num2 == 249:
print('938+249 = 1187')
if num1 == 939 and sign == '+' and num2 == 200:
print('939+200 = 1139')
if num1 == 939 and sign == '+' and num2 == 201:
print('939+201 = 1140')
if num1 == 939 and sign == '+' and num2 == 202:
print('939+202 = 1141')
if num1 == 939 and sign == '+' and num2 == 203:
print('939+203 = 1142')
if num1 == 939 and sign == '+' and num2 == 204:
print('939+204 = 1143')
if num1 == 939 and sign == '+' and num2 == 205:
print('939+205 = 1144')
if num1 == 939 and sign == '+' and num2 == 206:
print('939+206 = 1145')
if num1 == 939 and sign == '+' and num2 == 207:
print('939+207 = 1146')
if num1 == 939 and sign == '+' and num2 == 208:
print('939+208 = 1147')
if num1 == 939 and sign == '+' and num2 == 209:
print('939+209 = 1148')
if num1 == 939 and sign == '+' and num2 == 210:
print('939+210 = 1149')
if num1 == 939 and sign == '+' and num2 == 211:
print('939+211 = 1150')
if num1 == 939 and sign == '+' and num2 == 212:
print('939+212 = 1151')
if num1 == 939 and sign == '+' and num2 == 213:
print('939+213 = 1152')
if num1 == 939 and sign == '+' and num2 == 214:
print('939+214 = 1153')
if num1 == 939 and sign == '+' and num2 == 215:
print('939+215 = 1154')
if num1 == 939 and sign == '+' and num2 == 216:
print('939+216 = 1155')
if num1 == 939 and sign == '+' and num2 == 217:
print('939+217 = 1156')
if num1 == 939 and sign == '+' and num2 == 218:
print('939+218 = 1157')
if num1 == 939 and sign == '+' and num2 == 219:
print('939+219 = 1158')
if num1 == 939 and sign == '+' and num2 == 220:
print('939+220 = 1159')
if num1 == 939 and sign == '+' and num2 == 221:
print('939+221 = 1160')
if num1 == 939 and sign == '+' and num2 == 222:
print('939+222 = 1161')
if num1 == 939 and sign == '+' and num2 == 223:
print('939+223 = 1162')
if num1 == 939 and sign == '+' and num2 == 224:
print('939+224 = 1163')
if num1 == 939 and sign == '+' and num2 == 225:
print('939+225 = 1164')
if num1 == 939 and sign == '+' and num2 == 226:
print('939+226 = 1165')
if num1 == 939 and sign == '+' and num2 == 227:
print('939+227 = 1166')
if num1 == 939 and sign == '+' and num2 == 228:
print('939+228 = 1167')
if num1 == 939 and sign == '+' and num2 == 229:
print('939+229 = 1168')
if num1 == 939 and sign == '+' and num2 == 230:
print('939+230 = 1169')
if num1 == 939 and sign == '+' and num2 == 231:
print('939+231 = 1170')
if num1 == 939 and sign == '+' and num2 == 232:
print('939+232 = 1171')
if num1 == 939 and sign == '+' and num2 == 233:
print('939+233 = 1172')
if num1 == 939 and sign == '+' and num2 == 234:
print('939+234 = 1173')
if num1 == 939 and sign == '+' and num2 == 235:
print('939+235 = 1174')
if num1 == 939 and sign == '+' and num2 == 236:
print('939+236 = 1175')
if num1 == 939 and sign == '+' and num2 == 237:
print('939+237 = 1176')
if num1 == 939 and sign == '+' and num2 == 238:
print('939+238 = 1177')
if num1 == 939 and sign == '+' and num2 == 239:
print('939+239 = 1178')
if num1 == 939 and sign == '+' and num2 == 240:
print('939+240 = 1179')
if num1 == 939 and sign == '+' and num2 == 241:
print('939+241 = 1180')
if num1 == 939 and sign == '+' and num2 == 242:
print('939+242 = 1181')
if num1 == 939 and sign == '+' and num2 == 243:
print('939+243 = 1182')
if num1 == 939 and sign == '+' and num2 == 244:
print('939+244 = 1183')
if num1 == 939 and sign == '+' and num2 == 245:
print('939+245 = 1184')
if num1 == 939 and sign == '+' and num2 == 246:
print('939+246 = 1185')
if num1 == 939 and sign == '+' and num2 == 247:
print('939+247 = 1186')
if num1 == 939 and sign == '+' and num2 == 248:
print('939+248 = 1187')
if num1 == 939 and sign == '+' and num2 == 249:
print('939+249 = 1188')
if num1 == 940 and sign == '+' and num2 == 200:
print('940+200 = 1140')
if num1 == 940 and sign == '+' and num2 == 201:
print('940+201 = 1141')
if num1 == 940 and sign == '+' and num2 == 202:
print('940+202 = 1142')
if num1 == 940 and sign == '+' and num2 == 203:
print('940+203 = 1143')
if num1 == 940 and sign == '+' and num2 == 204:
print('940+204 = 1144')
if num1 == 940 and sign == '+' and num2 == 205:
print('940+205 = 1145')
if num1 == 940 and sign == '+' and num2 == 206:
print('940+206 = 1146')
if num1 == 940 and sign == '+' and num2 == 207:
print('940+207 = 1147')
if num1 == 940 and sign == '+' and num2 == 208:
print('940+208 = 1148')
if num1 == 940 and sign == '+' and num2 == 209:
print('940+209 = 1149')
if num1 == 940 and sign == '+' and num2 == 210:
print('940+210 = 1150')
if num1 == 940 and sign == '+' and num2 == 211:
print('940+211 = 1151')
if num1 == 940 and sign == '+' and num2 == 212:
print('940+212 = 1152')
if num1 == 940 and sign == '+' and num2 == 213:
print('940+213 = 1153')
if num1 == 940 and sign == '+' and num2 == 214:
print('940+214 = 1154')
if num1 == 940 and sign == '+' and num2 == 215:
print('940+215 = 1155')
if num1 == 940 and sign == '+' and num2 == 216:
print('940+216 = 1156')
if num1 == 940 and sign == '+' and num2 == 217:
print('940+217 = 1157')
if num1 == 940 and sign == '+' and num2 == 218:
print('940+218 = 1158')
if num1 == 940 and sign == '+' and num2 == 219:
print('940+219 = 1159')
if num1 == 940 and sign == '+' and num2 == 220:
print('940+220 = 1160')
if num1 == 940 and sign == '+' and num2 == 221:
print('940+221 = 1161')
if num1 == 940 and sign == '+' and num2 == 222:
print('940+222 = 1162')
if num1 == 940 and sign == '+' and num2 == 223:
print('940+223 = 1163')
if num1 == 940 and sign == '+' and num2 == 224:
print('940+224 = 1164')
if num1 == 940 and sign == '+' and num2 == 225:
print('940+225 = 1165')
if num1 == 940 and sign == '+' and num2 == 226:
print('940+226 = 1166')
if num1 == 940 and sign == '+' and num2 == 227:
print('940+227 = 1167')
if num1 == 940 and sign == '+' and num2 == 228:
print('940+228 = 1168')
if num1 == 940 and sign == '+' and num2 == 229:
print('940+229 = 1169')
if num1 == 940 and sign == '+' and num2 == 230:
print('940+230 = 1170')
if num1 == 940 and sign == '+' and num2 == 231:
print('940+231 = 1171')
if num1 == 940 and sign == '+' and num2 == 232:
print('940+232 = 1172')
if num1 == 940 and sign == '+' and num2 == 233:
print('940+233 = 1173')
if num1 == 940 and sign == '+' and num2 == 234:
print('940+234 = 1174')
if num1 == 940 and sign == '+' and num2 == 235:
print('940+235 = 1175')
if num1 == 940 and sign == '+' and num2 == 236:
print('940+236 = 1176')
if num1 == 940 and sign == '+' and num2 == 237:
print('940+237 = 1177')
if num1 == 940 and sign == '+' and num2 == 238:
print('940+238 = 1178')
if num1 == 940 and sign == '+' and num2 == 239:
print('940+239 = 1179')
if num1 == 940 and sign == '+' and num2 == 240:
print('940+240 = 1180')
if num1 == 940 and sign == '+' and num2 == 241:
print('940+241 = 1181')
if num1 == 940 and sign == '+' and num2 == 242:
print('940+242 = 1182')
if num1 == 940 and sign == '+' and num2 == 243:
print('940+243 = 1183')
if num1 == 940 and sign == '+' and num2 == 244:
print('940+244 = 1184')
if num1 == 940 and sign == '+' and num2 == 245:
print('940+245 = 1185')
if num1 == 940 and sign == '+' and num2 == 246:
print('940+246 = 1186')
if num1 == 940 and sign == '+' and num2 == 247:
print('940+247 = 1187')
if num1 == 940 and sign == '+' and num2 == 248:
print('940+248 = 1188')
if num1 == 940 and sign == '+' and num2 == 249:
print('940+249 = 1189')
if num1 == 941 and sign == '+' and num2 == 200:
print('941+200 = 1141')
if num1 == 941 and sign == '+' and num2 == 201:
print('941+201 = 1142')
if num1 == 941 and sign == '+' and num2 == 202:
print('941+202 = 1143')
if num1 == 941 and sign == '+' and num2 == 203:
print('941+203 = 1144')
if num1 == 941 and sign == '+' and num2 == 204:
print('941+204 = 1145')
if num1 == 941 and sign == '+' and num2 == 205:
print('941+205 = 1146')
if num1 == 941 and sign == '+' and num2 == 206:
print('941+206 = 1147')
if num1 == 941 and sign == '+' and num2 == 207:
print('941+207 = 1148')
if num1 == 941 and sign == '+' and num2 == 208:
print('941+208 = 1149')
if num1 == 941 and sign == '+' and num2 == 209:
print('941+209 = 1150')
if num1 == 941 and sign == '+' and num2 == 210:
print('941+210 = 1151')
if num1 == 941 and sign == '+' and num2 == 211:
print('941+211 = 1152')
if num1 == 941 and sign == '+' and num2 == 212:
print('941+212 = 1153')
if num1 == 941 and sign == '+' and num2 == 213:
print('941+213 = 1154')
if num1 == 941 and sign == '+' and num2 == 214:
print('941+214 = 1155')
if num1 == 941 and sign == '+' and num2 == 215:
print('941+215 = 1156')
if num1 == 941 and sign == '+' and num2 == 216:
print('941+216 = 1157')
if num1 == 941 and sign == '+' and num2 == 217:
print('941+217 = 1158')
if num1 == 941 and sign == '+' and num2 == 218:
print('941+218 = 1159')
if num1 == 941 and sign == '+' and num2 == 219:
print('941+219 = 1160')
if num1 == 941 and sign == '+' and num2 == 220:
print('941+220 = 1161')
if num1 == 941 and sign == '+' and num2 == 221:
print('941+221 = 1162')
if num1 == 941 and sign == '+' and num2 == 222:
print('941+222 = 1163')
if num1 == 941 and sign == '+' and num2 == 223:
print('941+223 = 1164')
if num1 == 941 and sign == '+' and num2 == 224:
print('941+224 = 1165')
if num1 == 941 and sign == '+' and num2 == 225:
print('941+225 = 1166')
if num1 == 941 and sign == '+' and num2 == 226:
print('941+226 = 1167')
if num1 == 941 and sign == '+' and num2 == 227:
print('941+227 = 1168')
if num1 == 941 and sign == '+' and num2 == 228:
print('941+228 = 1169')
if num1 == 941 and sign == '+' and num2 == 229:
print('941+229 = 1170')
if num1 == 941 and sign == '+' and num2 == 230:
print('941+230 = 1171')
if num1 == 941 and sign == '+' and num2 == 231:
print('941+231 = 1172')
if num1 == 941 and sign == '+' and num2 == 232:
print('941+232 = 1173')
if num1 == 941 and sign == '+' and num2 == 233:
print('941+233 = 1174')
if num1 == 941 and sign == '+' and num2 == 234:
print('941+234 = 1175')
if num1 == 941 and sign == '+' and num2 == 235:
print('941+235 = 1176')
if num1 == 941 and sign == '+' and num2 == 236:
print('941+236 = 1177')
if num1 == 941 and sign == '+' and num2 == 237:
print('941+237 = 1178')
if num1 == 941 and sign == '+' and num2 == 238:
print('941+238 = 1179')
if num1 == 941 and sign == '+' and num2 == 239:
print('941+239 = 1180')
if num1 == 941 and sign == '+' and num2 == 240:
print('941+240 = 1181')
if num1 == 941 and sign == '+' and num2 == 241:
print('941+241 = 1182')
if num1 == 941 and sign == '+' and num2 == 242:
print('941+242 = 1183')
if num1 == 941 and sign == '+' and num2 == 243:
print('941+243 = 1184')
if num1 == 941 and sign == '+' and num2 == 244:
print('941+244 = 1185')
if num1 == 941 and sign == '+' and num2 == 245:
print('941+245 = 1186')
if num1 == 941 and sign == '+' and num2 == 246:
print('941+246 = 1187')
if num1 == 941 and sign == '+' and num2 == 247:
print('941+247 = 1188')
if num1 == 941 and sign == '+' and num2 == 248:
print('941+248 = 1189')
if num1 == 941 and sign == '+' and num2 == 249:
print('941+249 = 1190')
if num1 == 942 and sign == '+' and num2 == 200:
print('942+200 = 1142')
if num1 == 942 and sign == '+' and num2 == 201:
print('942+201 = 1143')
if num1 == 942 and sign == '+' and num2 == 202:
print('942+202 = 1144')
if num1 == 942 and sign == '+' and num2 == 203:
print('942+203 = 1145')
if num1 == 942 and sign == '+' and num2 == 204:
print('942+204 = 1146')
if num1 == 942 and sign == '+' and num2 == 205:
print('942+205 = 1147')
if num1 == 942 and sign == '+' and num2 == 206:
print('942+206 = 1148')
if num1 == 942 and sign == '+' and num2 == 207:
print('942+207 = 1149')
if num1 == 942 and sign == '+' and num2 == 208:
print('942+208 = 1150')
if num1 == 942 and sign == '+' and num2 == 209:
print('942+209 = 1151')
if num1 == 942 and sign == '+' and num2 == 210:
print('942+210 = 1152')
if num1 == 942 and sign == '+' and num2 == 211:
print('942+211 = 1153')
if num1 == 942 and sign == '+' and num2 == 212:
print('942+212 = 1154')
if num1 == 942 and sign == '+' and num2 == 213:
print('942+213 = 1155')
if num1 == 942 and sign == '+' and num2 == 214:
print('942+214 = 1156')
if num1 == 942 and sign == '+' and num2 == 215:
print('942+215 = 1157')
if num1 == 942 and sign == '+' and num2 == 216:
print('942+216 = 1158')
if num1 == 942 and sign == '+' and num2 == 217:
print('942+217 = 1159')
if num1 == 942 and sign == '+' and num2 == 218:
print('942+218 = 1160')
if num1 == 942 and sign == '+' and num2 == 219:
print('942+219 = 1161')
if num1 == 942 and sign == '+' and num2 == 220:
print('942+220 = 1162')
if num1 == 942 and sign == '+' and num2 == 221:
print('942+221 = 1163')
if num1 == 942 and sign == '+' and num2 == 222:
print('942+222 = 1164')
if num1 == 942 and sign == '+' and num2 == 223:
print('942+223 = 1165')
if num1 == 942 and sign == '+' and num2 == 224:
print('942+224 = 1166')
if num1 == 942 and sign == '+' and num2 == 225:
print('942+225 = 1167')
if num1 == 942 and sign == '+' and num2 == 226:
print('942+226 = 1168')
if num1 == 942 and sign == '+' and num2 == 227:
print('942+227 = 1169')
if num1 == 942 and sign == '+' and num2 == 228:
print('942+228 = 1170')
if num1 == 942 and sign == '+' and num2 == 229:
print('942+229 = 1171')
if num1 == 942 and sign == '+' and num2 == 230:
print('942+230 = 1172')
if num1 == 942 and sign == '+' and num2 == 231:
print('942+231 = 1173')
if num1 == 942 and sign == '+' and num2 == 232:
print('942+232 = 1174')
if num1 == 942 and sign == '+' and num2 == 233:
print('942+233 = 1175')
if num1 == 942 and sign == '+' and num2 == 234:
print('942+234 = 1176')
if num1 == 942 and sign == '+' and num2 == 235:
print('942+235 = 1177')
if num1 == 942 and sign == '+' and num2 == 236:
print('942+236 = 1178')
if num1 == 942 and sign == '+' and num2 == 237:
print('942+237 = 1179')
if num1 == 942 and sign == '+' and num2 == 238:
print('942+238 = 1180')
if num1 == 942 and sign == '+' and num2 == 239:
print('942+239 = 1181')
if num1 == 942 and sign == '+' and num2 == 240:
print('942+240 = 1182')
if num1 == 942 and sign == '+' and num2 == 241:
print('942+241 = 1183')
if num1 == 942 and sign == '+' and num2 == 242:
print('942+242 = 1184')
if num1 == 942 and sign == '+' and num2 == 243:
print('942+243 = 1185')
if num1 == 942 and sign == '+' and num2 == 244:
print('942+244 = 1186')
if num1 == 942 and sign == '+' and num2 == 245:
print('942+245 = 1187')
if num1 == 942 and sign == '+' and num2 == 246:
print('942+246 = 1188')
if num1 == 942 and sign == '+' and num2 == 247:
print('942+247 = 1189')
if num1 == 942 and sign == '+' and num2 == 248:
print('942+248 = 1190')
if num1 == 942 and sign == '+' and num2 == 249:
print('942+249 = 1191')
if num1 == 943 and sign == '+' and num2 == 200:
print('943+200 = 1143')
if num1 == 943 and sign == '+' and num2 == 201:
print('943+201 = 1144')
if num1 == 943 and sign == '+' and num2 == 202:
print('943+202 = 1145')
if num1 == 943 and sign == '+' and num2 == 203:
print('943+203 = 1146')
if num1 == 943 and sign == '+' and num2 == 204:
print('943+204 = 1147')
if num1 == 943 and sign == '+' and num2 == 205:
print('943+205 = 1148')
if num1 == 943 and sign == '+' and num2 == 206:
print('943+206 = 1149')
if num1 == 943 and sign == '+' and num2 == 207:
print('943+207 = 1150')
if num1 == 943 and sign == '+' and num2 == 208:
print('943+208 = 1151')
if num1 == 943 and sign == '+' and num2 == 209:
print('943+209 = 1152')
if num1 == 943 and sign == '+' and num2 == 210:
print('943+210 = 1153')
if num1 == 943 and sign == '+' and num2 == 211:
print('943+211 = 1154')
if num1 == 943 and sign == '+' and num2 == 212:
print('943+212 = 1155')
if num1 == 943 and sign == '+' and num2 == 213:
print('943+213 = 1156')
if num1 == 943 and sign == '+' and num2 == 214:
print('943+214 = 1157')
if num1 == 943 and sign == '+' and num2 == 215:
print('943+215 = 1158')
if num1 == 943 and sign == '+' and num2 == 216:
print('943+216 = 1159')
if num1 == 943 and sign == '+' and num2 == 217:
print('943+217 = 1160')
if num1 == 943 and sign == '+' and num2 == 218:
print('943+218 = 1161')
if num1 == 943 and sign == '+' and num2 == 219:
print('943+219 = 1162')
if num1 == 943 and sign == '+' and num2 == 220:
print('943+220 = 1163')
if num1 == 943 and sign == '+' and num2 == 221:
print('943+221 = 1164')
if num1 == 943 and sign == '+' and num2 == 222:
print('943+222 = 1165')
if num1 == 943 and sign == '+' and num2 == 223:
print('943+223 = 1166')
if num1 == 943 and sign == '+' and num2 == 224:
print('943+224 = 1167')
if num1 == 943 and sign == '+' and num2 == 225:
print('943+225 = 1168')
if num1 == 943 and sign == '+' and num2 == 226:
print('943+226 = 1169')
if num1 == 943 and sign == '+' and num2 == 227:
print('943+227 = 1170')
if num1 == 943 and sign == '+' and num2 == 228:
print('943+228 = 1171')
if num1 == 943 and sign == '+' and num2 == 229:
print('943+229 = 1172')
if num1 == 943 and sign == '+' and num2 == 230:
print('943+230 = 1173')
if num1 == 943 and sign == '+' and num2 == 231:
print('943+231 = 1174')
if num1 == 943 and sign == '+' and num2 == 232:
print('943+232 = 1175')
if num1 == 943 and sign == '+' and num2 == 233:
print('943+233 = 1176')
if num1 == 943 and sign == '+' and num2 == 234:
print('943+234 = 1177')
if num1 == 943 and sign == '+' and num2 == 235:
print('943+235 = 1178')
if num1 == 943 and sign == '+' and num2 == 236:
print('943+236 = 1179')
if num1 == 943 and sign == '+' and num2 == 237:
print('943+237 = 1180')
if num1 == 943 and sign == '+' and num2 == 238:
print('943+238 = 1181')
if num1 == 943 and sign == '+' and num2 == 239:
print('943+239 = 1182')
if num1 == 943 and sign == '+' and num2 == 240:
print('943+240 = 1183')
if num1 == 943 and sign == '+' and num2 == 241:
print('943+241 = 1184')
if num1 == 943 and sign == '+' and num2 == 242:
print('943+242 = 1185')
if num1 == 943 and sign == '+' and num2 == 243:
print('943+243 = 1186')
if num1 == 943 and sign == '+' and num2 == 244:
print('943+244 = 1187')
if num1 == 943 and sign == '+' and num2 == 245:
print('943+245 = 1188')
if num1 == 943 and sign == '+' and num2 == 246:
print('943+246 = 1189')
if num1 == 943 and sign == '+' and num2 == 247:
print('943+247 = 1190')
if num1 == 943 and sign == '+' and num2 == 248:
print('943+248 = 1191')
if num1 == 943 and sign == '+' and num2 == 249:
print('943+249 = 1192')
if num1 == 944 and sign == '+' and num2 == 200:
print('944+200 = 1144')
if num1 == 944 and sign == '+' and num2 == 201:
print('944+201 = 1145')
if num1 == 944 and sign == '+' and num2 == 202:
print('944+202 = 1146')
if num1 == 944 and sign == '+' and num2 == 203:
print('944+203 = 1147')
if num1 == 944 and sign == '+' and num2 == 204:
print('944+204 = 1148')
if num1 == 944 and sign == '+' and num2 == 205:
print('944+205 = 1149')
if num1 == 944 and sign == '+' and num2 == 206:
print('944+206 = 1150')
if num1 == 944 and sign == '+' and num2 == 207:
print('944+207 = 1151')
if num1 == 944 and sign == '+' and num2 == 208:
print('944+208 = 1152')
if num1 == 944 and sign == '+' and num2 == 209:
print('944+209 = 1153')
if num1 == 944 and sign == '+' and num2 == 210:
print('944+210 = 1154')
if num1 == 944 and sign == '+' and num2 == 211:
print('944+211 = 1155')
if num1 == 944 and sign == '+' and num2 == 212:
print('944+212 = 1156')
if num1 == 944 and sign == '+' and num2 == 213:
print('944+213 = 1157')
if num1 == 944 and sign == '+' and num2 == 214:
print('944+214 = 1158')
if num1 == 944 and sign == '+' and num2 == 215:
print('944+215 = 1159')
if num1 == 944 and sign == '+' and num2 == 216:
print('944+216 = 1160')
if num1 == 944 and sign == '+' and num2 == 217:
print('944+217 = 1161')
if num1 == 944 and sign == '+' and num2 == 218:
print('944+218 = 1162')
if num1 == 944 and sign == '+' and num2 == 219:
print('944+219 = 1163')
if num1 == 944 and sign == '+' and num2 == 220:
print('944+220 = 1164')
if num1 == 944 and sign == '+' and num2 == 221:
print('944+221 = 1165')
if num1 == 944 and sign == '+' and num2 == 222:
print('944+222 = 1166')
if num1 == 944 and sign == '+' and num2 == 223:
print('944+223 = 1167')
if num1 == 944 and sign == '+' and num2 == 224:
print('944+224 = 1168')
if num1 == 944 and sign == '+' and num2 == 225:
print('944+225 = 1169')
if num1 == 944 and sign == '+' and num2 == 226:
print('944+226 = 1170')
if num1 == 944 and sign == '+' and num2 == 227:
print('944+227 = 1171')
if num1 == 944 and sign == '+' and num2 == 228:
print('944+228 = 1172')
if num1 == 944 and sign == '+' and num2 == 229:
print('944+229 = 1173')
if num1 == 944 and sign == '+' and num2 == 230:
print('944+230 = 1174')
if num1 == 944 and sign == '+' and num2 == 231:
print('944+231 = 1175')
if num1 == 944 and sign == '+' and num2 == 232:
print('944+232 = 1176')
if num1 == 944 and sign == '+' and num2 == 233:
print('944+233 = 1177')
if num1 == 944 and sign == '+' and num2 == 234:
print('944+234 = 1178')
if num1 == 944 and sign == '+' and num2 == 235:
print('944+235 = 1179')
if num1 == 944 and sign == '+' and num2 == 236:
print('944+236 = 1180')
if num1 == 944 and sign == '+' and num2 == 237:
print('944+237 = 1181')
if num1 == 944 and sign == '+' and num2 == 238:
print('944+238 = 1182')
if num1 == 944 and sign == '+' and num2 == 239:
print('944+239 = 1183')
if num1 == 944 and sign == '+' and num2 == 240:
print('944+240 = 1184')
if num1 == 944 and sign == '+' and num2 == 241:
print('944+241 = 1185')
if num1 == 944 and sign == '+' and num2 == 242:
print('944+242 = 1186')
if num1 == 944 and sign == '+' and num2 == 243:
print('944+243 = 1187')
if num1 == 944 and sign == '+' and num2 == 244:
print('944+244 = 1188')
if num1 == 944 and sign == '+' and num2 == 245:
print('944+245 = 1189')
if num1 == 944 and sign == '+' and num2 == 246:
print('944+246 = 1190')
if num1 == 944 and sign == '+' and num2 == 247:
print('944+247 = 1191')
if num1 == 944 and sign == '+' and num2 == 248:
print('944+248 = 1192')
if num1 == 944 and sign == '+' and num2 == 249:
print('944+249 = 1193')
if num1 == 945 and sign == '+' and num2 == 200:
print('945+200 = 1145')
if num1 == 945 and sign == '+' and num2 == 201:
print('945+201 = 1146')
if num1 == 945 and sign == '+' and num2 == 202:
print('945+202 = 1147')
if num1 == 945 and sign == '+' and num2 == 203:
print('945+203 = 1148')
if num1 == 945 and sign == '+' and num2 == 204:
print('945+204 = 1149')
if num1 == 945 and sign == '+' and num2 == 205:
print('945+205 = 1150')
if num1 == 945 and sign == '+' and num2 == 206:
print('945+206 = 1151')
if num1 == 945 and sign == '+' and num2 == 207:
print('945+207 = 1152')
if num1 == 945 and sign == '+' and num2 == 208:
print('945+208 = 1153')
if num1 == 945 and sign == '+' and num2 == 209:
print('945+209 = 1154')
if num1 == 945 and sign == '+' and num2 == 210:
print('945+210 = 1155')
if num1 == 945 and sign == '+' and num2 == 211:
print('945+211 = 1156')
if num1 == 945 and sign == '+' and num2 == 212:
print('945+212 = 1157')
if num1 == 945 and sign == '+' and num2 == 213:
print('945+213 = 1158')
if num1 == 945 and sign == '+' and num2 == 214:
print('945+214 = 1159')
if num1 == 945 and sign == '+' and num2 == 215:
print('945+215 = 1160')
if num1 == 945 and sign == '+' and num2 == 216:
print('945+216 = 1161')
if num1 == 945 and sign == '+' and num2 == 217:
print('945+217 = 1162')
if num1 == 945 and sign == '+' and num2 == 218:
print('945+218 = 1163')
if num1 == 945 and sign == '+' and num2 == 219:
print('945+219 = 1164')
if num1 == 945 and sign == '+' and num2 == 220:
print('945+220 = 1165')
if num1 == 945 and sign == '+' and num2 == 221:
print('945+221 = 1166')
if num1 == 945 and sign == '+' and num2 == 222:
print('945+222 = 1167')
if num1 == 945 and sign == '+' and num2 == 223:
print('945+223 = 1168')
if num1 == 945 and sign == '+' and num2 == 224:
print('945+224 = 1169')
if num1 == 945 and sign == '+' and num2 == 225:
print('945+225 = 1170')
if num1 == 945 and sign == '+' and num2 == 226:
print('945+226 = 1171')
if num1 == 945 and sign == '+' and num2 == 227:
print('945+227 = 1172')
if num1 == 945 and sign == '+' and num2 == 228:
print('945+228 = 1173')
if num1 == 945 and sign == '+' and num2 == 229:
print('945+229 = 1174')
if num1 == 945 and sign == '+' and num2 == 230:
print('945+230 = 1175')
if num1 == 945 and sign == '+' and num2 == 231:
print('945+231 = 1176')
if num1 == 945 and sign == '+' and num2 == 232:
print('945+232 = 1177')
if num1 == 945 and sign == '+' and num2 == 233:
print('945+233 = 1178')
if num1 == 945 and sign == '+' and num2 == 234:
print('945+234 = 1179')
if num1 == 945 and sign == '+' and num2 == 235:
print('945+235 = 1180')
if num1 == 945 and sign == '+' and num2 == 236:
print('945+236 = 1181')
if num1 == 945 and sign == '+' and num2 == 237:
print('945+237 = 1182')
if num1 == 945 and sign == '+' and num2 == 238:
print('945+238 = 1183')
if num1 == 945 and sign == '+' and num2 == 239:
print('945+239 = 1184')
if num1 == 945 and sign == '+' and num2 == 240:
print('945+240 = 1185')
if num1 == 945 and sign == '+' and num2 == 241:
print('945+241 = 1186')
if num1 == 945 and sign == '+' and num2 == 242:
print('945+242 = 1187')
if num1 == 945 and sign == '+' and num2 == 243:
print('945+243 = 1188')
if num1 == 945 and sign == '+' and num2 == 244:
print('945+244 = 1189')
if num1 == 945 and sign == '+' and num2 == 245:
print('945+245 = 1190')
if num1 == 945 and sign == '+' and num2 == 246:
print('945+246 = 1191')
if num1 == 945 and sign == '+' and num2 == 247:
print('945+247 = 1192')
if num1 == 945 and sign == '+' and num2 == 248:
print('945+248 = 1193')
if num1 == 945 and sign == '+' and num2 == 249:
print('945+249 = 1194')
if num1 == 946 and sign == '+' and num2 == 200:
print('946+200 = 1146')
if num1 == 946 and sign == '+' and num2 == 201:
print('946+201 = 1147')
if num1 == 946 and sign == '+' and num2 == 202:
print('946+202 = 1148')
if num1 == 946 and sign == '+' and num2 == 203:
print('946+203 = 1149')
if num1 == 946 and sign == '+' and num2 == 204:
print('946+204 = 1150')
if num1 == 946 and sign == '+' and num2 == 205:
print('946+205 = 1151')
if num1 == 946 and sign == '+' and num2 == 206:
print('946+206 = 1152')
if num1 == 946 and sign == '+' and num2 == 207:
print('946+207 = 1153')
if num1 == 946 and sign == '+' and num2 == 208:
print('946+208 = 1154')
if num1 == 946 and sign == '+' and num2 == 209:
print('946+209 = 1155')
if num1 == 946 and sign == '+' and num2 == 210:
print('946+210 = 1156')
if num1 == 946 and sign == '+' and num2 == 211:
print('946+211 = 1157')
if num1 == 946 and sign == '+' and num2 == 212:
print('946+212 = 1158')
if num1 == 946 and sign == '+' and num2 == 213:
print('946+213 = 1159')
if num1 == 946 and sign == '+' and num2 == 214:
print('946+214 = 1160')
if num1 == 946 and sign == '+' and num2 == 215:
print('946+215 = 1161')
if num1 == 946 and sign == '+' and num2 == 216:
print('946+216 = 1162')
if num1 == 946 and sign == '+' and num2 == 217:
print('946+217 = 1163')
if num1 == 946 and sign == '+' and num2 == 218:
print('946+218 = 1164')
if num1 == 946 and sign == '+' and num2 == 219:
print('946+219 = 1165')
if num1 == 946 and sign == '+' and num2 == 220:
print('946+220 = 1166')
if num1 == 946 and sign == '+' and num2 == 221:
print('946+221 = 1167')
if num1 == 946 and sign == '+' and num2 == 222:
print('946+222 = 1168')
if num1 == 946 and sign == '+' and num2 == 223:
print('946+223 = 1169')
if num1 == 946 and sign == '+' and num2 == 224:
print('946+224 = 1170')
if num1 == 946 and sign == '+' and num2 == 225:
print('946+225 = 1171')
if num1 == 946 and sign == '+' and num2 == 226:
print('946+226 = 1172')
if num1 == 946 and sign == '+' and num2 == 227:
print('946+227 = 1173')
if num1 == 946 and sign == '+' and num2 == 228:
print('946+228 = 1174')
if num1 == 946 and sign == '+' and num2 == 229:
print('946+229 = 1175')
if num1 == 946 and sign == '+' and num2 == 230:
print('946+230 = 1176')
if num1 == 946 and sign == '+' and num2 == 231:
print('946+231 = 1177')
if num1 == 946 and sign == '+' and num2 == 232:
print('946+232 = 1178')
if num1 == 946 and sign == '+' and num2 == 233:
print('946+233 = 1179')
if num1 == 946 and sign == '+' and num2 == 234:
print('946+234 = 1180')
if num1 == 946 and sign == '+' and num2 == 235:
print('946+235 = 1181')
if num1 == 946 and sign == '+' and num2 == 236:
print('946+236 = 1182')
if num1 == 946 and sign == '+' and num2 == 237:
print('946+237 = 1183')
if num1 == 946 and sign == '+' and num2 == 238:
print('946+238 = 1184')
if num1 == 946 and sign == '+' and num2 == 239:
print('946+239 = 1185')
if num1 == 946 and sign == '+' and num2 == 240:
print('946+240 = 1186')
if num1 == 946 and sign == '+' and num2 == 241:
print('946+241 = 1187')
if num1 == 946 and sign == '+' and num2 == 242:
print('946+242 = 1188')
if num1 == 946 and sign == '+' and num2 == 243:
print('946+243 = 1189')
if num1 == 946 and sign == '+' and num2 == 244:
print('946+244 = 1190')
if num1 == 946 and sign == '+' and num2 == 245:
print('946+245 = 1191')
if num1 == 946 and sign == '+' and num2 == 246:
print('946+246 = 1192')
if num1 == 946 and sign == '+' and num2 == 247:
print('946+247 = 1193')
if num1 == 946 and sign == '+' and num2 == 248:
print('946+248 = 1194')
if num1 == 946 and sign == '+' and num2 == 249:
print('946+249 = 1195')
if num1 == 947 and sign == '+' and num2 == 200:
print('947+200 = 1147')
if num1 == 947 and sign == '+' and num2 == 201:
print('947+201 = 1148')
if num1 == 947 and sign == '+' and num2 == 202:
print('947+202 = 1149')
if num1 == 947 and sign == '+' and num2 == 203:
print('947+203 = 1150')
if num1 == 947 and sign == '+' and num2 == 204:
print('947+204 = 1151')
if num1 == 947 and sign == '+' and num2 == 205:
print('947+205 = 1152')
if num1 == 947 and sign == '+' and num2 == 206:
print('947+206 = 1153')
if num1 == 947 and sign == '+' and num2 == 207:
print('947+207 = 1154')
if num1 == 947 and sign == '+' and num2 == 208:
print('947+208 = 1155')
if num1 == 947 and sign == '+' and num2 == 209:
print('947+209 = 1156')
if num1 == 947 and sign == '+' and num2 == 210:
print('947+210 = 1157')
if num1 == 947 and sign == '+' and num2 == 211:
print('947+211 = 1158')
if num1 == 947 and sign == '+' and num2 == 212:
print('947+212 = 1159')
if num1 == 947 and sign == '+' and num2 == 213:
print('947+213 = 1160')
if num1 == 947 and sign == '+' and num2 == 214:
print('947+214 = 1161')
if num1 == 947 and sign == '+' and num2 == 215:
print('947+215 = 1162')
if num1 == 947 and sign == '+' and num2 == 216:
print('947+216 = 1163')
if num1 == 947 and sign == '+' and num2 == 217:
print('947+217 = 1164')
if num1 == 947 and sign == '+' and num2 == 218:
print('947+218 = 1165')
if num1 == 947 and sign == '+' and num2 == 219:
print('947+219 = 1166')
if num1 == 947 and sign == '+' and num2 == 220:
print('947+220 = 1167')
if num1 == 947 and sign == '+' and num2 == 221:
print('947+221 = 1168')
if num1 == 947 and sign == '+' and num2 == 222:
print('947+222 = 1169')
if num1 == 947 and sign == '+' and num2 == 223:
print('947+223 = 1170')
if num1 == 947 and sign == '+' and num2 == 224:
print('947+224 = 1171')
if num1 == 947 and sign == '+' and num2 == 225:
print('947+225 = 1172')
if num1 == 947 and sign == '+' and num2 == 226:
print('947+226 = 1173')
if num1 == 947 and sign == '+' and num2 == 227:
print('947+227 = 1174')
if num1 == 947 and sign == '+' and num2 == 228:
print('947+228 = 1175')
if num1 == 947 and sign == '+' and num2 == 229:
print('947+229 = 1176')
if num1 == 947 and sign == '+' and num2 == 230:
print('947+230 = 1177')
if num1 == 947 and sign == '+' and num2 == 231:
print('947+231 = 1178')
if num1 == 947 and sign == '+' and num2 == 232:
print('947+232 = 1179')
if num1 == 947 and sign == '+' and num2 == 233:
print('947+233 = 1180')
if num1 == 947 and sign == '+' and num2 == 234:
print('947+234 = 1181')
if num1 == 947 and sign == '+' and num2 == 235:
print('947+235 = 1182')
if num1 == 947 and sign == '+' and num2 == 236:
print('947+236 = 1183')
if num1 == 947 and sign == '+' and num2 == 237:
print('947+237 = 1184')
if num1 == 947 and sign == '+' and num2 == 238:
print('947+238 = 1185')
if num1 == 947 and sign == '+' and num2 == 239:
print('947+239 = 1186')
if num1 == 947 and sign == '+' and num2 == 240:
print('947+240 = 1187')
if num1 == 947 and sign == '+' and num2 == 241:
print('947+241 = 1188')
if num1 == 947 and sign == '+' and num2 == 242:
print('947+242 = 1189')
if num1 == 947 and sign == '+' and num2 == 243:
print('947+243 = 1190')
if num1 == 947 and sign == '+' and num2 == 244:
print('947+244 = 1191')
if num1 == 947 and sign == '+' and num2 == 245:
print('947+245 = 1192')
if num1 == 947 and sign == '+' and num2 == 246:
print('947+246 = 1193')
if num1 == 947 and sign == '+' and num2 == 247:
print('947+247 = 1194')
if num1 == 947 and sign == '+' and num2 == 248:
print('947+248 = 1195')
if num1 == 947 and sign == '+' and num2 == 249:
print('947+249 = 1196')
if num1 == 948 and sign == '+' and num2 == 200:
print('948+200 = 1148')
if num1 == 948 and sign == '+' and num2 == 201:
print('948+201 = 1149')
if num1 == 948 and sign == '+' and num2 == 202:
print('948+202 = 1150')
if num1 == 948 and sign == '+' and num2 == 203:
print('948+203 = 1151')
if num1 == 948 and sign == '+' and num2 == 204:
print('948+204 = 1152')
if num1 == 948 and sign == '+' and num2 == 205:
print('948+205 = 1153')
if num1 == 948 and sign == '+' and num2 == 206:
print('948+206 = 1154')
if num1 == 948 and sign == '+' and num2 == 207:
print('948+207 = 1155')
if num1 == 948 and sign == '+' and num2 == 208:
print('948+208 = 1156')
if num1 == 948 and sign == '+' and num2 == 209:
print('948+209 = 1157')
if num1 == 948 and sign == '+' and num2 == 210:
print('948+210 = 1158')
if num1 == 948 and sign == '+' and num2 == 211:
print('948+211 = 1159')
if num1 == 948 and sign == '+' and num2 == 212:
print('948+212 = 1160')
if num1 == 948 and sign == '+' and num2 == 213:
print('948+213 = 1161')
if num1 == 948 and sign == '+' and num2 == 214:
print('948+214 = 1162')
if num1 == 948 and sign == '+' and num2 == 215:
print('948+215 = 1163')
if num1 == 948 and sign == '+' and num2 == 216:
print('948+216 = 1164')
if num1 == 948 and sign == '+' and num2 == 217:
print('948+217 = 1165')
if num1 == 948 and sign == '+' and num2 == 218:
print('948+218 = 1166')
if num1 == 948 and sign == '+' and num2 == 219:
print('948+219 = 1167')
if num1 == 948 and sign == '+' and num2 == 220:
print('948+220 = 1168')
if num1 == 948 and sign == '+' and num2 == 221:
print('948+221 = 1169')
if num1 == 948 and sign == '+' and num2 == 222:
print('948+222 = 1170')
if num1 == 948 and sign == '+' and num2 == 223:
print('948+223 = 1171')
if num1 == 948 and sign == '+' and num2 == 224:
print('948+224 = 1172')
if num1 == 948 and sign == '+' and num2 == 225:
print('948+225 = 1173')
if num1 == 948 and sign == '+' and num2 == 226:
print('948+226 = 1174')
if num1 == 948 and sign == '+' and num2 == 227:
print('948+227 = 1175')
if num1 == 948 and sign == '+' and num2 == 228:
print('948+228 = 1176')
if num1 == 948 and sign == '+' and num2 == 229:
print('948+229 = 1177')
if num1 == 948 and sign == '+' and num2 == 230:
print('948+230 = 1178')
if num1 == 948 and sign == '+' and num2 == 231:
print('948+231 = 1179')
if num1 == 948 and sign == '+' and num2 == 232:
print('948+232 = 1180')
if num1 == 948 and sign == '+' and num2 == 233:
print('948+233 = 1181')
if num1 == 948 and sign == '+' and num2 == 234:
print('948+234 = 1182')
if num1 == 948 and sign == '+' and num2 == 235:
print('948+235 = 1183')
if num1 == 948 and sign == '+' and num2 == 236:
print('948+236 = 1184')
if num1 == 948 and sign == '+' and num2 == 237:
print('948+237 = 1185')
if num1 == 948 and sign == '+' and num2 == 238:
print('948+238 = 1186')
if num1 == 948 and sign == '+' and num2 == 239:
print('948+239 = 1187')
if num1 == 948 and sign == '+' and num2 == 240:
print('948+240 = 1188')
if num1 == 948 and sign == '+' and num2 == 241:
print('948+241 = 1189')
if num1 == 948 and sign == '+' and num2 == 242:
print('948+242 = 1190')
if num1 == 948 and sign == '+' and num2 == 243:
print('948+243 = 1191')
if num1 == 948 and sign == '+' and num2 == 244:
print('948+244 = 1192')
if num1 == 948 and sign == '+' and num2 == 245:
print('948+245 = 1193')
if num1 == 948 and sign == '+' and num2 == 246:
print('948+246 = 1194')
if num1 == 948 and sign == '+' and num2 == 247:
print('948+247 = 1195')
if num1 == 948 and sign == '+' and num2 == 248:
print('948+248 = 1196')
if num1 == 948 and sign == '+' and num2 == 249:
print('948+249 = 1197')
if num1 == 949 and sign == '+' and num2 == 200:
print('949+200 = 1149')
if num1 == 949 and sign == '+' and num2 == 201:
print('949+201 = 1150')
if num1 == 949 and sign == '+' and num2 == 202:
print('949+202 = 1151')
if num1 == 949 and sign == '+' and num2 == 203:
print('949+203 = 1152')
if num1 == 949 and sign == '+' and num2 == 204:
print('949+204 = 1153')
if num1 == 949 and sign == '+' and num2 == 205:
print('949+205 = 1154')
if num1 == 949 and sign == '+' and num2 == 206:
print('949+206 = 1155')
if num1 == 949 and sign == '+' and num2 == 207:
print('949+207 = 1156')
if num1 == 949 and sign == '+' and num2 == 208:
print('949+208 = 1157')
if num1 == 949 and sign == '+' and num2 == 209:
print('949+209 = 1158')
if num1 == 949 and sign == '+' and num2 == 210:
print('949+210 = 1159')
if num1 == 949 and sign == '+' and num2 == 211:
print('949+211 = 1160')
if num1 == 949 and sign == '+' and num2 == 212:
print('949+212 = 1161')
if num1 == 949 and sign == '+' and num2 == 213:
print('949+213 = 1162')
if num1 == 949 and sign == '+' and num2 == 214:
print('949+214 = 1163')
if num1 == 949 and sign == '+' and num2 == 215:
print('949+215 = 1164')
if num1 == 949 and sign == '+' and num2 == 216:
print('949+216 = 1165')
if num1 == 949 and sign == '+' and num2 == 217:
print('949+217 = 1166')
if num1 == 949 and sign == '+' and num2 == 218:
print('949+218 = 1167')
if num1 == 949 and sign == '+' and num2 == 219:
print('949+219 = 1168')
if num1 == 949 and sign == '+' and num2 == 220:
print('949+220 = 1169')
if num1 == 949 and sign == '+' and num2 == 221:
print('949+221 = 1170')
if num1 == 949 and sign == '+' and num2 == 222:
print('949+222 = 1171')
if num1 == 949 and sign == '+' and num2 == 223:
print('949+223 = 1172')
if num1 == 949 and sign == '+' and num2 == 224:
print('949+224 = 1173')
if num1 == 949 and sign == '+' and num2 == 225:
print('949+225 = 1174')
if num1 == 949 and sign == '+' and num2 == 226:
print('949+226 = 1175')
if num1 == 949 and sign == '+' and num2 == 227:
print('949+227 = 1176')
if num1 == 949 and sign == '+' and num2 == 228:
print('949+228 = 1177')
if num1 == 949 and sign == '+' and num2 == 229:
print('949+229 = 1178')
if num1 == 949 and sign == '+' and num2 == 230:
print('949+230 = 1179')
if num1 == 949 and sign == '+' and num2 == 231:
print('949+231 = 1180')
if num1 == 949 and sign == '+' and num2 == 232:
print('949+232 = 1181')
if num1 == 949 and sign == '+' and num2 == 233:
print('949+233 = 1182')
if num1 == 949 and sign == '+' and num2 == 234:
print('949+234 = 1183')
if num1 == 949 and sign == '+' and num2 == 235:
print('949+235 = 1184')
if num1 == 949 and sign == '+' and num2 == 236:
print('949+236 = 1185')
if num1 == 949 and sign == '+' and num2 == 237:
print('949+237 = 1186')
if num1 == 949 and sign == '+' and num2 == 238:
print('949+238 = 1187')
if num1 == 949 and sign == '+' and num2 == 239:
print('949+239 = 1188')
if num1 == 949 and sign == '+' and num2 == 240:
print('949+240 = 1189')
if num1 == 949 and sign == '+' and num2 == 241:
print('949+241 = 1190')
if num1 == 949 and sign == '+' and num2 == 242:
print('949+242 = 1191')
if num1 == 949 and sign == '+' and num2 == 243:
print('949+243 = 1192')
if num1 == 949 and sign == '+' and num2 == 244:
print('949+244 = 1193')
if num1 == 949 and sign == '+' and num2 == 245:
print('949+245 = 1194')
if num1 == 949 and sign == '+' and num2 == 246:
print('949+246 = 1195')
if num1 == 949 and sign == '+' and num2 == 247:
print('949+247 = 1196')
if num1 == 949 and sign == '+' and num2 == 248:
print('949+248 = 1197')
if num1 == 949 and sign == '+' and num2 == 249:
print('949+249 = 1198')
if num1 == 900 and sign == '-' and num2 == 200:
print('900-200 = 700')
if num1 == 900 and sign == '-' and num2 == 201:
print('900-201 = 699')
if num1 == 900 and sign == '-' and num2 == 202:
print('900-202 = 698')
if num1 == 900 and sign == '-' and num2 == 203:
print('900-203 = 697')
if num1 == 900 and sign == '-' and num2 == 204:
print('900-204 = 696')
if num1 == 900 and sign == '-' and num2 == 205:
print('900-205 = 695')
if num1 == 900 and sign == '-' and num2 == 206:
print('900-206 = 694')
if num1 == 900 and sign == '-' and num2 == 207:
print('900-207 = 693')
if num1 == 900 and sign == '-' and num2 == 208:
print('900-208 = 692')
if num1 == 900 and sign == '-' and num2 == 209:
print('900-209 = 691')
if num1 == 900 and sign == '-' and num2 == 210:
print('900-210 = 690')
if num1 == 900 and sign == '-' and num2 == 211:
print('900-211 = 689')
if num1 == 900 and sign == '-' and num2 == 212:
print('900-212 = 688')
if num1 == 900 and sign == '-' and num2 == 213:
print('900-213 = 687')
if num1 == 900 and sign == '-' and num2 == 214:
print('900-214 = 686')
if num1 == 900 and sign == '-' and num2 == 215:
print('900-215 = 685')
if num1 == 900 and sign == '-' and num2 == 216:
print('900-216 = 684')
if num1 == 900 and sign == '-' and num2 == 217:
print('900-217 = 683')
if num1 == 900 and sign == '-' and num2 == 218:
print('900-218 = 682')
if num1 == 900 and sign == '-' and num2 == 219:
print('900-219 = 681')
if num1 == 900 and sign == '-' and num2 == 220:
print('900-220 = 680')
if num1 == 900 and sign == '-' and num2 == 221:
print('900-221 = 679')
if num1 == 900 and sign == '-' and num2 == 222:
print('900-222 = 678')
if num1 == 900 and sign == '-' and num2 == 223:
print('900-223 = 677')
if num1 == 900 and sign == '-' and num2 == 224:
print('900-224 = 676')
if num1 == 900 and sign == '-' and num2 == 225:
print('900-225 = 675')
if num1 == 900 and sign == '-' and num2 == 226:
print('900-226 = 674')
if num1 == 900 and sign == '-' and num2 == 227:
print('900-227 = 673')
if num1 == 900 and sign == '-' and num2 == 228:
print('900-228 = 672')
if num1 == 900 and sign == '-' and num2 == 229:
print('900-229 = 671')
if num1 == 900 and sign == '-' and num2 == 230:
print('900-230 = 670')
if num1 == 900 and sign == '-' and num2 == 231:
print('900-231 = 669')
if num1 == 900 and sign == '-' and num2 == 232:
print('900-232 = 668')
if num1 == 900 and sign == '-' and num2 == 233:
print('900-233 = 667')
if num1 == 900 and sign == '-' and num2 == 234:
print('900-234 = 666')
if num1 == 900 and sign == '-' and num2 == 235:
print('900-235 = 665')
if num1 == 900 and sign == '-' and num2 == 236:
print('900-236 = 664')
if num1 == 900 and sign == '-' and num2 == 237:
print('900-237 = 663')
if num1 == 900 and sign == '-' and num2 == 238:
print('900-238 = 662')
if num1 == 900 and sign == '-' and num2 == 239:
print('900-239 = 661')
if num1 == 900 and sign == '-' and num2 == 240:
print('900-240 = 660')
if num1 == 900 and sign == '-' and num2 == 241:
print('900-241 = 659')
if num1 == 900 and sign == '-' and num2 == 242:
print('900-242 = 658')
if num1 == 900 and sign == '-' and num2 == 243:
print('900-243 = 657')
if num1 == 900 and sign == '-' and num2 == 244:
print('900-244 = 656')
if num1 == 900 and sign == '-' and num2 == 245:
print('900-245 = 655')
if num1 == 900 and sign == '-' and num2 == 246:
print('900-246 = 654')
if num1 == 900 and sign == '-' and num2 == 247:
print('900-247 = 653')
if num1 == 900 and sign == '-' and num2 == 248:
print('900-248 = 652')
if num1 == 900 and sign == '-' and num2 == 249:
print('900-249 = 651')
if num1 == 901 and sign == '-' and num2 == 200:
print('901-200 = 701')
if num1 == 901 and sign == '-' and num2 == 201:
print('901-201 = 700')
if num1 == 901 and sign == '-' and num2 == 202:
print('901-202 = 699')
if num1 == 901 and sign == '-' and num2 == 203:
print('901-203 = 698')
if num1 == 901 and sign == '-' and num2 == 204:
print('901-204 = 697')
if num1 == 901 and sign == '-' and num2 == 205:
print('901-205 = 696')
if num1 == 901 and sign == '-' and num2 == 206:
print('901-206 = 695')
if num1 == 901 and sign == '-' and num2 == 207:
print('901-207 = 694')
if num1 == 901 and sign == '-' and num2 == 208:
print('901-208 = 693')
if num1 == 901 and sign == '-' and num2 == 209:
print('901-209 = 692')
if num1 == 901 and sign == '-' and num2 == 210:
print('901-210 = 691')
if num1 == 901 and sign == '-' and num2 == 211:
print('901-211 = 690')
if num1 == 901 and sign == '-' and num2 == 212:
print('901-212 = 689')
if num1 == 901 and sign == '-' and num2 == 213:
print('901-213 = 688')
if num1 == 901 and sign == '-' and num2 == 214:
print('901-214 = 687')
if num1 == 901 and sign == '-' and num2 == 215:
print('901-215 = 686')
if num1 == 901 and sign == '-' and num2 == 216:
print('901-216 = 685')
if num1 == 901 and sign == '-' and num2 == 217:
print('901-217 = 684')
if num1 == 901 and sign == '-' and num2 == 218:
print('901-218 = 683')
if num1 == 901 and sign == '-' and num2 == 219:
print('901-219 = 682')
if num1 == 901 and sign == '-' and num2 == 220:
print('901-220 = 681')
if num1 == 901 and sign == '-' and num2 == 221:
print('901-221 = 680')
if num1 == 901 and sign == '-' and num2 == 222:
print('901-222 = 679')
if num1 == 901 and sign == '-' and num2 == 223:
print('901-223 = 678')
if num1 == 901 and sign == '-' and num2 == 224:
print('901-224 = 677')
if num1 == 901 and sign == '-' and num2 == 225:
print('901-225 = 676')
if num1 == 901 and sign == '-' and num2 == 226:
print('901-226 = 675')
if num1 == 901 and sign == '-' and num2 == 227:
print('901-227 = 674')
if num1 == 901 and sign == '-' and num2 == 228:
print('901-228 = 673')
if num1 == 901 and sign == '-' and num2 == 229:
print('901-229 = 672')
if num1 == 901 and sign == '-' and num2 == 230:
print('901-230 = 671')
if num1 == 901 and sign == '-' and num2 == 231:
print('901-231 = 670')
if num1 == 901 and sign == '-' and num2 == 232:
print('901-232 = 669')
if num1 == 901 and sign == '-' and num2 == 233:
print('901-233 = 668')
if num1 == 901 and sign == '-' and num2 == 234:
print('901-234 = 667')
if num1 == 901 and sign == '-' and num2 == 235:
print('901-235 = 666')
if num1 == 901 and sign == '-' and num2 == 236:
print('901-236 = 665')
if num1 == 901 and sign == '-' and num2 == 237:
print('901-237 = 664')
if num1 == 901 and sign == '-' and num2 == 238:
print('901-238 = 663')
if num1 == 901 and sign == '-' and num2 == 239:
print('901-239 = 662')
if num1 == 901 and sign == '-' and num2 == 240:
print('901-240 = 661')
if num1 == 901 and sign == '-' and num2 == 241:
print('901-241 = 660')
if num1 == 901 and sign == '-' and num2 == 242:
print('901-242 = 659')
if num1 == 901 and sign == '-' and num2 == 243:
print('901-243 = 658')
if num1 == 901 and sign == '-' and num2 == 244:
print('901-244 = 657')
if num1 == 901 and sign == '-' and num2 == 245:
print('901-245 = 656')
if num1 == 901 and sign == '-' and num2 == 246:
print('901-246 = 655')
if num1 == 901 and sign == '-' and num2 == 247:
print('901-247 = 654')
if num1 == 901 and sign == '-' and num2 == 248:
print('901-248 = 653')
if num1 == 901 and sign == '-' and num2 == 249:
print('901-249 = 652')
if num1 == 902 and sign == '-' and num2 == 200:
print('902-200 = 702')
if num1 == 902 and sign == '-' and num2 == 201:
print('902-201 = 701')
if num1 == 902 and sign == '-' and num2 == 202:
print('902-202 = 700')
if num1 == 902 and sign == '-' and num2 == 203:
print('902-203 = 699')
if num1 == 902 and sign == '-' and num2 == 204:
print('902-204 = 698')
if num1 == 902 and sign == '-' and num2 == 205:
print('902-205 = 697')
if num1 == 902 and sign == '-' and num2 == 206:
print('902-206 = 696')
if num1 == 902 and sign == '-' and num2 == 207:
print('902-207 = 695')
if num1 == 902 and sign == '-' and num2 == 208:
print('902-208 = 694')
if num1 == 902 and sign == '-' and num2 == 209:
print('902-209 = 693')
if num1 == 902 and sign == '-' and num2 == 210:
print('902-210 = 692')
if num1 == 902 and sign == '-' and num2 == 211:
print('902-211 = 691')
if num1 == 902 and sign == '-' and num2 == 212:
print('902-212 = 690')
if num1 == 902 and sign == '-' and num2 == 213:
print('902-213 = 689')
if num1 == 902 and sign == '-' and num2 == 214:
print('902-214 = 688')
if num1 == 902 and sign == '-' and num2 == 215:
print('902-215 = 687')
if num1 == 902 and sign == '-' and num2 == 216:
print('902-216 = 686')
if num1 == 902 and sign == '-' and num2 == 217:
print('902-217 = 685')
if num1 == 902 and sign == '-' and num2 == 218:
print('902-218 = 684')
if num1 == 902 and sign == '-' and num2 == 219:
print('902-219 = 683')
if num1 == 902 and sign == '-' and num2 == 220:
print('902-220 = 682')
if num1 == 902 and sign == '-' and num2 == 221:
print('902-221 = 681')
if num1 == 902 and sign == '-' and num2 == 222:
print('902-222 = 680')
if num1 == 902 and sign == '-' and num2 == 223:
print('902-223 = 679')
if num1 == 902 and sign == '-' and num2 == 224:
print('902-224 = 678')
if num1 == 902 and sign == '-' and num2 == 225:
print('902-225 = 677')
if num1 == 902 and sign == '-' and num2 == 226:
print('902-226 = 676')
if num1 == 902 and sign == '-' and num2 == 227:
print('902-227 = 675')
if num1 == 902 and sign == '-' and num2 == 228:
print('902-228 = 674')
if num1 == 902 and sign == '-' and num2 == 229:
print('902-229 = 673')
if num1 == 902 and sign == '-' and num2 == 230:
print('902-230 = 672')
if num1 == 902 and sign == '-' and num2 == 231:
print('902-231 = 671')
if num1 == 902 and sign == '-' and num2 == 232:
print('902-232 = 670')
if num1 == 902 and sign == '-' and num2 == 233:
print('902-233 = 669')
if num1 == 902 and sign == '-' and num2 == 234:
print('902-234 = 668')
if num1 == 902 and sign == '-' and num2 == 235:
print('902-235 = 667')
if num1 == 902 and sign == '-' and num2 == 236:
print('902-236 = 666')
if num1 == 902 and sign == '-' and num2 == 237:
print('902-237 = 665')
if num1 == 902 and sign == '-' and num2 == 238:
print('902-238 = 664')
if num1 == 902 and sign == '-' and num2 == 239:
print('902-239 = 663')
if num1 == 902 and sign == '-' and num2 == 240:
print('902-240 = 662')
if num1 == 902 and sign == '-' and num2 == 241:
print('902-241 = 661')
if num1 == 902 and sign == '-' and num2 == 242:
print('902-242 = 660')
if num1 == 902 and sign == '-' and num2 == 243:
print('902-243 = 659')
if num1 == 902 and sign == '-' and num2 == 244:
print('902-244 = 658')
if num1 == 902 and sign == '-' and num2 == 245:
print('902-245 = 657')
if num1 == 902 and sign == '-' and num2 == 246:
print('902-246 = 656')
if num1 == 902 and sign == '-' and num2 == 247:
print('902-247 = 655')
if num1 == 902 and sign == '-' and num2 == 248:
print('902-248 = 654')
if num1 == 902 and sign == '-' and num2 == 249:
print('902-249 = 653')
if num1 == 903 and sign == '-' and num2 == 200:
print('903-200 = 703')
if num1 == 903 and sign == '-' and num2 == 201:
print('903-201 = 702')
if num1 == 903 and sign == '-' and num2 == 202:
print('903-202 = 701')
if num1 == 903 and sign == '-' and num2 == 203:
print('903-203 = 700')
if num1 == 903 and sign == '-' and num2 == 204:
print('903-204 = 699')
if num1 == 903 and sign == '-' and num2 == 205:
print('903-205 = 698')
if num1 == 903 and sign == '-' and num2 == 206:
print('903-206 = 697')
if num1 == 903 and sign == '-' and num2 == 207:
print('903-207 = 696')
if num1 == 903 and sign == '-' and num2 == 208:
print('903-208 = 695')
if num1 == 903 and sign == '-' and num2 == 209:
print('903-209 = 694')
if num1 == 903 and sign == '-' and num2 == 210:
print('903-210 = 693')
if num1 == 903 and sign == '-' and num2 == 211:
print('903-211 = 692')
if num1 == 903 and sign == '-' and num2 == 212:
print('903-212 = 691')
if num1 == 903 and sign == '-' and num2 == 213:
print('903-213 = 690')
if num1 == 903 and sign == '-' and num2 == 214:
print('903-214 = 689')
if num1 == 903 and sign == '-' and num2 == 215:
print('903-215 = 688')
if num1 == 903 and sign == '-' and num2 == 216:
print('903-216 = 687')
if num1 == 903 and sign == '-' and num2 == 217:
print('903-217 = 686')
if num1 == 903 and sign == '-' and num2 == 218:
print('903-218 = 685')
if num1 == 903 and sign == '-' and num2 == 219:
print('903-219 = 684')
if num1 == 903 and sign == '-' and num2 == 220:
print('903-220 = 683')
if num1 == 903 and sign == '-' and num2 == 221:
print('903-221 = 682')
if num1 == 903 and sign == '-' and num2 == 222:
print('903-222 = 681')
if num1 == 903 and sign == '-' and num2 == 223:
print('903-223 = 680')
if num1 == 903 and sign == '-' and num2 == 224:
print('903-224 = 679')
if num1 == 903 and sign == '-' and num2 == 225:
print('903-225 = 678')
if num1 == 903 and sign == '-' and num2 == 226:
print('903-226 = 677')
if num1 == 903 and sign == '-' and num2 == 227:
print('903-227 = 676')
if num1 == 903 and sign == '-' and num2 == 228:
print('903-228 = 675')
if num1 == 903 and sign == '-' and num2 == 229:
print('903-229 = 674')
if num1 == 903 and sign == '-' and num2 == 230:
print('903-230 = 673')
if num1 == 903 and sign == '-' and num2 == 231:
print('903-231 = 672')
if num1 == 903 and sign == '-' and num2 == 232:
print('903-232 = 671')
if num1 == 903 and sign == '-' and num2 == 233:
print('903-233 = 670')
if num1 == 903 and sign == '-' and num2 == 234:
print('903-234 = 669')
if num1 == 903 and sign == '-' and num2 == 235:
print('903-235 = 668')
if num1 == 903 and sign == '-' and num2 == 236:
print('903-236 = 667')
if num1 == 903 and sign == '-' and num2 == 237:
print('903-237 = 666')
if num1 == 903 and sign == '-' and num2 == 238:
print('903-238 = 665')
if num1 == 903 and sign == '-' and num2 == 239:
print('903-239 = 664')
if num1 == 903 and sign == '-' and num2 == 240:
print('903-240 = 663')
if num1 == 903 and sign == '-' and num2 == 241:
print('903-241 = 662')
if num1 == 903 and sign == '-' and num2 == 242:
print('903-242 = 661')
if num1 == 903 and sign == '-' and num2 == 243:
print('903-243 = 660')
if num1 == 903 and sign == '-' and num2 == 244:
print('903-244 = 659')
if num1 == 903 and sign == '-' and num2 == 245:
print('903-245 = 658')
if num1 == 903 and sign == '-' and num2 == 246:
print('903-246 = 657')
if num1 == 903 and sign == '-' and num2 == 247:
print('903-247 = 656')
if num1 == 903 and sign == '-' and num2 == 248:
print('903-248 = 655')
if num1 == 903 and sign == '-' and num2 == 249:
print('903-249 = 654')
if num1 == 904 and sign == '-' and num2 == 200:
print('904-200 = 704')
if num1 == 904 and sign == '-' and num2 == 201:
print('904-201 = 703')
if num1 == 904 and sign == '-' and num2 == 202:
print('904-202 = 702')
if num1 == 904 and sign == '-' and num2 == 203:
print('904-203 = 701')
if num1 == 904 and sign == '-' and num2 == 204:
print('904-204 = 700')
if num1 == 904 and sign == '-' and num2 == 205:
print('904-205 = 699')
if num1 == 904 and sign == '-' and num2 == 206:
print('904-206 = 698')
if num1 == 904 and sign == '-' and num2 == 207:
print('904-207 = 697')
if num1 == 904 and sign == '-' and num2 == 208:
print('904-208 = 696')
if num1 == 904 and sign == '-' and num2 == 209:
print('904-209 = 695')
if num1 == 904 and sign == '-' and num2 == 210:
print('904-210 = 694')
if num1 == 904 and sign == '-' and num2 == 211:
print('904-211 = 693')
if num1 == 904 and sign == '-' and num2 == 212:
print('904-212 = 692')
if num1 == 904 and sign == '-' and num2 == 213:
print('904-213 = 691')
if num1 == 904 and sign == '-' and num2 == 214:
print('904-214 = 690')
if num1 == 904 and sign == '-' and num2 == 215:
print('904-215 = 689')
if num1 == 904 and sign == '-' and num2 == 216:
print('904-216 = 688')
if num1 == 904 and sign == '-' and num2 == 217:
print('904-217 = 687')
if num1 == 904 and sign == '-' and num2 == 218:
print('904-218 = 686')
if num1 == 904 and sign == '-' and num2 == 219:
print('904-219 = 685')
if num1 == 904 and sign == '-' and num2 == 220:
print('904-220 = 684')
if num1 == 904 and sign == '-' and num2 == 221:
print('904-221 = 683')
if num1 == 904 and sign == '-' and num2 == 222:
print('904-222 = 682')
if num1 == 904 and sign == '-' and num2 == 223:
print('904-223 = 681')
if num1 == 904 and sign == '-' and num2 == 224:
print('904-224 = 680')
if num1 == 904 and sign == '-' and num2 == 225:
print('904-225 = 679')
if num1 == 904 and sign == '-' and num2 == 226:
print('904-226 = 678')
if num1 == 904 and sign == '-' and num2 == 227:
print('904-227 = 677')
if num1 == 904 and sign == '-' and num2 == 228:
print('904-228 = 676')
if num1 == 904 and sign == '-' and num2 == 229:
print('904-229 = 675')
if num1 == 904 and sign == '-' and num2 == 230:
print('904-230 = 674')
if num1 == 904 and sign == '-' and num2 == 231:
print('904-231 = 673')
if num1 == 904 and sign == '-' and num2 == 232:
print('904-232 = 672')
if num1 == 904 and sign == '-' and num2 == 233:
print('904-233 = 671')
if num1 == 904 and sign == '-' and num2 == 234:
print('904-234 = 670')
if num1 == 904 and sign == '-' and num2 == 235:
print('904-235 = 669')
if num1 == 904 and sign == '-' and num2 == 236:
print('904-236 = 668')
if num1 == 904 and sign == '-' and num2 == 237:
print('904-237 = 667')
if num1 == 904 and sign == '-' and num2 == 238:
print('904-238 = 666')
if num1 == 904 and sign == '-' and num2 == 239:
print('904-239 = 665')
if num1 == 904 and sign == '-' and num2 == 240:
print('904-240 = 664')
if num1 == 904 and sign == '-' and num2 == 241:
print('904-241 = 663')
if num1 == 904 and sign == '-' and num2 == 242:
print('904-242 = 662')
if num1 == 904 and sign == '-' and num2 == 243:
print('904-243 = 661')
if num1 == 904 and sign == '-' and num2 == 244:
print('904-244 = 660')
if num1 == 904 and sign == '-' and num2 == 245:
print('904-245 = 659')
if num1 == 904 and sign == '-' and num2 == 246:
print('904-246 = 658')
if num1 == 904 and sign == '-' and num2 == 247:
print('904-247 = 657')
if num1 == 904 and sign == '-' and num2 == 248:
print('904-248 = 656')
if num1 == 904 and sign == '-' and num2 == 249:
print('904-249 = 655')
if num1 == 905 and sign == '-' and num2 == 200:
print('905-200 = 705')
if num1 == 905 and sign == '-' and num2 == 201:
print('905-201 = 704')
if num1 == 905 and sign == '-' and num2 == 202:
print('905-202 = 703')
if num1 == 905 and sign == '-' and num2 == 203:
print('905-203 = 702')
if num1 == 905 and sign == '-' and num2 == 204:
print('905-204 = 701')
if num1 == 905 and sign == '-' and num2 == 205:
print('905-205 = 700')
if num1 == 905 and sign == '-' and num2 == 206:
print('905-206 = 699')
if num1 == 905 and sign == '-' and num2 == 207:
print('905-207 = 698')
if num1 == 905 and sign == '-' and num2 == 208:
print('905-208 = 697')
if num1 == 905 and sign == '-' and num2 == 209:
print('905-209 = 696')
if num1 == 905 and sign == '-' and num2 == 210:
print('905-210 = 695')
if num1 == 905 and sign == '-' and num2 == 211:
print('905-211 = 694')
if num1 == 905 and sign == '-' and num2 == 212:
print('905-212 = 693')
if num1 == 905 and sign == '-' and num2 == 213:
print('905-213 = 692')
if num1 == 905 and sign == '-' and num2 == 214:
print('905-214 = 691')
if num1 == 905 and sign == '-' and num2 == 215:
print('905-215 = 690')
if num1 == 905 and sign == '-' and num2 == 216:
print('905-216 = 689')
if num1 == 905 and sign == '-' and num2 == 217:
print('905-217 = 688')
if num1 == 905 and sign == '-' and num2 == 218:
print('905-218 = 687')
if num1 == 905 and sign == '-' and num2 == 219:
print('905-219 = 686')
if num1 == 905 and sign == '-' and num2 == 220:
print('905-220 = 685')
if num1 == 905 and sign == '-' and num2 == 221:
print('905-221 = 684')
if num1 == 905 and sign == '-' and num2 == 222:
print('905-222 = 683')
if num1 == 905 and sign == '-' and num2 == 223:
print('905-223 = 682')
if num1 == 905 and sign == '-' and num2 == 224:
print('905-224 = 681')
if num1 == 905 and sign == '-' and num2 == 225:
print('905-225 = 680')
if num1 == 905 and sign == '-' and num2 == 226:
print('905-226 = 679')
if num1 == 905 and sign == '-' and num2 == 227:
print('905-227 = 678')
if num1 == 905 and sign == '-' and num2 == 228:
print('905-228 = 677')
if num1 == 905 and sign == '-' and num2 == 229:
print('905-229 = 676')
if num1 == 905 and sign == '-' and num2 == 230:
print('905-230 = 675')
if num1 == 905 and sign == '-' and num2 == 231:
print('905-231 = 674')
if num1 == 905 and sign == '-' and num2 == 232:
print('905-232 = 673')
if num1 == 905 and sign == '-' and num2 == 233:
print('905-233 = 672')
if num1 == 905 and sign == '-' and num2 == 234:
print('905-234 = 671')
if num1 == 905 and sign == '-' and num2 == 235:
print('905-235 = 670')
if num1 == 905 and sign == '-' and num2 == 236:
print('905-236 = 669')
if num1 == 905 and sign == '-' and num2 == 237:
print('905-237 = 668')
if num1 == 905 and sign == '-' and num2 == 238:
print('905-238 = 667')
if num1 == 905 and sign == '-' and num2 == 239:
print('905-239 = 666')
if num1 == 905 and sign == '-' and num2 == 240:
print('905-240 = 665')
if num1 == 905 and sign == '-' and num2 == 241:
print('905-241 = 664')
if num1 == 905 and sign == '-' and num2 == 242:
print('905-242 = 663')
if num1 == 905 and sign == '-' and num2 == 243:
print('905-243 = 662')
if num1 == 905 and sign == '-' and num2 == 244:
print('905-244 = 661')
if num1 == 905 and sign == '-' and num2 == 245:
print('905-245 = 660')
if num1 == 905 and sign == '-' and num2 == 246:
print('905-246 = 659')
if num1 == 905 and sign == '-' and num2 == 247:
print('905-247 = 658')
if num1 == 905 and sign == '-' and num2 == 248:
print('905-248 = 657')
if num1 == 905 and sign == '-' and num2 == 249:
print('905-249 = 656')
if num1 == 906 and sign == '-' and num2 == 200:
print('906-200 = 706')
if num1 == 906 and sign == '-' and num2 == 201:
print('906-201 = 705')
if num1 == 906 and sign == '-' and num2 == 202:
print('906-202 = 704')
if num1 == 906 and sign == '-' and num2 == 203:
print('906-203 = 703')
if num1 == 906 and sign == '-' and num2 == 204:
print('906-204 = 702')
if num1 == 906 and sign == '-' and num2 == 205:
print('906-205 = 701')
if num1 == 906 and sign == '-' and num2 == 206:
print('906-206 = 700')
if num1 == 906 and sign == '-' and num2 == 207:
print('906-207 = 699')
if num1 == 906 and sign == '-' and num2 == 208:
print('906-208 = 698')
if num1 == 906 and sign == '-' and num2 == 209:
print('906-209 = 697')
if num1 == 906 and sign == '-' and num2 == 210:
print('906-210 = 696')
if num1 == 906 and sign == '-' and num2 == 211:
print('906-211 = 695')
if num1 == 906 and sign == '-' and num2 == 212:
print('906-212 = 694')
if num1 == 906 and sign == '-' and num2 == 213:
print('906-213 = 693')
if num1 == 906 and sign == '-' and num2 == 214:
print('906-214 = 692')
if num1 == 906 and sign == '-' and num2 == 215:
print('906-215 = 691')
if num1 == 906 and sign == '-' and num2 == 216:
print('906-216 = 690')
if num1 == 906 and sign == '-' and num2 == 217:
print('906-217 = 689')
if num1 == 906 and sign == '-' and num2 == 218:
print('906-218 = 688')
if num1 == 906 and sign == '-' and num2 == 219:
print('906-219 = 687')
if num1 == 906 and sign == '-' and num2 == 220:
print('906-220 = 686')
if num1 == 906 and sign == '-' and num2 == 221:
print('906-221 = 685')
if num1 == 906 and sign == '-' and num2 == 222:
print('906-222 = 684')
if num1 == 906 and sign == '-' and num2 == 223:
print('906-223 = 683')
if num1 == 906 and sign == '-' and num2 == 224:
print('906-224 = 682')
if num1 == 906 and sign == '-' and num2 == 225:
print('906-225 = 681')
if num1 == 906 and sign == '-' and num2 == 226:
print('906-226 = 680')
if num1 == 906 and sign == '-' and num2 == 227:
print('906-227 = 679')
if num1 == 906 and sign == '-' and num2 == 228:
print('906-228 = 678')
if num1 == 906 and sign == '-' and num2 == 229:
print('906-229 = 677')
if num1 == 906 and sign == '-' and num2 == 230:
print('906-230 = 676')
if num1 == 906 and sign == '-' and num2 == 231:
print('906-231 = 675')
if num1 == 906 and sign == '-' and num2 == 232:
print('906-232 = 674')
if num1 == 906 and sign == '-' and num2 == 233:
print('906-233 = 673')
if num1 == 906 and sign == '-' and num2 == 234:
print('906-234 = 672')
if num1 == 906 and sign == '-' and num2 == 235:
print('906-235 = 671')
if num1 == 906 and sign == '-' and num2 == 236:
print('906-236 = 670')
if num1 == 906 and sign == '-' and num2 == 237:
print('906-237 = 669')
if num1 == 906 and sign == '-' and num2 == 238:
print('906-238 = 668')
if num1 == 906 and sign == '-' and num2 == 239:
print('906-239 = 667')
if num1 == 906 and sign == '-' and num2 == 240:
print('906-240 = 666')
if num1 == 906 and sign == '-' and num2 == 241:
print('906-241 = 665')
if num1 == 906 and sign == '-' and num2 == 242:
print('906-242 = 664')
if num1 == 906 and sign == '-' and num2 == 243:
print('906-243 = 663')
if num1 == 906 and sign == '-' and num2 == 244:
print('906-244 = 662')
if num1 == 906 and sign == '-' and num2 == 245:
print('906-245 = 661')
if num1 == 906 and sign == '-' and num2 == 246:
print('906-246 = 660')
if num1 == 906 and sign == '-' and num2 == 247:
print('906-247 = 659')
if num1 == 906 and sign == '-' and num2 == 248:
print('906-248 = 658')
if num1 == 906 and sign == '-' and num2 == 249:
print('906-249 = 657')
if num1 == 907 and sign == '-' and num2 == 200:
print('907-200 = 707')
if num1 == 907 and sign == '-' and num2 == 201:
print('907-201 = 706')
if num1 == 907 and sign == '-' and num2 == 202:
print('907-202 = 705')
if num1 == 907 and sign == '-' and num2 == 203:
print('907-203 = 704')
if num1 == 907 and sign == '-' and num2 == 204:
print('907-204 = 703')
if num1 == 907 and sign == '-' and num2 == 205:
print('907-205 = 702')
if num1 == 907 and sign == '-' and num2 == 206:
print('907-206 = 701')
if num1 == 907 and sign == '-' and num2 == 207:
print('907-207 = 700')
if num1 == 907 and sign == '-' and num2 == 208:
print('907-208 = 699')
if num1 == 907 and sign == '-' and num2 == 209:
print('907-209 = 698')
if num1 == 907 and sign == '-' and num2 == 210:
print('907-210 = 697')
if num1 == 907 and sign == '-' and num2 == 211:
print('907-211 = 696')
if num1 == 907 and sign == '-' and num2 == 212:
print('907-212 = 695')
if num1 == 907 and sign == '-' and num2 == 213:
print('907-213 = 694')
if num1 == 907 and sign == '-' and num2 == 214:
print('907-214 = 693')
if num1 == 907 and sign == '-' and num2 == 215:
print('907-215 = 692')
if num1 == 907 and sign == '-' and num2 == 216:
print('907-216 = 691')
if num1 == 907 and sign == '-' and num2 == 217:
print('907-217 = 690')
if num1 == 907 and sign == '-' and num2 == 218:
print('907-218 = 689')
if num1 == 907 and sign == '-' and num2 == 219:
print('907-219 = 688')
if num1 == 907 and sign == '-' and num2 == 220:
print('907-220 = 687')
if num1 == 907 and sign == '-' and num2 == 221:
print('907-221 = 686')
if num1 == 907 and sign == '-' and num2 == 222:
print('907-222 = 685')
if num1 == 907 and sign == '-' and num2 == 223:
print('907-223 = 684')
if num1 == 907 and sign == '-' and num2 == 224:
print('907-224 = 683')
if num1 == 907 and sign == '-' and num2 == 225:
print('907-225 = 682')
if num1 == 907 and sign == '-' and num2 == 226:
print('907-226 = 681')
if num1 == 907 and sign == '-' and num2 == 227:
print('907-227 = 680')
if num1 == 907 and sign == '-' and num2 == 228:
print('907-228 = 679')
if num1 == 907 and sign == '-' and num2 == 229:
print('907-229 = 678')
if num1 == 907 and sign == '-' and num2 == 230:
print('907-230 = 677')
if num1 == 907 and sign == '-' and num2 == 231:
print('907-231 = 676')
if num1 == 907 and sign == '-' and num2 == 232:
print('907-232 = 675')
if num1 == 907 and sign == '-' and num2 == 233:
print('907-233 = 674')
if num1 == 907 and sign == '-' and num2 == 234:
print('907-234 = 673')
if num1 == 907 and sign == '-' and num2 == 235:
print('907-235 = 672')
if num1 == 907 and sign == '-' and num2 == 236:
print('907-236 = 671')
if num1 == 907 and sign == '-' and num2 == 237:
print('907-237 = 670')
if num1 == 907 and sign == '-' and num2 == 238:
print('907-238 = 669')
if num1 == 907 and sign == '-' and num2 == 239:
print('907-239 = 668')
if num1 == 907 and sign == '-' and num2 == 240:
print('907-240 = 667')
if num1 == 907 and sign == '-' and num2 == 241:
print('907-241 = 666')
if num1 == 907 and sign == '-' and num2 == 242:
print('907-242 = 665')
if num1 == 907 and sign == '-' and num2 == 243:
print('907-243 = 664')
if num1 == 907 and sign == '-' and num2 == 244:
print('907-244 = 663')
if num1 == 907 and sign == '-' and num2 == 245:
print('907-245 = 662')
if num1 == 907 and sign == '-' and num2 == 246:
print('907-246 = 661')
if num1 == 907 and sign == '-' and num2 == 247:
print('907-247 = 660')
if num1 == 907 and sign == '-' and num2 == 248:
print('907-248 = 659')
if num1 == 907 and sign == '-' and num2 == 249:
print('907-249 = 658')
if num1 == 908 and sign == '-' and num2 == 200:
print('908-200 = 708')
if num1 == 908 and sign == '-' and num2 == 201:
print('908-201 = 707')
if num1 == 908 and sign == '-' and num2 == 202:
print('908-202 = 706')
if num1 == 908 and sign == '-' and num2 == 203:
print('908-203 = 705')
if num1 == 908 and sign == '-' and num2 == 204:
print('908-204 = 704')
if num1 == 908 and sign == '-' and num2 == 205:
print('908-205 = 703')
if num1 == 908 and sign == '-' and num2 == 206:
print('908-206 = 702')
if num1 == 908 and sign == '-' and num2 == 207:
print('908-207 = 701')
if num1 == 908 and sign == '-' and num2 == 208:
print('908-208 = 700')
if num1 == 908 and sign == '-' and num2 == 209:
print('908-209 = 699')
if num1 == 908 and sign == '-' and num2 == 210:
print('908-210 = 698')
if num1 == 908 and sign == '-' and num2 == 211:
print('908-211 = 697')
if num1 == 908 and sign == '-' and num2 == 212:
print('908-212 = 696')
if num1 == 908 and sign == '-' and num2 == 213:
print('908-213 = 695')
if num1 == 908 and sign == '-' and num2 == 214:
print('908-214 = 694')
if num1 == 908 and sign == '-' and num2 == 215:
print('908-215 = 693')
if num1 == 908 and sign == '-' and num2 == 216:
print('908-216 = 692')
if num1 == 908 and sign == '-' and num2 == 217:
print('908-217 = 691')
if num1 == 908 and sign == '-' and num2 == 218:
print('908-218 = 690')
if num1 == 908 and sign == '-' and num2 == 219:
print('908-219 = 689')
if num1 == 908 and sign == '-' and num2 == 220:
print('908-220 = 688')
if num1 == 908 and sign == '-' and num2 == 221:
print('908-221 = 687')
if num1 == 908 and sign == '-' and num2 == 222:
print('908-222 = 686')
if num1 == 908 and sign == '-' and num2 == 223:
print('908-223 = 685')
if num1 == 908 and sign == '-' and num2 == 224:
print('908-224 = 684')
if num1 == 908 and sign == '-' and num2 == 225:
print('908-225 = 683')
if num1 == 908 and sign == '-' and num2 == 226:
print('908-226 = 682')
if num1 == 908 and sign == '-' and num2 == 227:
print('908-227 = 681')
if num1 == 908 and sign == '-' and num2 == 228:
print('908-228 = 680')
if num1 == 908 and sign == '-' and num2 == 229:
print('908-229 = 679')
if num1 == 908 and sign == '-' and num2 == 230:
print('908-230 = 678')
if num1 == 908 and sign == '-' and num2 == 231:
print('908-231 = 677')
if num1 == 908 and sign == '-' and num2 == 232:
print('908-232 = 676')
if num1 == 908 and sign == '-' and num2 == 233:
print('908-233 = 675')
if num1 == 908 and sign == '-' and num2 == 234:
print('908-234 = 674')
if num1 == 908 and sign == '-' and num2 == 235:
print('908-235 = 673')
if num1 == 908 and sign == '-' and num2 == 236:
print('908-236 = 672')
if num1 == 908 and sign == '-' and num2 == 237:
print('908-237 = 671')
if num1 == 908 and sign == '-' and num2 == 238:
print('908-238 = 670')
if num1 == 908 and sign == '-' and num2 == 239:
print('908-239 = 669')
if num1 == 908 and sign == '-' and num2 == 240:
print('908-240 = 668')
if num1 == 908 and sign == '-' and num2 == 241:
print('908-241 = 667')
if num1 == 908 and sign == '-' and num2 == 242:
print('908-242 = 666')
if num1 == 908 and sign == '-' and num2 == 243:
print('908-243 = 665')
if num1 == 908 and sign == '-' and num2 == 244:
print('908-244 = 664')
if num1 == 908 and sign == '-' and num2 == 245:
print('908-245 = 663')
if num1 == 908 and sign == '-' and num2 == 246:
print('908-246 = 662')
if num1 == 908 and sign == '-' and num2 == 247:
print('908-247 = 661')
if num1 == 908 and sign == '-' and num2 == 248:
print('908-248 = 660')
if num1 == 908 and sign == '-' and num2 == 249:
print('908-249 = 659')
if num1 == 909 and sign == '-' and num2 == 200:
print('909-200 = 709')
if num1 == 909 and sign == '-' and num2 == 201:
print('909-201 = 708')
if num1 == 909 and sign == '-' and num2 == 202:
print('909-202 = 707')
if num1 == 909 and sign == '-' and num2 == 203:
print('909-203 = 706')
if num1 == 909 and sign == '-' and num2 == 204:
print('909-204 = 705')
if num1 == 909 and sign == '-' and num2 == 205:
print('909-205 = 704')
if num1 == 909 and sign == '-' and num2 == 206:
print('909-206 = 703')
if num1 == 909 and sign == '-' and num2 == 207:
print('909-207 = 702')
if num1 == 909 and sign == '-' and num2 == 208:
print('909-208 = 701')
if num1 == 909 and sign == '-' and num2 == 209:
print('909-209 = 700')
if num1 == 909 and sign == '-' and num2 == 210:
print('909-210 = 699')
if num1 == 909 and sign == '-' and num2 == 211:
print('909-211 = 698')
if num1 == 909 and sign == '-' and num2 == 212:
print('909-212 = 697')
if num1 == 909 and sign == '-' and num2 == 213:
print('909-213 = 696')
if num1 == 909 and sign == '-' and num2 == 214:
print('909-214 = 695')
if num1 == 909 and sign == '-' and num2 == 215:
print('909-215 = 694')
if num1 == 909 and sign == '-' and num2 == 216:
print('909-216 = 693')
if num1 == 909 and sign == '-' and num2 == 217:
print('909-217 = 692')
if num1 == 909 and sign == '-' and num2 == 218:
print('909-218 = 691')
if num1 == 909 and sign == '-' and num2 == 219:
print('909-219 = 690')
if num1 == 909 and sign == '-' and num2 == 220:
print('909-220 = 689')
if num1 == 909 and sign == '-' and num2 == 221:
print('909-221 = 688')
if num1 == 909 and sign == '-' and num2 == 222:
print('909-222 = 687')
if num1 == 909 and sign == '-' and num2 == 223:
print('909-223 = 686')
if num1 == 909 and sign == '-' and num2 == 224:
print('909-224 = 685')
if num1 == 909 and sign == '-' and num2 == 225:
print('909-225 = 684')
if num1 == 909 and sign == '-' and num2 == 226:
print('909-226 = 683')
if num1 == 909 and sign == '-' and num2 == 227:
print('909-227 = 682')
if num1 == 909 and sign == '-' and num2 == 228:
print('909-228 = 681')
if num1 == 909 and sign == '-' and num2 == 229:
print('909-229 = 680')
if num1 == 909 and sign == '-' and num2 == 230:
print('909-230 = 679')
if num1 == 909 and sign == '-' and num2 == 231:
print('909-231 = 678')
if num1 == 909 and sign == '-' and num2 == 232:
print('909-232 = 677')
if num1 == 909 and sign == '-' and num2 == 233:
print('909-233 = 676')
if num1 == 909 and sign == '-' and num2 == 234:
print('909-234 = 675')
if num1 == 909 and sign == '-' and num2 == 235:
print('909-235 = 674')
if num1 == 909 and sign == '-' and num2 == 236:
print('909-236 = 673')
if num1 == 909 and sign == '-' and num2 == 237:
print('909-237 = 672')
if num1 == 909 and sign == '-' and num2 == 238:
print('909-238 = 671')
if num1 == 909 and sign == '-' and num2 == 239:
print('909-239 = 670')
if num1 == 909 and sign == '-' and num2 == 240:
print('909-240 = 669')
if num1 == 909 and sign == '-' and num2 == 241:
print('909-241 = 668')
if num1 == 909 and sign == '-' and num2 == 242:
print('909-242 = 667')
if num1 == 909 and sign == '-' and num2 == 243:
print('909-243 = 666')
if num1 == 909 and sign == '-' and num2 == 244:
print('909-244 = 665')
if num1 == 909 and sign == '-' and num2 == 245:
print('909-245 = 664')
if num1 == 909 and sign == '-' and num2 == 246:
print('909-246 = 663')
if num1 == 909 and sign == '-' and num2 == 247:
print('909-247 = 662')
if num1 == 909 and sign == '-' and num2 == 248:
print('909-248 = 661')
if num1 == 909 and sign == '-' and num2 == 249:
print('909-249 = 660')
if num1 == 910 and sign == '-' and num2 == 200:
print('910-200 = 710')
if num1 == 910 and sign == '-' and num2 == 201:
print('910-201 = 709')
if num1 == 910 and sign == '-' and num2 == 202:
print('910-202 = 708')
if num1 == 910 and sign == '-' and num2 == 203:
print('910-203 = 707')
if num1 == 910 and sign == '-' and num2 == 204:
print('910-204 = 706')
if num1 == 910 and sign == '-' and num2 == 205:
print('910-205 = 705')
if num1 == 910 and sign == '-' and num2 == 206:
print('910-206 = 704')
if num1 == 910 and sign == '-' and num2 == 207:
print('910-207 = 703')
if num1 == 910 and sign == '-' and num2 == 208:
print('910-208 = 702')
if num1 == 910 and sign == '-' and num2 == 209:
print('910-209 = 701')
if num1 == 910 and sign == '-' and num2 == 210:
print('910-210 = 700')
if num1 == 910 and sign == '-' and num2 == 211:
print('910-211 = 699')
if num1 == 910 and sign == '-' and num2 == 212:
print('910-212 = 698')
if num1 == 910 and sign == '-' and num2 == 213:
print('910-213 = 697')
if num1 == 910 and sign == '-' and num2 == 214:
print('910-214 = 696')
if num1 == 910 and sign == '-' and num2 == 215:
print('910-215 = 695')
if num1 == 910 and sign == '-' and num2 == 216:
print('910-216 = 694')
if num1 == 910 and sign == '-' and num2 == 217:
print('910-217 = 693')
if num1 == 910 and sign == '-' and num2 == 218:
print('910-218 = 692')
if num1 == 910 and sign == '-' and num2 == 219:
print('910-219 = 691')
if num1 == 910 and sign == '-' and num2 == 220:
print('910-220 = 690')
if num1 == 910 and sign == '-' and num2 == 221:
print('910-221 = 689')
if num1 == 910 and sign == '-' and num2 == 222:
print('910-222 = 688')
if num1 == 910 and sign == '-' and num2 == 223:
print('910-223 = 687')
if num1 == 910 and sign == '-' and num2 == 224:
print('910-224 = 686')
if num1 == 910 and sign == '-' and num2 == 225:
print('910-225 = 685')
if num1 == 910 and sign == '-' and num2 == 226:
print('910-226 = 684')
if num1 == 910 and sign == '-' and num2 == 227:
print('910-227 = 683')
if num1 == 910 and sign == '-' and num2 == 228:
print('910-228 = 682')
if num1 == 910 and sign == '-' and num2 == 229:
print('910-229 = 681')
if num1 == 910 and sign == '-' and num2 == 230:
print('910-230 = 680')
if num1 == 910 and sign == '-' and num2 == 231:
print('910-231 = 679')
if num1 == 910 and sign == '-' and num2 == 232:
print('910-232 = 678')
if num1 == 910 and sign == '-' and num2 == 233:
print('910-233 = 677')
if num1 == 910 and sign == '-' and num2 == 234:
print('910-234 = 676')
if num1 == 910 and sign == '-' and num2 == 235:
print('910-235 = 675')
if num1 == 910 and sign == '-' and num2 == 236:
print('910-236 = 674')
if num1 == 910 and sign == '-' and num2 == 237:
print('910-237 = 673')
if num1 == 910 and sign == '-' and num2 == 238:
print('910-238 = 672')
if num1 == 910 and sign == '-' and num2 == 239:
print('910-239 = 671')
if num1 == 910 and sign == '-' and num2 == 240:
print('910-240 = 670')
if num1 == 910 and sign == '-' and num2 == 241:
print('910-241 = 669')
if num1 == 910 and sign == '-' and num2 == 242:
print('910-242 = 668')
if num1 == 910 and sign == '-' and num2 == 243:
print('910-243 = 667')
if num1 == 910 and sign == '-' and num2 == 244:
print('910-244 = 666')
if num1 == 910 and sign == '-' and num2 == 245:
print('910-245 = 665')
if num1 == 910 and sign == '-' and num2 == 246:
print('910-246 = 664')
if num1 == 910 and sign == '-' and num2 == 247:
print('910-247 = 663')
if num1 == 910 and sign == '-' and num2 == 248:
print('910-248 = 662')
if num1 == 910 and sign == '-' and num2 == 249:
print('910-249 = 661')
if num1 == 911 and sign == '-' and num2 == 200:
print('911-200 = 711')
if num1 == 911 and sign == '-' and num2 == 201:
print('911-201 = 710')
if num1 == 911 and sign == '-' and num2 == 202:
print('911-202 = 709')
if num1 == 911 and sign == '-' and num2 == 203:
print('911-203 = 708')
if num1 == 911 and sign == '-' and num2 == 204:
print('911-204 = 707')
if num1 == 911 and sign == '-' and num2 == 205:
print('911-205 = 706')
if num1 == 911 and sign == '-' and num2 == 206:
print('911-206 = 705')
if num1 == 911 and sign == '-' and num2 == 207:
print('911-207 = 704')
if num1 == 911 and sign == '-' and num2 == 208:
print('911-208 = 703')
if num1 == 911 and sign == '-' and num2 == 209:
print('911-209 = 702')
if num1 == 911 and sign == '-' and num2 == 210:
print('911-210 = 701')
if num1 == 911 and sign == '-' and num2 == 211:
print('911-211 = 700')
if num1 == 911 and sign == '-' and num2 == 212:
print('911-212 = 699')
if num1 == 911 and sign == '-' and num2 == 213:
print('911-213 = 698')
if num1 == 911 and sign == '-' and num2 == 214:
print('911-214 = 697')
if num1 == 911 and sign == '-' and num2 == 215:
print('911-215 = 696')
if num1 == 911 and sign == '-' and num2 == 216:
print('911-216 = 695')
if num1 == 911 and sign == '-' and num2 == 217:
print('911-217 = 694')
if num1 == 911 and sign == '-' and num2 == 218:
print('911-218 = 693')
if num1 == 911 and sign == '-' and num2 == 219:
print('911-219 = 692')
if num1 == 911 and sign == '-' and num2 == 220:
print('911-220 = 691')
if num1 == 911 and sign == '-' and num2 == 221:
print('911-221 = 690')
if num1 == 911 and sign == '-' and num2 == 222:
print('911-222 = 689')
if num1 == 911 and sign == '-' and num2 == 223:
print('911-223 = 688')
if num1 == 911 and sign == '-' and num2 == 224:
print('911-224 = 687')
if num1 == 911 and sign == '-' and num2 == 225:
print('911-225 = 686')
if num1 == 911 and sign == '-' and num2 == 226:
print('911-226 = 685')
if num1 == 911 and sign == '-' and num2 == 227:
print('911-227 = 684')
if num1 == 911 and sign == '-' and num2 == 228:
print('911-228 = 683')
if num1 == 911 and sign == '-' and num2 == 229:
print('911-229 = 682')
if num1 == 911 and sign == '-' and num2 == 230:
print('911-230 = 681')
if num1 == 911 and sign == '-' and num2 == 231:
print('911-231 = 680')
if num1 == 911 and sign == '-' and num2 == 232:
print('911-232 = 679')
if num1 == 911 and sign == '-' and num2 == 233:
print('911-233 = 678')
if num1 == 911 and sign == '-' and num2 == 234:
print('911-234 = 677')
if num1 == 911 and sign == '-' and num2 == 235:
print('911-235 = 676')
if num1 == 911 and sign == '-' and num2 == 236:
print('911-236 = 675')
if num1 == 911 and sign == '-' and num2 == 237:
print('911-237 = 674')
if num1 == 911 and sign == '-' and num2 == 238:
print('911-238 = 673')
if num1 == 911 and sign == '-' and num2 == 239:
print('911-239 = 672')
if num1 == 911 and sign == '-' and num2 == 240:
print('911-240 = 671')
if num1 == 911 and sign == '-' and num2 == 241:
print('911-241 = 670')
if num1 == 911 and sign == '-' and num2 == 242:
print('911-242 = 669')
if num1 == 911 and sign == '-' and num2 == 243:
print('911-243 = 668')
if num1 == 911 and sign == '-' and num2 == 244:
print('911-244 = 667')
if num1 == 911 and sign == '-' and num2 == 245:
print('911-245 = 666')
if num1 == 911 and sign == '-' and num2 == 246:
print('911-246 = 665')
if num1 == 911 and sign == '-' and num2 == 247:
print('911-247 = 664')
if num1 == 911 and sign == '-' and num2 == 248:
print('911-248 = 663')
if num1 == 911 and sign == '-' and num2 == 249:
print('911-249 = 662')
if num1 == 912 and sign == '-' and num2 == 200:
print('912-200 = 712')
if num1 == 912 and sign == '-' and num2 == 201:
print('912-201 = 711')
if num1 == 912 and sign == '-' and num2 == 202:
print('912-202 = 710')
if num1 == 912 and sign == '-' and num2 == 203:
print('912-203 = 709')
if num1 == 912 and sign == '-' and num2 == 204:
print('912-204 = 708')
if num1 == 912 and sign == '-' and num2 == 205:
print('912-205 = 707')
if num1 == 912 and sign == '-' and num2 == 206:
print('912-206 = 706')
if num1 == 912 and sign == '-' and num2 == 207:
print('912-207 = 705')
if num1 == 912 and sign == '-' and num2 == 208:
print('912-208 = 704')
if num1 == 912 and sign == '-' and num2 == 209:
print('912-209 = 703')
if num1 == 912 and sign == '-' and num2 == 210:
print('912-210 = 702')
if num1 == 912 and sign == '-' and num2 == 211:
print('912-211 = 701')
if num1 == 912 and sign == '-' and num2 == 212:
print('912-212 = 700')
if num1 == 912 and sign == '-' and num2 == 213:
print('912-213 = 699')
if num1 == 912 and sign == '-' and num2 == 214:
print('912-214 = 698')
if num1 == 912 and sign == '-' and num2 == 215:
print('912-215 = 697')
if num1 == 912 and sign == '-' and num2 == 216:
print('912-216 = 696')
if num1 == 912 and sign == '-' and num2 == 217:
print('912-217 = 695')
if num1 == 912 and sign == '-' and num2 == 218:
print('912-218 = 694')
if num1 == 912 and sign == '-' and num2 == 219:
print('912-219 = 693')
if num1 == 912 and sign == '-' and num2 == 220:
print('912-220 = 692')
if num1 == 912 and sign == '-' and num2 == 221:
print('912-221 = 691')
if num1 == 912 and sign == '-' and num2 == 222:
print('912-222 = 690')
if num1 == 912 and sign == '-' and num2 == 223:
print('912-223 = 689')
if num1 == 912 and sign == '-' and num2 == 224:
print('912-224 = 688')
if num1 == 912 and sign == '-' and num2 == 225:
print('912-225 = 687')
if num1 == 912 and sign == '-' and num2 == 226:
print('912-226 = 686')
if num1 == 912 and sign == '-' and num2 == 227:
print('912-227 = 685')
if num1 == 912 and sign == '-' and num2 == 228:
print('912-228 = 684')
if num1 == 912 and sign == '-' and num2 == 229:
print('912-229 = 683')
if num1 == 912 and sign == '-' and num2 == 230:
print('912-230 = 682')
if num1 == 912 and sign == '-' and num2 == 231:
print('912-231 = 681')
if num1 == 912 and sign == '-' and num2 == 232:
print('912-232 = 680')
if num1 == 912 and sign == '-' and num2 == 233:
print('912-233 = 679')
if num1 == 912 and sign == '-' and num2 == 234:
print('912-234 = 678')
if num1 == 912 and sign == '-' and num2 == 235:
print('912-235 = 677')
if num1 == 912 and sign == '-' and num2 == 236:
print('912-236 = 676')
if num1 == 912 and sign == '-' and num2 == 237:
print('912-237 = 675')
if num1 == 912 and sign == '-' and num2 == 238:
print('912-238 = 674')
if num1 == 912 and sign == '-' and num2 == 239:
print('912-239 = 673')
if num1 == 912 and sign == '-' and num2 == 240:
print('912-240 = 672')
if num1 == 912 and sign == '-' and num2 == 241:
print('912-241 = 671')
if num1 == 912 and sign == '-' and num2 == 242:
print('912-242 = 670')
if num1 == 912 and sign == '-' and num2 == 243:
print('912-243 = 669')
if num1 == 912 and sign == '-' and num2 == 244:
print('912-244 = 668')
if num1 == 912 and sign == '-' and num2 == 245:
print('912-245 = 667')
if num1 == 912 and sign == '-' and num2 == 246:
print('912-246 = 666')
if num1 == 912 and sign == '-' and num2 == 247:
print('912-247 = 665')
if num1 == 912 and sign == '-' and num2 == 248:
print('912-248 = 664')
if num1 == 912 and sign == '-' and num2 == 249:
print('912-249 = 663')
if num1 == 913 and sign == '-' and num2 == 200:
print('913-200 = 713')
if num1 == 913 and sign == '-' and num2 == 201:
print('913-201 = 712')
if num1 == 913 and sign == '-' and num2 == 202:
print('913-202 = 711')
if num1 == 913 and sign == '-' and num2 == 203:
print('913-203 = 710')
if num1 == 913 and sign == '-' and num2 == 204:
print('913-204 = 709')
if num1 == 913 and sign == '-' and num2 == 205:
print('913-205 = 708')
if num1 == 913 and sign == '-' and num2 == 206:
print('913-206 = 707')
if num1 == 913 and sign == '-' and num2 == 207:
print('913-207 = 706')
if num1 == 913 and sign == '-' and num2 == 208:
print('913-208 = 705')
if num1 == 913 and sign == '-' and num2 == 209:
print('913-209 = 704')
if num1 == 913 and sign == '-' and num2 == 210:
print('913-210 = 703')
if num1 == 913 and sign == '-' and num2 == 211:
print('913-211 = 702')
if num1 == 913 and sign == '-' and num2 == 212:
print('913-212 = 701')
if num1 == 913 and sign == '-' and num2 == 213:
print('913-213 = 700')
if num1 == 913 and sign == '-' and num2 == 214:
print('913-214 = 699')
if num1 == 913 and sign == '-' and num2 == 215:
print('913-215 = 698')
if num1 == 913 and sign == '-' and num2 == 216:
print('913-216 = 697')
if num1 == 913 and sign == '-' and num2 == 217:
print('913-217 = 696')
if num1 == 913 and sign == '-' and num2 == 218:
print('913-218 = 695')
if num1 == 913 and sign == '-' and num2 == 219:
print('913-219 = 694')
if num1 == 913 and sign == '-' and num2 == 220:
print('913-220 = 693')
if num1 == 913 and sign == '-' and num2 == 221:
print('913-221 = 692')
if num1 == 913 and sign == '-' and num2 == 222:
print('913-222 = 691')
if num1 == 913 and sign == '-' and num2 == 223:
print('913-223 = 690')
if num1 == 913 and sign == '-' and num2 == 224:
print('913-224 = 689')
if num1 == 913 and sign == '-' and num2 == 225:
print('913-225 = 688')
if num1 == 913 and sign == '-' and num2 == 226:
print('913-226 = 687')
if num1 == 913 and sign == '-' and num2 == 227:
print('913-227 = 686')
if num1 == 913 and sign == '-' and num2 == 228:
print('913-228 = 685')
if num1 == 913 and sign == '-' and num2 == 229:
print('913-229 = 684')
if num1 == 913 and sign == '-' and num2 == 230:
print('913-230 = 683')
if num1 == 913 and sign == '-' and num2 == 231:
print('913-231 = 682')
if num1 == 913 and sign == '-' and num2 == 232:
print('913-232 = 681')
if num1 == 913 and sign == '-' and num2 == 233:
print('913-233 = 680')
if num1 == 913 and sign == '-' and num2 == 234:
print('913-234 = 679')
if num1 == 913 and sign == '-' and num2 == 235:
print('913-235 = 678')
if num1 == 913 and sign == '-' and num2 == 236:
print('913-236 = 677')
if num1 == 913 and sign == '-' and num2 == 237:
print('913-237 = 676')
if num1 == 913 and sign == '-' and num2 == 238:
print('913-238 = 675')
if num1 == 913 and sign == '-' and num2 == 239:
print('913-239 = 674')
if num1 == 913 and sign == '-' and num2 == 240:
print('913-240 = 673')
if num1 == 913 and sign == '-' and num2 == 241:
print('913-241 = 672')
if num1 == 913 and sign == '-' and num2 == 242:
print('913-242 = 671')
if num1 == 913 and sign == '-' and num2 == 243:
print('913-243 = 670')
if num1 == 913 and sign == '-' and num2 == 244:
print('913-244 = 669')
if num1 == 913 and sign == '-' and num2 == 245:
print('913-245 = 668')
if num1 == 913 and sign == '-' and num2 == 246:
print('913-246 = 667')
if num1 == 913 and sign == '-' and num2 == 247:
print('913-247 = 666')
if num1 == 913 and sign == '-' and num2 == 248:
print('913-248 = 665')
if num1 == 913 and sign == '-' and num2 == 249:
print('913-249 = 664')
if num1 == 914 and sign == '-' and num2 == 200:
print('914-200 = 714')
if num1 == 914 and sign == '-' and num2 == 201:
print('914-201 = 713')
if num1 == 914 and sign == '-' and num2 == 202:
print('914-202 = 712')
if num1 == 914 and sign == '-' and num2 == 203:
print('914-203 = 711')
if num1 == 914 and sign == '-' and num2 == 204:
print('914-204 = 710')
if num1 == 914 and sign == '-' and num2 == 205:
print('914-205 = 709')
if num1 == 914 and sign == '-' and num2 == 206:
print('914-206 = 708')
if num1 == 914 and sign == '-' and num2 == 207:
print('914-207 = 707')
if num1 == 914 and sign == '-' and num2 == 208:
print('914-208 = 706')
if num1 == 914 and sign == '-' and num2 == 209:
print('914-209 = 705')
if num1 == 914 and sign == '-' and num2 == 210:
print('914-210 = 704')
if num1 == 914 and sign == '-' and num2 == 211:
print('914-211 = 703')
if num1 == 914 and sign == '-' and num2 == 212:
print('914-212 = 702')
if num1 == 914 and sign == '-' and num2 == 213:
print('914-213 = 701')
if num1 == 914 and sign == '-' and num2 == 214:
print('914-214 = 700')
if num1 == 914 and sign == '-' and num2 == 215:
print('914-215 = 699')
if num1 == 914 and sign == '-' and num2 == 216:
print('914-216 = 698')
if num1 == 914 and sign == '-' and num2 == 217:
print('914-217 = 697')
if num1 == 914 and sign == '-' and num2 == 218:
print('914-218 = 696')
if num1 == 914 and sign == '-' and num2 == 219:
print('914-219 = 695')
if num1 == 914 and sign == '-' and num2 == 220:
print('914-220 = 694')
if num1 == 914 and sign == '-' and num2 == 221:
print('914-221 = 693')
if num1 == 914 and sign == '-' and num2 == 222:
print('914-222 = 692')
if num1 == 914 and sign == '-' and num2 == 223:
print('914-223 = 691')
if num1 == 914 and sign == '-' and num2 == 224:
print('914-224 = 690')
if num1 == 914 and sign == '-' and num2 == 225:
print('914-225 = 689')
if num1 == 914 and sign == '-' and num2 == 226:
print('914-226 = 688')
if num1 == 914 and sign == '-' and num2 == 227:
print('914-227 = 687')
if num1 == 914 and sign == '-' and num2 == 228:
print('914-228 = 686')
if num1 == 914 and sign == '-' and num2 == 229:
print('914-229 = 685')
if num1 == 914 and sign == '-' and num2 == 230:
print('914-230 = 684')
if num1 == 914 and sign == '-' and num2 == 231:
print('914-231 = 683')
if num1 == 914 and sign == '-' and num2 == 232:
print('914-232 = 682')
if num1 == 914 and sign == '-' and num2 == 233:
print('914-233 = 681')
if num1 == 914 and sign == '-' and num2 == 234:
print('914-234 = 680')
if num1 == 914 and sign == '-' and num2 == 235:
print('914-235 = 679')
if num1 == 914 and sign == '-' and num2 == 236:
print('914-236 = 678')
if num1 == 914 and sign == '-' and num2 == 237:
print('914-237 = 677')
if num1 == 914 and sign == '-' and num2 == 238:
print('914-238 = 676')
if num1 == 914 and sign == '-' and num2 == 239:
print('914-239 = 675')
if num1 == 914 and sign == '-' and num2 == 240:
print('914-240 = 674')
if num1 == 914 and sign == '-' and num2 == 241:
print('914-241 = 673')
if num1 == 914 and sign == '-' and num2 == 242:
print('914-242 = 672')
if num1 == 914 and sign == '-' and num2 == 243:
print('914-243 = 671')
if num1 == 914 and sign == '-' and num2 == 244:
print('914-244 = 670')
if num1 == 914 and sign == '-' and num2 == 245:
print('914-245 = 669')
if num1 == 914 and sign == '-' and num2 == 246:
print('914-246 = 668')
if num1 == 914 and sign == '-' and num2 == 247:
print('914-247 = 667')
if num1 == 914 and sign == '-' and num2 == 248:
print('914-248 = 666')
if num1 == 914 and sign == '-' and num2 == 249:
print('914-249 = 665')
if num1 == 915 and sign == '-' and num2 == 200:
print('915-200 = 715')
if num1 == 915 and sign == '-' and num2 == 201:
print('915-201 = 714')
if num1 == 915 and sign == '-' and num2 == 202:
print('915-202 = 713')
if num1 == 915 and sign == '-' and num2 == 203:
print('915-203 = 712')
if num1 == 915 and sign == '-' and num2 == 204:
print('915-204 = 711')
if num1 == 915 and sign == '-' and num2 == 205:
print('915-205 = 710')
if num1 == 915 and sign == '-' and num2 == 206:
print('915-206 = 709')
if num1 == 915 and sign == '-' and num2 == 207:
print('915-207 = 708')
if num1 == 915 and sign == '-' and num2 == 208:
print('915-208 = 707')
if num1 == 915 and sign == '-' and num2 == 209:
print('915-209 = 706')
if num1 == 915 and sign == '-' and num2 == 210:
print('915-210 = 705')
if num1 == 915 and sign == '-' and num2 == 211:
print('915-211 = 704')
if num1 == 915 and sign == '-' and num2 == 212:
print('915-212 = 703')
if num1 == 915 and sign == '-' and num2 == 213:
print('915-213 = 702')
if num1 == 915 and sign == '-' and num2 == 214:
print('915-214 = 701')
if num1 == 915 and sign == '-' and num2 == 215:
print('915-215 = 700')
if num1 == 915 and sign == '-' and num2 == 216:
print('915-216 = 699')
if num1 == 915 and sign == '-' and num2 == 217:
print('915-217 = 698')
if num1 == 915 and sign == '-' and num2 == 218:
print('915-218 = 697')
if num1 == 915 and sign == '-' and num2 == 219:
print('915-219 = 696')
if num1 == 915 and sign == '-' and num2 == 220:
print('915-220 = 695')
if num1 == 915 and sign == '-' and num2 == 221:
print('915-221 = 694')
if num1 == 915 and sign == '-' and num2 == 222:
print('915-222 = 693')
if num1 == 915 and sign == '-' and num2 == 223:
print('915-223 = 692')
if num1 == 915 and sign == '-' and num2 == 224:
print('915-224 = 691')
if num1 == 915 and sign == '-' and num2 == 225:
print('915-225 = 690')
if num1 == 915 and sign == '-' and num2 == 226:
print('915-226 = 689')
if num1 == 915 and sign == '-' and num2 == 227:
print('915-227 = 688')
if num1 == 915 and sign == '-' and num2 == 228:
print('915-228 = 687')
if num1 == 915 and sign == '-' and num2 == 229:
print('915-229 = 686')
if num1 == 915 and sign == '-' and num2 == 230:
print('915-230 = 685')
if num1 == 915 and sign == '-' and num2 == 231:
print('915-231 = 684')
if num1 == 915 and sign == '-' and num2 == 232:
print('915-232 = 683')
if num1 == 915 and sign == '-' and num2 == 233:
print('915-233 = 682')
if num1 == 915 and sign == '-' and num2 == 234:
print('915-234 = 681')
if num1 == 915 and sign == '-' and num2 == 235:
print('915-235 = 680')
if num1 == 915 and sign == '-' and num2 == 236:
print('915-236 = 679')
if num1 == 915 and sign == '-' and num2 == 237:
print('915-237 = 678')
if num1 == 915 and sign == '-' and num2 == 238:
print('915-238 = 677')
if num1 == 915 and sign == '-' and num2 == 239:
print('915-239 = 676')
if num1 == 915 and sign == '-' and num2 == 240:
print('915-240 = 675')
if num1 == 915 and sign == '-' and num2 == 241:
print('915-241 = 674')
if num1 == 915 and sign == '-' and num2 == 242:
print('915-242 = 673')
if num1 == 915 and sign == '-' and num2 == 243:
print('915-243 = 672')
if num1 == 915 and sign == '-' and num2 == 244:
print('915-244 = 671')
if num1 == 915 and sign == '-' and num2 == 245:
print('915-245 = 670')
if num1 == 915 and sign == '-' and num2 == 246:
print('915-246 = 669')
if num1 == 915 and sign == '-' and num2 == 247:
print('915-247 = 668')
if num1 == 915 and sign == '-' and num2 == 248:
print('915-248 = 667')
if num1 == 915 and sign == '-' and num2 == 249:
print('915-249 = 666')
if num1 == 916 and sign == '-' and num2 == 200:
print('916-200 = 716')
if num1 == 916 and sign == '-' and num2 == 201:
print('916-201 = 715')
if num1 == 916 and sign == '-' and num2 == 202:
print('916-202 = 714')
if num1 == 916 and sign == '-' and num2 == 203:
print('916-203 = 713')
if num1 == 916 and sign == '-' and num2 == 204:
print('916-204 = 712')
if num1 == 916 and sign == '-' and num2 == 205:
print('916-205 = 711')
if num1 == 916 and sign == '-' and num2 == 206:
print('916-206 = 710')
if num1 == 916 and sign == '-' and num2 == 207:
print('916-207 = 709')
if num1 == 916 and sign == '-' and num2 == 208:
print('916-208 = 708')
if num1 == 916 and sign == '-' and num2 == 209:
print('916-209 = 707')
if num1 == 916 and sign == '-' and num2 == 210:
print('916-210 = 706')
if num1 == 916 and sign == '-' and num2 == 211:
print('916-211 = 705')
if num1 == 916 and sign == '-' and num2 == 212:
print('916-212 = 704')
if num1 == 916 and sign == '-' and num2 == 213:
print('916-213 = 703')
if num1 == 916 and sign == '-' and num2 == 214:
print('916-214 = 702')
if num1 == 916 and sign == '-' and num2 == 215:
print('916-215 = 701')
if num1 == 916 and sign == '-' and num2 == 216:
print('916-216 = 700')
if num1 == 916 and sign == '-' and num2 == 217:
print('916-217 = 699')
if num1 == 916 and sign == '-' and num2 == 218:
print('916-218 = 698')
if num1 == 916 and sign == '-' and num2 == 219:
print('916-219 = 697')
if num1 == 916 and sign == '-' and num2 == 220:
print('916-220 = 696')
if num1 == 916 and sign == '-' and num2 == 221:
print('916-221 = 695')
if num1 == 916 and sign == '-' and num2 == 222:
print('916-222 = 694')
if num1 == 916 and sign == '-' and num2 == 223:
print('916-223 = 693')
if num1 == 916 and sign == '-' and num2 == 224:
print('916-224 = 692')
if num1 == 916 and sign == '-' and num2 == 225:
print('916-225 = 691')
if num1 == 916 and sign == '-' and num2 == 226:
print('916-226 = 690')
if num1 == 916 and sign == '-' and num2 == 227:
print('916-227 = 689')
if num1 == 916 and sign == '-' and num2 == 228:
print('916-228 = 688')
if num1 == 916 and sign == '-' and num2 == 229:
print('916-229 = 687')
if num1 == 916 and sign == '-' and num2 == 230:
print('916-230 = 686')
if num1 == 916 and sign == '-' and num2 == 231:
print('916-231 = 685')
if num1 == 916 and sign == '-' and num2 == 232:
print('916-232 = 684')
if num1 == 916 and sign == '-' and num2 == 233:
print('916-233 = 683')
if num1 == 916 and sign == '-' and num2 == 234:
print('916-234 = 682')
if num1 == 916 and sign == '-' and num2 == 235:
print('916-235 = 681')
if num1 == 916 and sign == '-' and num2 == 236:
print('916-236 = 680')
if num1 == 916 and sign == '-' and num2 == 237:
print('916-237 = 679')
if num1 == 916 and sign == '-' and num2 == 238:
print('916-238 = 678')
if num1 == 916 and sign == '-' and num2 == 239:
print('916-239 = 677')
if num1 == 916 and sign == '-' and num2 == 240:
print('916-240 = 676')
if num1 == 916 and sign == '-' and num2 == 241:
print('916-241 = 675')
if num1 == 916 and sign == '-' and num2 == 242:
print('916-242 = 674')
if num1 == 916 and sign == '-' and num2 == 243:
print('916-243 = 673')
if num1 == 916 and sign == '-' and num2 == 244:
print('916-244 = 672')
if num1 == 916 and sign == '-' and num2 == 245:
print('916-245 = 671')
if num1 == 916 and sign == '-' and num2 == 246:
print('916-246 = 670')
if num1 == 916 and sign == '-' and num2 == 247:
print('916-247 = 669')
if num1 == 916 and sign == '-' and num2 == 248:
print('916-248 = 668')
if num1 == 916 and sign == '-' and num2 == 249:
print('916-249 = 667')
if num1 == 917 and sign == '-' and num2 == 200:
print('917-200 = 717')
if num1 == 917 and sign == '-' and num2 == 201:
print('917-201 = 716')
if num1 == 917 and sign == '-' and num2 == 202:
print('917-202 = 715')
if num1 == 917 and sign == '-' and num2 == 203:
print('917-203 = 714')
if num1 == 917 and sign == '-' and num2 == 204:
print('917-204 = 713')
if num1 == 917 and sign == '-' and num2 == 205:
print('917-205 = 712')
if num1 == 917 and sign == '-' and num2 == 206:
print('917-206 = 711')
if num1 == 917 and sign == '-' and num2 == 207:
print('917-207 = 710')
if num1 == 917 and sign == '-' and num2 == 208:
print('917-208 = 709')
if num1 == 917 and sign == '-' and num2 == 209:
print('917-209 = 708')
if num1 == 917 and sign == '-' and num2 == 210:
print('917-210 = 707')
if num1 == 917 and sign == '-' and num2 == 211:
print('917-211 = 706')
if num1 == 917 and sign == '-' and num2 == 212:
print('917-212 = 705')
if num1 == 917 and sign == '-' and num2 == 213:
print('917-213 = 704')
if num1 == 917 and sign == '-' and num2 == 214:
print('917-214 = 703')
if num1 == 917 and sign == '-' and num2 == 215:
print('917-215 = 702')
if num1 == 917 and sign == '-' and num2 == 216:
print('917-216 = 701')
if num1 == 917 and sign == '-' and num2 == 217:
print('917-217 = 700')
if num1 == 917 and sign == '-' and num2 == 218:
print('917-218 = 699')
if num1 == 917 and sign == '-' and num2 == 219:
print('917-219 = 698')
if num1 == 917 and sign == '-' and num2 == 220:
print('917-220 = 697')
if num1 == 917 and sign == '-' and num2 == 221:
print('917-221 = 696')
if num1 == 917 and sign == '-' and num2 == 222:
print('917-222 = 695')
if num1 == 917 and sign == '-' and num2 == 223:
print('917-223 = 694')
if num1 == 917 and sign == '-' and num2 == 224:
print('917-224 = 693')
if num1 == 917 and sign == '-' and num2 == 225:
print('917-225 = 692')
if num1 == 917 and sign == '-' and num2 == 226:
print('917-226 = 691')
if num1 == 917 and sign == '-' and num2 == 227:
print('917-227 = 690')
if num1 == 917 and sign == '-' and num2 == 228:
print('917-228 = 689')
if num1 == 917 and sign == '-' and num2 == 229:
print('917-229 = 688')
if num1 == 917 and sign == '-' and num2 == 230:
print('917-230 = 687')
if num1 == 917 and sign == '-' and num2 == 231:
print('917-231 = 686')
if num1 == 917 and sign == '-' and num2 == 232:
print('917-232 = 685')
if num1 == 917 and sign == '-' and num2 == 233:
print('917-233 = 684')
if num1 == 917 and sign == '-' and num2 == 234:
print('917-234 = 683')
if num1 == 917 and sign == '-' and num2 == 235:
print('917-235 = 682')
if num1 == 917 and sign == '-' and num2 == 236:
print('917-236 = 681')
if num1 == 917 and sign == '-' and num2 == 237:
print('917-237 = 680')
if num1 == 917 and sign == '-' and num2 == 238:
print('917-238 = 679')
if num1 == 917 and sign == '-' and num2 == 239:
print('917-239 = 678')
if num1 == 917 and sign == '-' and num2 == 240:
print('917-240 = 677')
if num1 == 917 and sign == '-' and num2 == 241:
print('917-241 = 676')
if num1 == 917 and sign == '-' and num2 == 242:
print('917-242 = 675')
if num1 == 917 and sign == '-' and num2 == 243:
print('917-243 = 674')
if num1 == 917 and sign == '-' and num2 == 244:
print('917-244 = 673')
if num1 == 917 and sign == '-' and num2 == 245:
print('917-245 = 672')
if num1 == 917 and sign == '-' and num2 == 246:
print('917-246 = 671')
if num1 == 917 and sign == '-' and num2 == 247:
print('917-247 = 670')
if num1 == 917 and sign == '-' and num2 == 248:
print('917-248 = 669')
if num1 == 917 and sign == '-' and num2 == 249:
print('917-249 = 668')
if num1 == 918 and sign == '-' and num2 == 200:
print('918-200 = 718')
if num1 == 918 and sign == '-' and num2 == 201:
print('918-201 = 717')
if num1 == 918 and sign == '-' and num2 == 202:
print('918-202 = 716')
if num1 == 918 and sign == '-' and num2 == 203:
print('918-203 = 715')
if num1 == 918 and sign == '-' and num2 == 204:
print('918-204 = 714')
if num1 == 918 and sign == '-' and num2 == 205:
print('918-205 = 713')
if num1 == 918 and sign == '-' and num2 == 206:
print('918-206 = 712')
if num1 == 918 and sign == '-' and num2 == 207:
print('918-207 = 711')
if num1 == 918 and sign == '-' and num2 == 208:
print('918-208 = 710')
if num1 == 918 and sign == '-' and num2 == 209:
print('918-209 = 709')
if num1 == 918 and sign == '-' and num2 == 210:
print('918-210 = 708')
if num1 == 918 and sign == '-' and num2 == 211:
print('918-211 = 707')
if num1 == 918 and sign == '-' and num2 == 212:
print('918-212 = 706')
if num1 == 918 and sign == '-' and num2 == 213:
print('918-213 = 705')
if num1 == 918 and sign == '-' and num2 == 214:
print('918-214 = 704')
if num1 == 918 and sign == '-' and num2 == 215:
print('918-215 = 703')
if num1 == 918 and sign == '-' and num2 == 216:
print('918-216 = 702')
if num1 == 918 and sign == '-' and num2 == 217:
print('918-217 = 701')
if num1 == 918 and sign == '-' and num2 == 218:
print('918-218 = 700')
if num1 == 918 and sign == '-' and num2 == 219:
print('918-219 = 699')
if num1 == 918 and sign == '-' and num2 == 220:
print('918-220 = 698')
if num1 == 918 and sign == '-' and num2 == 221:
print('918-221 = 697')
if num1 == 918 and sign == '-' and num2 == 222:
print('918-222 = 696')
if num1 == 918 and sign == '-' and num2 == 223:
print('918-223 = 695')
if num1 == 918 and sign == '-' and num2 == 224:
print('918-224 = 694')
if num1 == 918 and sign == '-' and num2 == 225:
print('918-225 = 693')
if num1 == 918 and sign == '-' and num2 == 226:
print('918-226 = 692')
if num1 == 918 and sign == '-' and num2 == 227:
print('918-227 = 691')
if num1 == 918 and sign == '-' and num2 == 228:
print('918-228 = 690')
if num1 == 918 and sign == '-' and num2 == 229:
print('918-229 = 689')
if num1 == 918 and sign == '-' and num2 == 230:
print('918-230 = 688')
if num1 == 918 and sign == '-' and num2 == 231:
print('918-231 = 687')
if num1 == 918 and sign == '-' and num2 == 232:
print('918-232 = 686')
if num1 == 918 and sign == '-' and num2 == 233:
print('918-233 = 685')
if num1 == 918 and sign == '-' and num2 == 234:
print('918-234 = 684')
if num1 == 918 and sign == '-' and num2 == 235:
print('918-235 = 683')
if num1 == 918 and sign == '-' and num2 == 236:
print('918-236 = 682')
if num1 == 918 and sign == '-' and num2 == 237:
print('918-237 = 681')
if num1 == 918 and sign == '-' and num2 == 238:
print('918-238 = 680')
if num1 == 918 and sign == '-' and num2 == 239:
print('918-239 = 679')
if num1 == 918 and sign == '-' and num2 == 240:
print('918-240 = 678')
if num1 == 918 and sign == '-' and num2 == 241:
print('918-241 = 677')
if num1 == 918 and sign == '-' and num2 == 242:
print('918-242 = 676')
if num1 == 918 and sign == '-' and num2 == 243:
print('918-243 = 675')
if num1 == 918 and sign == '-' and num2 == 244:
print('918-244 = 674')
if num1 == 918 and sign == '-' and num2 == 245:
print('918-245 = 673')
if num1 == 918 and sign == '-' and num2 == 246:
print('918-246 = 672')
if num1 == 918 and sign == '-' and num2 == 247:
print('918-247 = 671')
if num1 == 918 and sign == '-' and num2 == 248:
print('918-248 = 670')
if num1 == 918 and sign == '-' and num2 == 249:
print('918-249 = 669')
if num1 == 919 and sign == '-' and num2 == 200:
print('919-200 = 719')
if num1 == 919 and sign == '-' and num2 == 201:
print('919-201 = 718')
if num1 == 919 and sign == '-' and num2 == 202:
print('919-202 = 717')
if num1 == 919 and sign == '-' and num2 == 203:
print('919-203 = 716')
if num1 == 919 and sign == '-' and num2 == 204:
print('919-204 = 715')
if num1 == 919 and sign == '-' and num2 == 205:
print('919-205 = 714')
if num1 == 919 and sign == '-' and num2 == 206:
print('919-206 = 713')
if num1 == 919 and sign == '-' and num2 == 207:
print('919-207 = 712')
if num1 == 919 and sign == '-' and num2 == 208:
print('919-208 = 711')
if num1 == 919 and sign == '-' and num2 == 209:
print('919-209 = 710')
if num1 == 919 and sign == '-' and num2 == 210:
print('919-210 = 709')
if num1 == 919 and sign == '-' and num2 == 211:
print('919-211 = 708')
if num1 == 919 and sign == '-' and num2 == 212:
print('919-212 = 707')
if num1 == 919 and sign == '-' and num2 == 213:
print('919-213 = 706')
if num1 == 919 and sign == '-' and num2 == 214:
print('919-214 = 705')
if num1 == 919 and sign == '-' and num2 == 215:
print('919-215 = 704')
if num1 == 919 and sign == '-' and num2 == 216:
print('919-216 = 703')
if num1 == 919 and sign == '-' and num2 == 217:
print('919-217 = 702')
if num1 == 919 and sign == '-' and num2 == 218:
print('919-218 = 701')
if num1 == 919 and sign == '-' and num2 == 219:
print('919-219 = 700')
if num1 == 919 and sign == '-' and num2 == 220:
print('919-220 = 699')
if num1 == 919 and sign == '-' and num2 == 221:
print('919-221 = 698')
if num1 == 919 and sign == '-' and num2 == 222:
print('919-222 = 697')
if num1 == 919 and sign == '-' and num2 == 223:
print('919-223 = 696')
if num1 == 919 and sign == '-' and num2 == 224:
print('919-224 = 695')
if num1 == 919 and sign == '-' and num2 == 225:
print('919-225 = 694')
if num1 == 919 and sign == '-' and num2 == 226:
print('919-226 = 693')
if num1 == 919 and sign == '-' and num2 == 227:
print('919-227 = 692')
if num1 == 919 and sign == '-' and num2 == 228:
print('919-228 = 691')
if num1 == 919 and sign == '-' and num2 == 229:
print('919-229 = 690')
if num1 == 919 and sign == '-' and num2 == 230:
print('919-230 = 689')
if num1 == 919 and sign == '-' and num2 == 231:
print('919-231 = 688')
if num1 == 919 and sign == '-' and num2 == 232:
print('919-232 = 687')
if num1 == 919 and sign == '-' and num2 == 233:
print('919-233 = 686')
if num1 == 919 and sign == '-' and num2 == 234:
print('919-234 = 685')
if num1 == 919 and sign == '-' and num2 == 235:
print('919-235 = 684')
if num1 == 919 and sign == '-' and num2 == 236:
print('919-236 = 683')
if num1 == 919 and sign == '-' and num2 == 237:
print('919-237 = 682')
if num1 == 919 and sign == '-' and num2 == 238:
print('919-238 = 681')
if num1 == 919 and sign == '-' and num2 == 239:
print('919-239 = 680')
if num1 == 919 and sign == '-' and num2 == 240:
print('919-240 = 679')
if num1 == 919 and sign == '-' and num2 == 241:
print('919-241 = 678')
if num1 == 919 and sign == '-' and num2 == 242:
print('919-242 = 677')
if num1 == 919 and sign == '-' and num2 == 243:
print('919-243 = 676')
if num1 == 919 and sign == '-' and num2 == 244:
print('919-244 = 675')
if num1 == 919 and sign == '-' and num2 == 245:
print('919-245 = 674')
if num1 == 919 and sign == '-' and num2 == 246:
print('919-246 = 673')
if num1 == 919 and sign == '-' and num2 == 247:
print('919-247 = 672')
if num1 == 919 and sign == '-' and num2 == 248:
print('919-248 = 671')
if num1 == 919 and sign == '-' and num2 == 249:
print('919-249 = 670')
if num1 == 920 and sign == '-' and num2 == 200:
print('920-200 = 720')
if num1 == 920 and sign == '-' and num2 == 201:
print('920-201 = 719')
if num1 == 920 and sign == '-' and num2 == 202:
print('920-202 = 718')
if num1 == 920 and sign == '-' and num2 == 203:
print('920-203 = 717')
if num1 == 920 and sign == '-' and num2 == 204:
print('920-204 = 716')
if num1 == 920 and sign == '-' and num2 == 205:
print('920-205 = 715')
if num1 == 920 and sign == '-' and num2 == 206:
print('920-206 = 714')
if num1 == 920 and sign == '-' and num2 == 207:
print('920-207 = 713')
if num1 == 920 and sign == '-' and num2 == 208:
print('920-208 = 712')
if num1 == 920 and sign == '-' and num2 == 209:
print('920-209 = 711')
if num1 == 920 and sign == '-' and num2 == 210:
print('920-210 = 710')
if num1 == 920 and sign == '-' and num2 == 211:
print('920-211 = 709')
if num1 == 920 and sign == '-' and num2 == 212:
print('920-212 = 708')
if num1 == 920 and sign == '-' and num2 == 213:
print('920-213 = 707')
if num1 == 920 and sign == '-' and num2 == 214:
print('920-214 = 706')
if num1 == 920 and sign == '-' and num2 == 215:
print('920-215 = 705')
if num1 == 920 and sign == '-' and num2 == 216:
print('920-216 = 704')
if num1 == 920 and sign == '-' and num2 == 217:
print('920-217 = 703')
if num1 == 920 and sign == '-' and num2 == 218:
print('920-218 = 702')
if num1 == 920 and sign == '-' and num2 == 219:
print('920-219 = 701')
if num1 == 920 and sign == '-' and num2 == 220:
print('920-220 = 700')
if num1 == 920 and sign == '-' and num2 == 221:
print('920-221 = 699')
if num1 == 920 and sign == '-' and num2 == 222:
print('920-222 = 698')
if num1 == 920 and sign == '-' and num2 == 223:
print('920-223 = 697')
if num1 == 920 and sign == '-' and num2 == 224:
print('920-224 = 696')
if num1 == 920 and sign == '-' and num2 == 225:
print('920-225 = 695')
if num1 == 920 and sign == '-' and num2 == 226:
print('920-226 = 694')
if num1 == 920 and sign == '-' and num2 == 227:
print('920-227 = 693')
if num1 == 920 and sign == '-' and num2 == 228:
print('920-228 = 692')
if num1 == 920 and sign == '-' and num2 == 229:
print('920-229 = 691')
if num1 == 920 and sign == '-' and num2 == 230:
print('920-230 = 690')
if num1 == 920 and sign == '-' and num2 == 231:
print('920-231 = 689')
if num1 == 920 and sign == '-' and num2 == 232:
print('920-232 = 688')
if num1 == 920 and sign == '-' and num2 == 233:
print('920-233 = 687')
if num1 == 920 and sign == '-' and num2 == 234:
print('920-234 = 686')
if num1 == 920 and sign == '-' and num2 == 235:
print('920-235 = 685')
if num1 == 920 and sign == '-' and num2 == 236:
print('920-236 = 684')
if num1 == 920 and sign == '-' and num2 == 237:
print('920-237 = 683')
if num1 == 920 and sign == '-' and num2 == 238:
print('920-238 = 682')
if num1 == 920 and sign == '-' and num2 == 239:
print('920-239 = 681')
if num1 == 920 and sign == '-' and num2 == 240:
print('920-240 = 680')
if num1 == 920 and sign == '-' and num2 == 241:
print('920-241 = 679')
if num1 == 920 and sign == '-' and num2 == 242:
print('920-242 = 678')
if num1 == 920 and sign == '-' and num2 == 243:
print('920-243 = 677')
if num1 == 920 and sign == '-' and num2 == 244:
print('920-244 = 676')
if num1 == 920 and sign == '-' and num2 == 245:
print('920-245 = 675')
if num1 == 920 and sign == '-' and num2 == 246:
print('920-246 = 674')
if num1 == 920 and sign == '-' and num2 == 247:
print('920-247 = 673')
if num1 == 920 and sign == '-' and num2 == 248:
print('920-248 = 672')
if num1 == 920 and sign == '-' and num2 == 249:
print('920-249 = 671')
if num1 == 921 and sign == '-' and num2 == 200:
print('921-200 = 721')
if num1 == 921 and sign == '-' and num2 == 201:
print('921-201 = 720')
if num1 == 921 and sign == '-' and num2 == 202:
print('921-202 = 719')
if num1 == 921 and sign == '-' and num2 == 203:
print('921-203 = 718')
if num1 == 921 and sign == '-' and num2 == 204:
print('921-204 = 717')
if num1 == 921 and sign == '-' and num2 == 205:
print('921-205 = 716')
if num1 == 921 and sign == '-' and num2 == 206:
print('921-206 = 715')
if num1 == 921 and sign == '-' and num2 == 207:
print('921-207 = 714')
if num1 == 921 and sign == '-' and num2 == 208:
print('921-208 = 713')
if num1 == 921 and sign == '-' and num2 == 209:
print('921-209 = 712')
if num1 == 921 and sign == '-' and num2 == 210:
print('921-210 = 711')
if num1 == 921 and sign == '-' and num2 == 211:
print('921-211 = 710')
if num1 == 921 and sign == '-' and num2 == 212:
print('921-212 = 709')
if num1 == 921 and sign == '-' and num2 == 213:
print('921-213 = 708')
if num1 == 921 and sign == '-' and num2 == 214:
print('921-214 = 707')
if num1 == 921 and sign == '-' and num2 == 215:
print('921-215 = 706')
if num1 == 921 and sign == '-' and num2 == 216:
print('921-216 = 705')
if num1 == 921 and sign == '-' and num2 == 217:
print('921-217 = 704')
if num1 == 921 and sign == '-' and num2 == 218:
print('921-218 = 703')
if num1 == 921 and sign == '-' and num2 == 219:
print('921-219 = 702')
if num1 == 921 and sign == '-' and num2 == 220:
print('921-220 = 701')
if num1 == 921 and sign == '-' and num2 == 221:
print('921-221 = 700')
if num1 == 921 and sign == '-' and num2 == 222:
print('921-222 = 699')
if num1 == 921 and sign == '-' and num2 == 223:
print('921-223 = 698')
if num1 == 921 and sign == '-' and num2 == 224:
print('921-224 = 697')
if num1 == 921 and sign == '-' and num2 == 225:
print('921-225 = 696')
if num1 == 921 and sign == '-' and num2 == 226:
print('921-226 = 695')
if num1 == 921 and sign == '-' and num2 == 227:
print('921-227 = 694')
if num1 == 921 and sign == '-' and num2 == 228:
print('921-228 = 693')
if num1 == 921 and sign == '-' and num2 == 229:
print('921-229 = 692')
if num1 == 921 and sign == '-' and num2 == 230:
print('921-230 = 691')
if num1 == 921 and sign == '-' and num2 == 231:
print('921-231 = 690')
if num1 == 921 and sign == '-' and num2 == 232:
print('921-232 = 689')
if num1 == 921 and sign == '-' and num2 == 233:
print('921-233 = 688')
if num1 == 921 and sign == '-' and num2 == 234:
print('921-234 = 687')
if num1 == 921 and sign == '-' and num2 == 235:
print('921-235 = 686')
if num1 == 921 and sign == '-' and num2 == 236:
print('921-236 = 685')
if num1 == 921 and sign == '-' and num2 == 237:
print('921-237 = 684')
if num1 == 921 and sign == '-' and num2 == 238:
print('921-238 = 683')
if num1 == 921 and sign == '-' and num2 == 239:
print('921-239 = 682')
if num1 == 921 and sign == '-' and num2 == 240:
print('921-240 = 681')
if num1 == 921 and sign == '-' and num2 == 241:
print('921-241 = 680')
if num1 == 921 and sign == '-' and num2 == 242:
print('921-242 = 679')
if num1 == 921 and sign == '-' and num2 == 243:
print('921-243 = 678')
if num1 == 921 and sign == '-' and num2 == 244:
print('921-244 = 677')
if num1 == 921 and sign == '-' and num2 == 245:
print('921-245 = 676')
if num1 == 921 and sign == '-' and num2 == 246:
print('921-246 = 675')
if num1 == 921 and sign == '-' and num2 == 247:
print('921-247 = 674')
if num1 == 921 and sign == '-' and num2 == 248:
print('921-248 = 673')
if num1 == 921 and sign == '-' and num2 == 249:
print('921-249 = 672')
if num1 == 922 and sign == '-' and num2 == 200:
print('922-200 = 722')
if num1 == 922 and sign == '-' and num2 == 201:
print('922-201 = 721')
if num1 == 922 and sign == '-' and num2 == 202:
print('922-202 = 720')
if num1 == 922 and sign == '-' and num2 == 203:
print('922-203 = 719')
if num1 == 922 and sign == '-' and num2 == 204:
print('922-204 = 718')
if num1 == 922 and sign == '-' and num2 == 205:
print('922-205 = 717')
if num1 == 922 and sign == '-' and num2 == 206:
print('922-206 = 716')
if num1 == 922 and sign == '-' and num2 == 207:
print('922-207 = 715')
if num1 == 922 and sign == '-' and num2 == 208:
print('922-208 = 714')
if num1 == 922 and sign == '-' and num2 == 209:
print('922-209 = 713')
if num1 == 922 and sign == '-' and num2 == 210:
print('922-210 = 712')
if num1 == 922 and sign == '-' and num2 == 211:
print('922-211 = 711')
if num1 == 922 and sign == '-' and num2 == 212:
print('922-212 = 710')
if num1 == 922 and sign == '-' and num2 == 213:
print('922-213 = 709')
if num1 == 922 and sign == '-' and num2 == 214:
print('922-214 = 708')
if num1 == 922 and sign == '-' and num2 == 215:
print('922-215 = 707')
if num1 == 922 and sign == '-' and num2 == 216:
print('922-216 = 706')
if num1 == 922 and sign == '-' and num2 == 217:
print('922-217 = 705')
if num1 == 922 and sign == '-' and num2 == 218:
print('922-218 = 704')
if num1 == 922 and sign == '-' and num2 == 219:
print('922-219 = 703')
if num1 == 922 and sign == '-' and num2 == 220:
print('922-220 = 702')
if num1 == 922 and sign == '-' and num2 == 221:
print('922-221 = 701')
if num1 == 922 and sign == '-' and num2 == 222:
print('922-222 = 700')
if num1 == 922 and sign == '-' and num2 == 223:
print('922-223 = 699')
if num1 == 922 and sign == '-' and num2 == 224:
print('922-224 = 698')
if num1 == 922 and sign == '-' and num2 == 225:
print('922-225 = 697')
if num1 == 922 and sign == '-' and num2 == 226:
print('922-226 = 696')
if num1 == 922 and sign == '-' and num2 == 227:
print('922-227 = 695')
if num1 == 922 and sign == '-' and num2 == 228:
print('922-228 = 694')
if num1 == 922 and sign == '-' and num2 == 229:
print('922-229 = 693')
if num1 == 922 and sign == '-' and num2 == 230:
print('922-230 = 692')
if num1 == 922 and sign == '-' and num2 == 231:
print('922-231 = 691')
if num1 == 922 and sign == '-' and num2 == 232:
print('922-232 = 690')
if num1 == 922 and sign == '-' and num2 == 233:
print('922-233 = 689')
if num1 == 922 and sign == '-' and num2 == 234:
print('922-234 = 688')
if num1 == 922 and sign == '-' and num2 == 235:
print('922-235 = 687')
if num1 == 922 and sign == '-' and num2 == 236:
print('922-236 = 686')
if num1 == 922 and sign == '-' and num2 == 237:
print('922-237 = 685')
if num1 == 922 and sign == '-' and num2 == 238:
print('922-238 = 684')
if num1 == 922 and sign == '-' and num2 == 239:
print('922-239 = 683')
if num1 == 922 and sign == '-' and num2 == 240:
print('922-240 = 682')
if num1 == 922 and sign == '-' and num2 == 241:
print('922-241 = 681')
if num1 == 922 and sign == '-' and num2 == 242:
print('922-242 = 680')
if num1 == 922 and sign == '-' and num2 == 243:
print('922-243 = 679')
if num1 == 922 and sign == '-' and num2 == 244:
print('922-244 = 678')
if num1 == 922 and sign == '-' and num2 == 245:
print('922-245 = 677')
if num1 == 922 and sign == '-' and num2 == 246:
print('922-246 = 676')
if num1 == 922 and sign == '-' and num2 == 247:
print('922-247 = 675')
if num1 == 922 and sign == '-' and num2 == 248:
print('922-248 = 674')
if num1 == 922 and sign == '-' and num2 == 249:
print('922-249 = 673')
if num1 == 923 and sign == '-' and num2 == 200:
print('923-200 = 723')
if num1 == 923 and sign == '-' and num2 == 201:
print('923-201 = 722')
if num1 == 923 and sign == '-' and num2 == 202:
print('923-202 = 721')
if num1 == 923 and sign == '-' and num2 == 203:
print('923-203 = 720')
if num1 == 923 and sign == '-' and num2 == 204:
print('923-204 = 719')
if num1 == 923 and sign == '-' and num2 == 205:
print('923-205 = 718')
if num1 == 923 and sign == '-' and num2 == 206:
print('923-206 = 717')
if num1 == 923 and sign == '-' and num2 == 207:
print('923-207 = 716')
if num1 == 923 and sign == '-' and num2 == 208:
print('923-208 = 715')
if num1 == 923 and sign == '-' and num2 == 209:
print('923-209 = 714')
if num1 == 923 and sign == '-' and num2 == 210:
print('923-210 = 713')
if num1 == 923 and sign == '-' and num2 == 211:
print('923-211 = 712')
if num1 == 923 and sign == '-' and num2 == 212:
print('923-212 = 711')
if num1 == 923 and sign == '-' and num2 == 213:
print('923-213 = 710')
if num1 == 923 and sign == '-' and num2 == 214:
print('923-214 = 709')
if num1 == 923 and sign == '-' and num2 == 215:
print('923-215 = 708')
if num1 == 923 and sign == '-' and num2 == 216:
print('923-216 = 707')
if num1 == 923 and sign == '-' and num2 == 217:
print('923-217 = 706')
if num1 == 923 and sign == '-' and num2 == 218:
print('923-218 = 705')
if num1 == 923 and sign == '-' and num2 == 219:
print('923-219 = 704')
if num1 == 923 and sign == '-' and num2 == 220:
print('923-220 = 703')
if num1 == 923 and sign == '-' and num2 == 221:
print('923-221 = 702')
if num1 == 923 and sign == '-' and num2 == 222:
print('923-222 = 701')
if num1 == 923 and sign == '-' and num2 == 223:
print('923-223 = 700')
if num1 == 923 and sign == '-' and num2 == 224:
print('923-224 = 699')
if num1 == 923 and sign == '-' and num2 == 225:
print('923-225 = 698')
if num1 == 923 and sign == '-' and num2 == 226:
print('923-226 = 697')
if num1 == 923 and sign == '-' and num2 == 227:
print('923-227 = 696')
if num1 == 923 and sign == '-' and num2 == 228:
print('923-228 = 695')
if num1 == 923 and sign == '-' and num2 == 229:
print('923-229 = 694')
if num1 == 923 and sign == '-' and num2 == 230:
print('923-230 = 693')
if num1 == 923 and sign == '-' and num2 == 231:
print('923-231 = 692')
if num1 == 923 and sign == '-' and num2 == 232:
print('923-232 = 691')
if num1 == 923 and sign == '-' and num2 == 233:
print('923-233 = 690')
if num1 == 923 and sign == '-' and num2 == 234:
print('923-234 = 689')
if num1 == 923 and sign == '-' and num2 == 235:
print('923-235 = 688')
if num1 == 923 and sign == '-' and num2 == 236:
print('923-236 = 687')
if num1 == 923 and sign == '-' and num2 == 237:
print('923-237 = 686')
if num1 == 923 and sign == '-' and num2 == 238:
print('923-238 = 685')
if num1 == 923 and sign == '-' and num2 == 239:
print('923-239 = 684')
if num1 == 923 and sign == '-' and num2 == 240:
print('923-240 = 683')
if num1 == 923 and sign == '-' and num2 == 241:
print('923-241 = 682')
if num1 == 923 and sign == '-' and num2 == 242:
print('923-242 = 681')
if num1 == 923 and sign == '-' and num2 == 243:
print('923-243 = 680')
if num1 == 923 and sign == '-' and num2 == 244:
print('923-244 = 679')
if num1 == 923 and sign == '-' and num2 == 245:
print('923-245 = 678')
if num1 == 923 and sign == '-' and num2 == 246:
print('923-246 = 677')
if num1 == 923 and sign == '-' and num2 == 247:
print('923-247 = 676')
if num1 == 923 and sign == '-' and num2 == 248:
print('923-248 = 675')
if num1 == 923 and sign == '-' and num2 == 249:
print('923-249 = 674')
if num1 == 924 and sign == '-' and num2 == 200:
print('924-200 = 724')
if num1 == 924 and sign == '-' and num2 == 201:
print('924-201 = 723')
if num1 == 924 and sign == '-' and num2 == 202:
print('924-202 = 722')
if num1 == 924 and sign == '-' and num2 == 203:
print('924-203 = 721')
if num1 == 924 and sign == '-' and num2 == 204:
print('924-204 = 720')
if num1 == 924 and sign == '-' and num2 == 205:
print('924-205 = 719')
if num1 == 924 and sign == '-' and num2 == 206:
print('924-206 = 718')
if num1 == 924 and sign == '-' and num2 == 207:
print('924-207 = 717')
if num1 == 924 and sign == '-' and num2 == 208:
print('924-208 = 716')
if num1 == 924 and sign == '-' and num2 == 209:
print('924-209 = 715')
if num1 == 924 and sign == '-' and num2 == 210:
print('924-210 = 714')
if num1 == 924 and sign == '-' and num2 == 211:
print('924-211 = 713')
if num1 == 924 and sign == '-' and num2 == 212:
print('924-212 = 712')
if num1 == 924 and sign == '-' and num2 == 213:
print('924-213 = 711')
if num1 == 924 and sign == '-' and num2 == 214:
print('924-214 = 710')
if num1 == 924 and sign == '-' and num2 == 215:
print('924-215 = 709')
if num1 == 924 and sign == '-' and num2 == 216:
print('924-216 = 708')
if num1 == 924 and sign == '-' and num2 == 217:
print('924-217 = 707')
if num1 == 924 and sign == '-' and num2 == 218:
print('924-218 = 706')
if num1 == 924 and sign == '-' and num2 == 219:
print('924-219 = 705')
if num1 == 924 and sign == '-' and num2 == 220:
print('924-220 = 704')
if num1 == 924 and sign == '-' and num2 == 221:
print('924-221 = 703')
if num1 == 924 and sign == '-' and num2 == 222:
print('924-222 = 702')
if num1 == 924 and sign == '-' and num2 == 223:
print('924-223 = 701')
if num1 == 924 and sign == '-' and num2 == 224:
print('924-224 = 700')
if num1 == 924 and sign == '-' and num2 == 225:
print('924-225 = 699')
if num1 == 924 and sign == '-' and num2 == 226:
print('924-226 = 698')
if num1 == 924 and sign == '-' and num2 == 227:
print('924-227 = 697')
if num1 == 924 and sign == '-' and num2 == 228:
print('924-228 = 696')
if num1 == 924 and sign == '-' and num2 == 229:
print('924-229 = 695')
if num1 == 924 and sign == '-' and num2 == 230:
print('924-230 = 694')
if num1 == 924 and sign == '-' and num2 == 231:
print('924-231 = 693')
if num1 == 924 and sign == '-' and num2 == 232:
print('924-232 = 692')
if num1 == 924 and sign == '-' and num2 == 233:
print('924-233 = 691')
if num1 == 924 and sign == '-' and num2 == 234:
print('924-234 = 690')
if num1 == 924 and sign == '-' and num2 == 235:
print('924-235 = 689')
if num1 == 924 and sign == '-' and num2 == 236:
print('924-236 = 688')
if num1 == 924 and sign == '-' and num2 == 237:
print('924-237 = 687')
if num1 == 924 and sign == '-' and num2 == 238:
print('924-238 = 686')
if num1 == 924 and sign == '-' and num2 == 239:
print('924-239 = 685')
if num1 == 924 and sign == '-' and num2 == 240:
print('924-240 = 684')
if num1 == 924 and sign == '-' and num2 == 241:
print('924-241 = 683')
if num1 == 924 and sign == '-' and num2 == 242:
print('924-242 = 682')
if num1 == 924 and sign == '-' and num2 == 243:
print('924-243 = 681')
if num1 == 924 and sign == '-' and num2 == 244:
print('924-244 = 680')
if num1 == 924 and sign == '-' and num2 == 245:
print('924-245 = 679')
if num1 == 924 and sign == '-' and num2 == 246:
print('924-246 = 678')
if num1 == 924 and sign == '-' and num2 == 247:
print('924-247 = 677')
if num1 == 924 and sign == '-' and num2 == 248:
print('924-248 = 676')
if num1 == 924 and sign == '-' and num2 == 249:
print('924-249 = 675')
if num1 == 925 and sign == '-' and num2 == 200:
print('925-200 = 725')
if num1 == 925 and sign == '-' and num2 == 201:
print('925-201 = 724')
if num1 == 925 and sign == '-' and num2 == 202:
print('925-202 = 723')
if num1 == 925 and sign == '-' and num2 == 203:
print('925-203 = 722')
if num1 == 925 and sign == '-' and num2 == 204:
print('925-204 = 721')
if num1 == 925 and sign == '-' and num2 == 205:
print('925-205 = 720')
if num1 == 925 and sign == '-' and num2 == 206:
print('925-206 = 719')
if num1 == 925 and sign == '-' and num2 == 207:
print('925-207 = 718')
if num1 == 925 and sign == '-' and num2 == 208:
print('925-208 = 717')
if num1 == 925 and sign == '-' and num2 == 209:
print('925-209 = 716')
if num1 == 925 and sign == '-' and num2 == 210:
print('925-210 = 715')
if num1 == 925 and sign == '-' and num2 == 211:
print('925-211 = 714')
if num1 == 925 and sign == '-' and num2 == 212:
print('925-212 = 713')
if num1 == 925 and sign == '-' and num2 == 213:
print('925-213 = 712')
if num1 == 925 and sign == '-' and num2 == 214:
print('925-214 = 711')
if num1 == 925 and sign == '-' and num2 == 215:
print('925-215 = 710')
if num1 == 925 and sign == '-' and num2 == 216:
print('925-216 = 709')
if num1 == 925 and sign == '-' and num2 == 217:
print('925-217 = 708')
if num1 == 925 and sign == '-' and num2 == 218:
print('925-218 = 707')
if num1 == 925 and sign == '-' and num2 == 219:
print('925-219 = 706')
if num1 == 925 and sign == '-' and num2 == 220:
print('925-220 = 705')
if num1 == 925 and sign == '-' and num2 == 221:
print('925-221 = 704')
if num1 == 925 and sign == '-' and num2 == 222:
print('925-222 = 703')
if num1 == 925 and sign == '-' and num2 == 223:
print('925-223 = 702')
if num1 == 925 and sign == '-' and num2 == 224:
print('925-224 = 701')
if num1 == 925 and sign == '-' and num2 == 225:
print('925-225 = 700')
if num1 == 925 and sign == '-' and num2 == 226:
print('925-226 = 699')
if num1 == 925 and sign == '-' and num2 == 227:
print('925-227 = 698')
if num1 == 925 and sign == '-' and num2 == 228:
print('925-228 = 697')
if num1 == 925 and sign == '-' and num2 == 229:
print('925-229 = 696')
if num1 == 925 and sign == '-' and num2 == 230:
print('925-230 = 695')
if num1 == 925 and sign == '-' and num2 == 231:
print('925-231 = 694')
if num1 == 925 and sign == '-' and num2 == 232:
print('925-232 = 693')
if num1 == 925 and sign == '-' and num2 == 233:
print('925-233 = 692')
if num1 == 925 and sign == '-' and num2 == 234:
print('925-234 = 691')
if num1 == 925 and sign == '-' and num2 == 235:
print('925-235 = 690')
if num1 == 925 and sign == '-' and num2 == 236:
print('925-236 = 689')
if num1 == 925 and sign == '-' and num2 == 237:
print('925-237 = 688')
if num1 == 925 and sign == '-' and num2 == 238:
print('925-238 = 687')
if num1 == 925 and sign == '-' and num2 == 239:
print('925-239 = 686')
if num1 == 925 and sign == '-' and num2 == 240:
print('925-240 = 685')
if num1 == 925 and sign == '-' and num2 == 241:
print('925-241 = 684')
if num1 == 925 and sign == '-' and num2 == 242:
print('925-242 = 683')
if num1 == 925 and sign == '-' and num2 == 243:
print('925-243 = 682')
if num1 == 925 and sign == '-' and num2 == 244:
print('925-244 = 681')
if num1 == 925 and sign == '-' and num2 == 245:
print('925-245 = 680')
if num1 == 925 and sign == '-' and num2 == 246:
print('925-246 = 679')
if num1 == 925 and sign == '-' and num2 == 247:
print('925-247 = 678')
if num1 == 925 and sign == '-' and num2 == 248:
print('925-248 = 677')
if num1 == 925 and sign == '-' and num2 == 249:
print('925-249 = 676')
if num1 == 926 and sign == '-' and num2 == 200:
print('926-200 = 726')
if num1 == 926 and sign == '-' and num2 == 201:
print('926-201 = 725')
if num1 == 926 and sign == '-' and num2 == 202:
print('926-202 = 724')
if num1 == 926 and sign == '-' and num2 == 203:
print('926-203 = 723')
if num1 == 926 and sign == '-' and num2 == 204:
print('926-204 = 722')
if num1 == 926 and sign == '-' and num2 == 205:
print('926-205 = 721')
if num1 == 926 and sign == '-' and num2 == 206:
print('926-206 = 720')
if num1 == 926 and sign == '-' and num2 == 207:
print('926-207 = 719')
if num1 == 926 and sign == '-' and num2 == 208:
print('926-208 = 718')
if num1 == 926 and sign == '-' and num2 == 209:
print('926-209 = 717')
if num1 == 926 and sign == '-' and num2 == 210:
print('926-210 = 716')
if num1 == 926 and sign == '-' and num2 == 211:
print('926-211 = 715')
if num1 == 926 and sign == '-' and num2 == 212:
print('926-212 = 714')
if num1 == 926 and sign == '-' and num2 == 213:
print('926-213 = 713')
if num1 == 926 and sign == '-' and num2 == 214:
print('926-214 = 712')
if num1 == 926 and sign == '-' and num2 == 215:
print('926-215 = 711')
if num1 == 926 and sign == '-' and num2 == 216:
print('926-216 = 710')
if num1 == 926 and sign == '-' and num2 == 217:
print('926-217 = 709')
if num1 == 926 and sign == '-' and num2 == 218:
print('926-218 = 708')
if num1 == 926 and sign == '-' and num2 == 219:
print('926-219 = 707')
if num1 == 926 and sign == '-' and num2 == 220:
print('926-220 = 706')
if num1 == 926 and sign == '-' and num2 == 221:
print('926-221 = 705')
if num1 == 926 and sign == '-' and num2 == 222:
print('926-222 = 704')
if num1 == 926 and sign == '-' and num2 == 223:
print('926-223 = 703')
if num1 == 926 and sign == '-' and num2 == 224:
print('926-224 = 702')
if num1 == 926 and sign == '-' and num2 == 225:
print('926-225 = 701')
if num1 == 926 and sign == '-' and num2 == 226:
print('926-226 = 700')
if num1 == 926 and sign == '-' and num2 == 227:
print('926-227 = 699')
if num1 == 926 and sign == '-' and num2 == 228:
print('926-228 = 698')
if num1 == 926 and sign == '-' and num2 == 229:
print('926-229 = 697')
if num1 == 926 and sign == '-' and num2 == 230:
print('926-230 = 696')
if num1 == 926 and sign == '-' and num2 == 231:
print('926-231 = 695')
if num1 == 926 and sign == '-' and num2 == 232:
print('926-232 = 694')
if num1 == 926 and sign == '-' and num2 == 233:
print('926-233 = 693')
if num1 == 926 and sign == '-' and num2 == 234:
print('926-234 = 692')
if num1 == 926 and sign == '-' and num2 == 235:
print('926-235 = 691')
if num1 == 926 and sign == '-' and num2 == 236:
print('926-236 = 690')
if num1 == 926 and sign == '-' and num2 == 237:
print('926-237 = 689')
if num1 == 926 and sign == '-' and num2 == 238:
print('926-238 = 688')
if num1 == 926 and sign == '-' and num2 == 239:
print('926-239 = 687')
if num1 == 926 and sign == '-' and num2 == 240:
print('926-240 = 686')
if num1 == 926 and sign == '-' and num2 == 241:
print('926-241 = 685')
if num1 == 926 and sign == '-' and num2 == 242:
print('926-242 = 684')
if num1 == 926 and sign == '-' and num2 == 243:
print('926-243 = 683')
if num1 == 926 and sign == '-' and num2 == 244:
print('926-244 = 682')
if num1 == 926 and sign == '-' and num2 == 245:
print('926-245 = 681')
if num1 == 926 and sign == '-' and num2 == 246:
print('926-246 = 680')
if num1 == 926 and sign == '-' and num2 == 247:
print('926-247 = 679')
if num1 == 926 and sign == '-' and num2 == 248:
print('926-248 = 678')
if num1 == 926 and sign == '-' and num2 == 249:
print('926-249 = 677')
if num1 == 927 and sign == '-' and num2 == 200:
print('927-200 = 727')
if num1 == 927 and sign == '-' and num2 == 201:
print('927-201 = 726')
if num1 == 927 and sign == '-' and num2 == 202:
print('927-202 = 725')
if num1 == 927 and sign == '-' and num2 == 203:
print('927-203 = 724')
if num1 == 927 and sign == '-' and num2 == 204:
print('927-204 = 723')
if num1 == 927 and sign == '-' and num2 == 205:
print('927-205 = 722')
if num1 == 927 and sign == '-' and num2 == 206:
print('927-206 = 721')
if num1 == 927 and sign == '-' and num2 == 207:
print('927-207 = 720')
if num1 == 927 and sign == '-' and num2 == 208:
print('927-208 = 719')
if num1 == 927 and sign == '-' and num2 == 209:
print('927-209 = 718')
if num1 == 927 and sign == '-' and num2 == 210:
print('927-210 = 717')
if num1 == 927 and sign == '-' and num2 == 211:
print('927-211 = 716')
if num1 == 927 and sign == '-' and num2 == 212:
print('927-212 = 715')
if num1 == 927 and sign == '-' and num2 == 213:
print('927-213 = 714')
if num1 == 927 and sign == '-' and num2 == 214:
print('927-214 = 713')
if num1 == 927 and sign == '-' and num2 == 215:
print('927-215 = 712')
if num1 == 927 and sign == '-' and num2 == 216:
print('927-216 = 711')
if num1 == 927 and sign == '-' and num2 == 217:
print('927-217 = 710')
if num1 == 927 and sign == '-' and num2 == 218:
print('927-218 = 709')
if num1 == 927 and sign == '-' and num2 == 219:
print('927-219 = 708')
if num1 == 927 and sign == '-' and num2 == 220:
print('927-220 = 707')
if num1 == 927 and sign == '-' and num2 == 221:
print('927-221 = 706')
if num1 == 927 and sign == '-' and num2 == 222:
print('927-222 = 705')
if num1 == 927 and sign == '-' and num2 == 223:
print('927-223 = 704')
if num1 == 927 and sign == '-' and num2 == 224:
print('927-224 = 703')
if num1 == 927 and sign == '-' and num2 == 225:
print('927-225 = 702')
if num1 == 927 and sign == '-' and num2 == 226:
print('927-226 = 701')
if num1 == 927 and sign == '-' and num2 == 227:
print('927-227 = 700')
if num1 == 927 and sign == '-' and num2 == 228:
print('927-228 = 699')
if num1 == 927 and sign == '-' and num2 == 229:
print('927-229 = 698')
if num1 == 927 and sign == '-' and num2 == 230:
print('927-230 = 697')
if num1 == 927 and sign == '-' and num2 == 231:
print('927-231 = 696')
if num1 == 927 and sign == '-' and num2 == 232:
print('927-232 = 695')
if num1 == 927 and sign == '-' and num2 == 233:
print('927-233 = 694')
if num1 == 927 and sign == '-' and num2 == 234:
print('927-234 = 693')
if num1 == 927 and sign == '-' and num2 == 235:
print('927-235 = 692')
if num1 == 927 and sign == '-' and num2 == 236:
print('927-236 = 691')
if num1 == 927 and sign == '-' and num2 == 237:
print('927-237 = 690')
if num1 == 927 and sign == '-' and num2 == 238:
print('927-238 = 689')
if num1 == 927 and sign == '-' and num2 == 239:
print('927-239 = 688')
if num1 == 927 and sign == '-' and num2 == 240:
print('927-240 = 687')
if num1 == 927 and sign == '-' and num2 == 241:
print('927-241 = 686')
if num1 == 927 and sign == '-' and num2 == 242:
print('927-242 = 685')
if num1 == 927 and sign == '-' and num2 == 243:
print('927-243 = 684')
if num1 == 927 and sign == '-' and num2 == 244:
print('927-244 = 683')
if num1 == 927 and sign == '-' and num2 == 245:
print('927-245 = 682')
if num1 == 927 and sign == '-' and num2 == 246:
print('927-246 = 681')
if num1 == 927 and sign == '-' and num2 == 247:
print('927-247 = 680')
if num1 == 927 and sign == '-' and num2 == 248:
print('927-248 = 679')
if num1 == 927 and sign == '-' and num2 == 249:
print('927-249 = 678')
if num1 == 928 and sign == '-' and num2 == 200:
print('928-200 = 728')
if num1 == 928 and sign == '-' and num2 == 201:
print('928-201 = 727')
if num1 == 928 and sign == '-' and num2 == 202:
print('928-202 = 726')
if num1 == 928 and sign == '-' and num2 == 203:
print('928-203 = 725')
if num1 == 928 and sign == '-' and num2 == 204:
print('928-204 = 724')
if num1 == 928 and sign == '-' and num2 == 205:
print('928-205 = 723')
if num1 == 928 and sign == '-' and num2 == 206:
print('928-206 = 722')
if num1 == 928 and sign == '-' and num2 == 207:
print('928-207 = 721')
if num1 == 928 and sign == '-' and num2 == 208:
print('928-208 = 720')
if num1 == 928 and sign == '-' and num2 == 209:
print('928-209 = 719')
if num1 == 928 and sign == '-' and num2 == 210:
print('928-210 = 718')
if num1 == 928 and sign == '-' and num2 == 211:
print('928-211 = 717')
if num1 == 928 and sign == '-' and num2 == 212:
print('928-212 = 716')
if num1 == 928 and sign == '-' and num2 == 213:
print('928-213 = 715')
if num1 == 928 and sign == '-' and num2 == 214:
print('928-214 = 714')
if num1 == 928 and sign == '-' and num2 == 215:
print('928-215 = 713')
if num1 == 928 and sign == '-' and num2 == 216:
print('928-216 = 712')
if num1 == 928 and sign == '-' and num2 == 217:
print('928-217 = 711')
if num1 == 928 and sign == '-' and num2 == 218:
print('928-218 = 710')
if num1 == 928 and sign == '-' and num2 == 219:
print('928-219 = 709')
if num1 == 928 and sign == '-' and num2 == 220:
print('928-220 = 708')
if num1 == 928 and sign == '-' and num2 == 221:
print('928-221 = 707')
if num1 == 928 and sign == '-' and num2 == 222:
print('928-222 = 706')
if num1 == 928 and sign == '-' and num2 == 223:
print('928-223 = 705')
if num1 == 928 and sign == '-' and num2 == 224:
print('928-224 = 704')
if num1 == 928 and sign == '-' and num2 == 225:
print('928-225 = 703')
if num1 == 928 and sign == '-' and num2 == 226:
print('928-226 = 702')
if num1 == 928 and sign == '-' and num2 == 227:
print('928-227 = 701')
if num1 == 928 and sign == '-' and num2 == 228:
print('928-228 = 700')
if num1 == 928 and sign == '-' and num2 == 229:
print('928-229 = 699')
if num1 == 928 and sign == '-' and num2 == 230:
print('928-230 = 698')
if num1 == 928 and sign == '-' and num2 == 231:
print('928-231 = 697')
if num1 == 928 and sign == '-' and num2 == 232:
print('928-232 = 696')
if num1 == 928 and sign == '-' and num2 == 233:
print('928-233 = 695')
if num1 == 928 and sign == '-' and num2 == 234:
print('928-234 = 694')
if num1 == 928 and sign == '-' and num2 == 235:
print('928-235 = 693')
if num1 == 928 and sign == '-' and num2 == 236:
print('928-236 = 692')
if num1 == 928 and sign == '-' and num2 == 237:
print('928-237 = 691')
if num1 == 928 and sign == '-' and num2 == 238:
print('928-238 = 690')
if num1 == 928 and sign == '-' and num2 == 239:
print('928-239 = 689')
if num1 == 928 and sign == '-' and num2 == 240:
print('928-240 = 688')
if num1 == 928 and sign == '-' and num2 == 241:
print('928-241 = 687')
if num1 == 928 and sign == '-' and num2 == 242:
print('928-242 = 686')
if num1 == 928 and sign == '-' and num2 == 243:
print('928-243 = 685')
if num1 == 928 and sign == '-' and num2 == 244:
print('928-244 = 684')
if num1 == 928 and sign == '-' and num2 == 245:
print('928-245 = 683')
if num1 == 928 and sign == '-' and num2 == 246:
print('928-246 = 682')
if num1 == 928 and sign == '-' and num2 == 247:
print('928-247 = 681')
if num1 == 928 and sign == '-' and num2 == 248:
print('928-248 = 680')
if num1 == 928 and sign == '-' and num2 == 249:
print('928-249 = 679')
if num1 == 929 and sign == '-' and num2 == 200:
print('929-200 = 729')
if num1 == 929 and sign == '-' and num2 == 201:
print('929-201 = 728')
if num1 == 929 and sign == '-' and num2 == 202:
print('929-202 = 727')
if num1 == 929 and sign == '-' and num2 == 203:
print('929-203 = 726')
if num1 == 929 and sign == '-' and num2 == 204:
print('929-204 = 725')
if num1 == 929 and sign == '-' and num2 == 205:
print('929-205 = 724')
if num1 == 929 and sign == '-' and num2 == 206:
print('929-206 = 723')
if num1 == 929 and sign == '-' and num2 == 207:
print('929-207 = 722')
if num1 == 929 and sign == '-' and num2 == 208:
print('929-208 = 721')
if num1 == 929 and sign == '-' and num2 == 209:
print('929-209 = 720')
if num1 == 929 and sign == '-' and num2 == 210:
print('929-210 = 719')
if num1 == 929 and sign == '-' and num2 == 211:
print('929-211 = 718')
if num1 == 929 and sign == '-' and num2 == 212:
print('929-212 = 717')
if num1 == 929 and sign == '-' and num2 == 213:
print('929-213 = 716')
if num1 == 929 and sign == '-' and num2 == 214:
print('929-214 = 715')
if num1 == 929 and sign == '-' and num2 == 215:
print('929-215 = 714')
if num1 == 929 and sign == '-' and num2 == 216:
print('929-216 = 713')
if num1 == 929 and sign == '-' and num2 == 217:
print('929-217 = 712')
if num1 == 929 and sign == '-' and num2 == 218:
print('929-218 = 711')
if num1 == 929 and sign == '-' and num2 == 219:
print('929-219 = 710')
if num1 == 929 and sign == '-' and num2 == 220:
print('929-220 = 709')
if num1 == 929 and sign == '-' and num2 == 221:
print('929-221 = 708')
if num1 == 929 and sign == '-' and num2 == 222:
print('929-222 = 707')
if num1 == 929 and sign == '-' and num2 == 223:
print('929-223 = 706')
if num1 == 929 and sign == '-' and num2 == 224:
print('929-224 = 705')
if num1 == 929 and sign == '-' and num2 == 225:
print('929-225 = 704')
if num1 == 929 and sign == '-' and num2 == 226:
print('929-226 = 703')
if num1 == 929 and sign == '-' and num2 == 227:
print('929-227 = 702')
if num1 == 929 and sign == '-' and num2 == 228:
print('929-228 = 701')
if num1 == 929 and sign == '-' and num2 == 229:
print('929-229 = 700')
if num1 == 929 and sign == '-' and num2 == 230:
print('929-230 = 699')
if num1 == 929 and sign == '-' and num2 == 231:
print('929-231 = 698')
if num1 == 929 and sign == '-' and num2 == 232:
print('929-232 = 697')
if num1 == 929 and sign == '-' and num2 == 233:
print('929-233 = 696')
if num1 == 929 and sign == '-' and num2 == 234:
print('929-234 = 695')
if num1 == 929 and sign == '-' and num2 == 235:
print('929-235 = 694')
if num1 == 929 and sign == '-' and num2 == 236:
print('929-236 = 693')
if num1 == 929 and sign == '-' and num2 == 237:
print('929-237 = 692')
if num1 == 929 and sign == '-' and num2 == 238:
print('929-238 = 691')
if num1 == 929 and sign == '-' and num2 == 239:
print('929-239 = 690')
if num1 == 929 and sign == '-' and num2 == 240:
print('929-240 = 689')
if num1 == 929 and sign == '-' and num2 == 241:
print('929-241 = 688')
if num1 == 929 and sign == '-' and num2 == 242:
print('929-242 = 687')
if num1 == 929 and sign == '-' and num2 == 243:
print('929-243 = 686')
if num1 == 929 and sign == '-' and num2 == 244:
print('929-244 = 685')
if num1 == 929 and sign == '-' and num2 == 245:
print('929-245 = 684')
if num1 == 929 and sign == '-' and num2 == 246:
print('929-246 = 683')
if num1 == 929 and sign == '-' and num2 == 247:
print('929-247 = 682')
if num1 == 929 and sign == '-' and num2 == 248:
print('929-248 = 681')
if num1 == 929 and sign == '-' and num2 == 249:
print('929-249 = 680')
if num1 == 930 and sign == '-' and num2 == 200:
print('930-200 = 730')
if num1 == 930 and sign == '-' and num2 == 201:
print('930-201 = 729')
if num1 == 930 and sign == '-' and num2 == 202:
print('930-202 = 728')
if num1 == 930 and sign == '-' and num2 == 203:
print('930-203 = 727')
if num1 == 930 and sign == '-' and num2 == 204:
print('930-204 = 726')
if num1 == 930 and sign == '-' and num2 == 205:
print('930-205 = 725')
if num1 == 930 and sign == '-' and num2 == 206:
print('930-206 = 724')
if num1 == 930 and sign == '-' and num2 == 207:
print('930-207 = 723')
if num1 == 930 and sign == '-' and num2 == 208:
print('930-208 = 722')
if num1 == 930 and sign == '-' and num2 == 209:
print('930-209 = 721')
if num1 == 930 and sign == '-' and num2 == 210:
print('930-210 = 720')
if num1 == 930 and sign == '-' and num2 == 211:
print('930-211 = 719')
if num1 == 930 and sign == '-' and num2 == 212:
print('930-212 = 718')
if num1 == 930 and sign == '-' and num2 == 213:
print('930-213 = 717')
if num1 == 930 and sign == '-' and num2 == 214:
print('930-214 = 716')
if num1 == 930 and sign == '-' and num2 == 215:
print('930-215 = 715')
if num1 == 930 and sign == '-' and num2 == 216:
print('930-216 = 714')
if num1 == 930 and sign == '-' and num2 == 217:
print('930-217 = 713')
if num1 == 930 and sign == '-' and num2 == 218:
print('930-218 = 712')
if num1 == 930 and sign == '-' and num2 == 219:
print('930-219 = 711')
if num1 == 930 and sign == '-' and num2 == 220:
print('930-220 = 710')
if num1 == 930 and sign == '-' and num2 == 221:
print('930-221 = 709')
if num1 == 930 and sign == '-' and num2 == 222:
print('930-222 = 708')
if num1 == 930 and sign == '-' and num2 == 223:
print('930-223 = 707')
if num1 == 930 and sign == '-' and num2 == 224:
print('930-224 = 706')
if num1 == 930 and sign == '-' and num2 == 225:
print('930-225 = 705')
if num1 == 930 and sign == '-' and num2 == 226:
print('930-226 = 704')
if num1 == 930 and sign == '-' and num2 == 227:
print('930-227 = 703')
if num1 == 930 and sign == '-' and num2 == 228:
print('930-228 = 702')
if num1 == 930 and sign == '-' and num2 == 229:
print('930-229 = 701')
if num1 == 930 and sign == '-' and num2 == 230:
print('930-230 = 700')
if num1 == 930 and sign == '-' and num2 == 231:
print('930-231 = 699')
if num1 == 930 and sign == '-' and num2 == 232:
print('930-232 = 698')
if num1 == 930 and sign == '-' and num2 == 233:
print('930-233 = 697')
if num1 == 930 and sign == '-' and num2 == 234:
print('930-234 = 696')
if num1 == 930 and sign == '-' and num2 == 235:
print('930-235 = 695')
if num1 == 930 and sign == '-' and num2 == 236:
print('930-236 = 694')
if num1 == 930 and sign == '-' and num2 == 237:
print('930-237 = 693')
if num1 == 930 and sign == '-' and num2 == 238:
print('930-238 = 692')
if num1 == 930 and sign == '-' and num2 == 239:
print('930-239 = 691')
if num1 == 930 and sign == '-' and num2 == 240:
print('930-240 = 690')
if num1 == 930 and sign == '-' and num2 == 241:
print('930-241 = 689')
if num1 == 930 and sign == '-' and num2 == 242:
print('930-242 = 688')
if num1 == 930 and sign == '-' and num2 == 243:
print('930-243 = 687')
if num1 == 930 and sign == '-' and num2 == 244:
print('930-244 = 686')
if num1 == 930 and sign == '-' and num2 == 245:
print('930-245 = 685')
if num1 == 930 and sign == '-' and num2 == 246:
print('930-246 = 684')
if num1 == 930 and sign == '-' and num2 == 247:
print('930-247 = 683')
if num1 == 930 and sign == '-' and num2 == 248:
print('930-248 = 682')
if num1 == 930 and sign == '-' and num2 == 249:
print('930-249 = 681')
if num1 == 931 and sign == '-' and num2 == 200:
print('931-200 = 731')
if num1 == 931 and sign == '-' and num2 == 201:
print('931-201 = 730')
if num1 == 931 and sign == '-' and num2 == 202:
print('931-202 = 729')
if num1 == 931 and sign == '-' and num2 == 203:
print('931-203 = 728')
if num1 == 931 and sign == '-' and num2 == 204:
print('931-204 = 727')
if num1 == 931 and sign == '-' and num2 == 205:
print('931-205 = 726')
if num1 == 931 and sign == '-' and num2 == 206:
print('931-206 = 725')
if num1 == 931 and sign == '-' and num2 == 207:
print('931-207 = 724')
if num1 == 931 and sign == '-' and num2 == 208:
print('931-208 = 723')
if num1 == 931 and sign == '-' and num2 == 209:
print('931-209 = 722')
if num1 == 931 and sign == '-' and num2 == 210:
print('931-210 = 721')
if num1 == 931 and sign == '-' and num2 == 211:
print('931-211 = 720')
if num1 == 931 and sign == '-' and num2 == 212:
print('931-212 = 719')
if num1 == 931 and sign == '-' and num2 == 213:
print('931-213 = 718')
if num1 == 931 and sign == '-' and num2 == 214:
print('931-214 = 717')
if num1 == 931 and sign == '-' and num2 == 215:
print('931-215 = 716')
if num1 == 931 and sign == '-' and num2 == 216:
print('931-216 = 715')
if num1 == 931 and sign == '-' and num2 == 217:
print('931-217 = 714')
if num1 == 931 and sign == '-' and num2 == 218:
print('931-218 = 713')
if num1 == 931 and sign == '-' and num2 == 219:
print('931-219 = 712')
if num1 == 931 and sign == '-' and num2 == 220:
print('931-220 = 711')
if num1 == 931 and sign == '-' and num2 == 221:
print('931-221 = 710')
if num1 == 931 and sign == '-' and num2 == 222:
print('931-222 = 709')
if num1 == 931 and sign == '-' and num2 == 223:
print('931-223 = 708')
if num1 == 931 and sign == '-' and num2 == 224:
print('931-224 = 707')
if num1 == 931 and sign == '-' and num2 == 225:
print('931-225 = 706')
if num1 == 931 and sign == '-' and num2 == 226:
print('931-226 = 705')
if num1 == 931 and sign == '-' and num2 == 227:
print('931-227 = 704')
if num1 == 931 and sign == '-' and num2 == 228:
print('931-228 = 703')
if num1 == 931 and sign == '-' and num2 == 229:
print('931-229 = 702')
if num1 == 931 and sign == '-' and num2 == 230:
print('931-230 = 701')
if num1 == 931 and sign == '-' and num2 == 231:
print('931-231 = 700')
if num1 == 931 and sign == '-' and num2 == 232:
print('931-232 = 699')
if num1 == 931 and sign == '-' and num2 == 233:
print('931-233 = 698')
if num1 == 931 and sign == '-' and num2 == 234:
print('931-234 = 697')
if num1 == 931 and sign == '-' and num2 == 235:
print('931-235 = 696')
if num1 == 931 and sign == '-' and num2 == 236:
print('931-236 = 695')
if num1 == 931 and sign == '-' and num2 == 237:
print('931-237 = 694')
if num1 == 931 and sign == '-' and num2 == 238:
print('931-238 = 693')
if num1 == 931 and sign == '-' and num2 == 239:
print('931-239 = 692')
if num1 == 931 and sign == '-' and num2 == 240:
print('931-240 = 691')
if num1 == 931 and sign == '-' and num2 == 241:
print('931-241 = 690')
if num1 == 931 and sign == '-' and num2 == 242:
print('931-242 = 689')
if num1 == 931 and sign == '-' and num2 == 243:
print('931-243 = 688')
if num1 == 931 and sign == '-' and num2 == 244:
print('931-244 = 687')
if num1 == 931 and sign == '-' and num2 == 245:
print('931-245 = 686')
if num1 == 931 and sign == '-' and num2 == 246:
print('931-246 = 685')
if num1 == 931 and sign == '-' and num2 == 247:
print('931-247 = 684')
if num1 == 931 and sign == '-' and num2 == 248:
print('931-248 = 683')
if num1 == 931 and sign == '-' and num2 == 249:
print('931-249 = 682')
if num1 == 932 and sign == '-' and num2 == 200:
print('932-200 = 732')
if num1 == 932 and sign == '-' and num2 == 201:
print('932-201 = 731')
if num1 == 932 and sign == '-' and num2 == 202:
print('932-202 = 730')
if num1 == 932 and sign == '-' and num2 == 203:
print('932-203 = 729')
if num1 == 932 and sign == '-' and num2 == 204:
print('932-204 = 728')
if num1 == 932 and sign == '-' and num2 == 205:
print('932-205 = 727')
if num1 == 932 and sign == '-' and num2 == 206:
print('932-206 = 726')
if num1 == 932 and sign == '-' and num2 == 207:
print('932-207 = 725')
if num1 == 932 and sign == '-' and num2 == 208:
print('932-208 = 724')
if num1 == 932 and sign == '-' and num2 == 209:
print('932-209 = 723')
if num1 == 932 and sign == '-' and num2 == 210:
print('932-210 = 722')
if num1 == 932 and sign == '-' and num2 == 211:
print('932-211 = 721')
if num1 == 932 and sign == '-' and num2 == 212:
print('932-212 = 720')
if num1 == 932 and sign == '-' and num2 == 213:
print('932-213 = 719')
if num1 == 932 and sign == '-' and num2 == 214:
print('932-214 = 718')
if num1 == 932 and sign == '-' and num2 == 215:
print('932-215 = 717')
if num1 == 932 and sign == '-' and num2 == 216:
print('932-216 = 716')
if num1 == 932 and sign == '-' and num2 == 217:
print('932-217 = 715')
if num1 == 932 and sign == '-' and num2 == 218:
print('932-218 = 714')
if num1 == 932 and sign == '-' and num2 == 219:
print('932-219 = 713')
if num1 == 932 and sign == '-' and num2 == 220:
print('932-220 = 712')
if num1 == 932 and sign == '-' and num2 == 221:
print('932-221 = 711')
if num1 == 932 and sign == '-' and num2 == 222:
print('932-222 = 710')
if num1 == 932 and sign == '-' and num2 == 223:
print('932-223 = 709')
if num1 == 932 and sign == '-' and num2 == 224:
print('932-224 = 708')
if num1 == 932 and sign == '-' and num2 == 225:
print('932-225 = 707')
if num1 == 932 and sign == '-' and num2 == 226:
print('932-226 = 706')
if num1 == 932 and sign == '-' and num2 == 227:
print('932-227 = 705')
if num1 == 932 and sign == '-' and num2 == 228:
print('932-228 = 704')
if num1 == 932 and sign == '-' and num2 == 229:
print('932-229 = 703')
if num1 == 932 and sign == '-' and num2 == 230:
print('932-230 = 702')
if num1 == 932 and sign == '-' and num2 == 231:
print('932-231 = 701')
if num1 == 932 and sign == '-' and num2 == 232:
print('932-232 = 700')
if num1 == 932 and sign == '-' and num2 == 233:
print('932-233 = 699')
if num1 == 932 and sign == '-' and num2 == 234:
print('932-234 = 698')
if num1 == 932 and sign == '-' and num2 == 235:
print('932-235 = 697')
if num1 == 932 and sign == '-' and num2 == 236:
print('932-236 = 696')
if num1 == 932 and sign == '-' and num2 == 237:
print('932-237 = 695')
if num1 == 932 and sign == '-' and num2 == 238:
print('932-238 = 694')
if num1 == 932 and sign == '-' and num2 == 239:
print('932-239 = 693')
if num1 == 932 and sign == '-' and num2 == 240:
print('932-240 = 692')
if num1 == 932 and sign == '-' and num2 == 241:
print('932-241 = 691')
if num1 == 932 and sign == '-' and num2 == 242:
print('932-242 = 690')
if num1 == 932 and sign == '-' and num2 == 243:
print('932-243 = 689')
if num1 == 932 and sign == '-' and num2 == 244:
print('932-244 = 688')
if num1 == 932 and sign == '-' and num2 == 245:
print('932-245 = 687')
if num1 == 932 and sign == '-' and num2 == 246:
print('932-246 = 686')
if num1 == 932 and sign == '-' and num2 == 247:
print('932-247 = 685')
if num1 == 932 and sign == '-' and num2 == 248:
print('932-248 = 684')
if num1 == 932 and sign == '-' and num2 == 249:
print('932-249 = 683')
if num1 == 933 and sign == '-' and num2 == 200:
print('933-200 = 733')
if num1 == 933 and sign == '-' and num2 == 201:
print('933-201 = 732')
if num1 == 933 and sign == '-' and num2 == 202:
print('933-202 = 731')
if num1 == 933 and sign == '-' and num2 == 203:
print('933-203 = 730')
if num1 == 933 and sign == '-' and num2 == 204:
print('933-204 = 729')
if num1 == 933 and sign == '-' and num2 == 205:
print('933-205 = 728')
if num1 == 933 and sign == '-' and num2 == 206:
print('933-206 = 727')
if num1 == 933 and sign == '-' and num2 == 207:
print('933-207 = 726')
if num1 == 933 and sign == '-' and num2 == 208:
print('933-208 = 725')
if num1 == 933 and sign == '-' and num2 == 209:
print('933-209 = 724')
if num1 == 933 and sign == '-' and num2 == 210:
print('933-210 = 723')
if num1 == 933 and sign == '-' and num2 == 211:
print('933-211 = 722')
if num1 == 933 and sign == '-' and num2 == 212:
print('933-212 = 721')
if num1 == 933 and sign == '-' and num2 == 213:
print('933-213 = 720')
if num1 == 933 and sign == '-' and num2 == 214:
print('933-214 = 719')
if num1 == 933 and sign == '-' and num2 == 215:
print('933-215 = 718')
if num1 == 933 and sign == '-' and num2 == 216:
print('933-216 = 717')
if num1 == 933 and sign == '-' and num2 == 217:
print('933-217 = 716')
if num1 == 933 and sign == '-' and num2 == 218:
print('933-218 = 715')
if num1 == 933 and sign == '-' and num2 == 219:
print('933-219 = 714')
if num1 == 933 and sign == '-' and num2 == 220:
print('933-220 = 713')
if num1 == 933 and sign == '-' and num2 == 221:
print('933-221 = 712')
if num1 == 933 and sign == '-' and num2 == 222:
print('933-222 = 711')
if num1 == 933 and sign == '-' and num2 == 223:
print('933-223 = 710')
if num1 == 933 and sign == '-' and num2 == 224:
print('933-224 = 709')
if num1 == 933 and sign == '-' and num2 == 225:
print('933-225 = 708')
if num1 == 933 and sign == '-' and num2 == 226:
print('933-226 = 707')
if num1 == 933 and sign == '-' and num2 == 227:
print('933-227 = 706')
if num1 == 933 and sign == '-' and num2 == 228:
print('933-228 = 705')
if num1 == 933 and sign == '-' and num2 == 229:
print('933-229 = 704')
if num1 == 933 and sign == '-' and num2 == 230:
print('933-230 = 703')
if num1 == 933 and sign == '-' and num2 == 231:
print('933-231 = 702')
if num1 == 933 and sign == '-' and num2 == 232:
print('933-232 = 701')
if num1 == 933 and sign == '-' and num2 == 233:
print('933-233 = 700')
if num1 == 933 and sign == '-' and num2 == 234:
print('933-234 = 699')
if num1 == 933 and sign == '-' and num2 == 235:
print('933-235 = 698')
if num1 == 933 and sign == '-' and num2 == 236:
print('933-236 = 697')
if num1 == 933 and sign == '-' and num2 == 237:
print('933-237 = 696')
if num1 == 933 and sign == '-' and num2 == 238:
print('933-238 = 695')
if num1 == 933 and sign == '-' and num2 == 239:
print('933-239 = 694')
if num1 == 933 and sign == '-' and num2 == 240:
print('933-240 = 693')
if num1 == 933 and sign == '-' and num2 == 241:
print('933-241 = 692')
if num1 == 933 and sign == '-' and num2 == 242:
print('933-242 = 691')
if num1 == 933 and sign == '-' and num2 == 243:
print('933-243 = 690')
if num1 == 933 and sign == '-' and num2 == 244:
print('933-244 = 689')
if num1 == 933 and sign == '-' and num2 == 245:
print('933-245 = 688')
if num1 == 933 and sign == '-' and num2 == 246:
print('933-246 = 687')
if num1 == 933 and sign == '-' and num2 == 247:
print('933-247 = 686')
if num1 == 933 and sign == '-' and num2 == 248:
print('933-248 = 685')
if num1 == 933 and sign == '-' and num2 == 249:
print('933-249 = 684')
if num1 == 934 and sign == '-' and num2 == 200:
print('934-200 = 734')
if num1 == 934 and sign == '-' and num2 == 201:
print('934-201 = 733')
if num1 == 934 and sign == '-' and num2 == 202:
print('934-202 = 732')
if num1 == 934 and sign == '-' and num2 == 203:
print('934-203 = 731')
if num1 == 934 and sign == '-' and num2 == 204:
print('934-204 = 730')
if num1 == 934 and sign == '-' and num2 == 205:
print('934-205 = 729')
if num1 == 934 and sign == '-' and num2 == 206:
print('934-206 = 728')
if num1 == 934 and sign == '-' and num2 == 207:
print('934-207 = 727')
if num1 == 934 and sign == '-' and num2 == 208:
print('934-208 = 726')
if num1 == 934 and sign == '-' and num2 == 209:
print('934-209 = 725')
if num1 == 934 and sign == '-' and num2 == 210:
print('934-210 = 724')
if num1 == 934 and sign == '-' and num2 == 211:
print('934-211 = 723')
if num1 == 934 and sign == '-' and num2 == 212:
print('934-212 = 722')
if num1 == 934 and sign == '-' and num2 == 213:
print('934-213 = 721')
if num1 == 934 and sign == '-' and num2 == 214:
print('934-214 = 720')
if num1 == 934 and sign == '-' and num2 == 215:
print('934-215 = 719')
if num1 == 934 and sign == '-' and num2 == 216:
print('934-216 = 718')
if num1 == 934 and sign == '-' and num2 == 217:
print('934-217 = 717')
if num1 == 934 and sign == '-' and num2 == 218:
print('934-218 = 716')
if num1 == 934 and sign == '-' and num2 == 219:
print('934-219 = 715')
if num1 == 934 and sign == '-' and num2 == 220:
print('934-220 = 714')
if num1 == 934 and sign == '-' and num2 == 221:
print('934-221 = 713')
if num1 == 934 and sign == '-' and num2 == 222:
print('934-222 = 712')
if num1 == 934 and sign == '-' and num2 == 223:
print('934-223 = 711')
if num1 == 934 and sign == '-' and num2 == 224:
print('934-224 = 710')
if num1 == 934 and sign == '-' and num2 == 225:
print('934-225 = 709')
if num1 == 934 and sign == '-' and num2 == 226:
print('934-226 = 708')
if num1 == 934 and sign == '-' and num2 == 227:
print('934-227 = 707')
if num1 == 934 and sign == '-' and num2 == 228:
print('934-228 = 706')
if num1 == 934 and sign == '-' and num2 == 229:
print('934-229 = 705')
if num1 == 934 and sign == '-' and num2 == 230:
print('934-230 = 704')
if num1 == 934 and sign == '-' and num2 == 231:
print('934-231 = 703')
if num1 == 934 and sign == '-' and num2 == 232:
print('934-232 = 702')
if num1 == 934 and sign == '-' and num2 == 233:
print('934-233 = 701')
if num1 == 934 and sign == '-' and num2 == 234:
print('934-234 = 700')
if num1 == 934 and sign == '-' and num2 == 235:
print('934-235 = 699')
if num1 == 934 and sign == '-' and num2 == 236:
print('934-236 = 698')
if num1 == 934 and sign == '-' and num2 == 237:
print('934-237 = 697')
if num1 == 934 and sign == '-' and num2 == 238:
print('934-238 = 696')
if num1 == 934 and sign == '-' and num2 == 239:
print('934-239 = 695')
if num1 == 934 and sign == '-' and num2 == 240:
print('934-240 = 694')
if num1 == 934 and sign == '-' and num2 == 241:
print('934-241 = 693')
if num1 == 934 and sign == '-' and num2 == 242:
print('934-242 = 692')
if num1 == 934 and sign == '-' and num2 == 243:
print('934-243 = 691')
if num1 == 934 and sign == '-' and num2 == 244:
print('934-244 = 690')
if num1 == 934 and sign == '-' and num2 == 245:
print('934-245 = 689')
if num1 == 934 and sign == '-' and num2 == 246:
print('934-246 = 688')
if num1 == 934 and sign == '-' and num2 == 247:
print('934-247 = 687')
if num1 == 934 and sign == '-' and num2 == 248:
print('934-248 = 686')
if num1 == 934 and sign == '-' and num2 == 249:
print('934-249 = 685')
if num1 == 935 and sign == '-' and num2 == 200:
print('935-200 = 735')
if num1 == 935 and sign == '-' and num2 == 201:
print('935-201 = 734')
if num1 == 935 and sign == '-' and num2 == 202:
print('935-202 = 733')
if num1 == 935 and sign == '-' and num2 == 203:
print('935-203 = 732')
if num1 == 935 and sign == '-' and num2 == 204:
print('935-204 = 731')
if num1 == 935 and sign == '-' and num2 == 205:
print('935-205 = 730')
if num1 == 935 and sign == '-' and num2 == 206:
print('935-206 = 729')
if num1 == 935 and sign == '-' and num2 == 207:
print('935-207 = 728')
if num1 == 935 and sign == '-' and num2 == 208:
print('935-208 = 727')
if num1 == 935 and sign == '-' and num2 == 209:
print('935-209 = 726')
if num1 == 935 and sign == '-' and num2 == 210:
print('935-210 = 725')
if num1 == 935 and sign == '-' and num2 == 211:
print('935-211 = 724')
if num1 == 935 and sign == '-' and num2 == 212:
print('935-212 = 723')
if num1 == 935 and sign == '-' and num2 == 213:
print('935-213 = 722')
if num1 == 935 and sign == '-' and num2 == 214:
print('935-214 = 721')
if num1 == 935 and sign == '-' and num2 == 215:
print('935-215 = 720')
if num1 == 935 and sign == '-' and num2 == 216:
print('935-216 = 719')
if num1 == 935 and sign == '-' and num2 == 217:
print('935-217 = 718')
if num1 == 935 and sign == '-' and num2 == 218:
print('935-218 = 717')
if num1 == 935 and sign == '-' and num2 == 219:
print('935-219 = 716')
if num1 == 935 and sign == '-' and num2 == 220:
print('935-220 = 715')
if num1 == 935 and sign == '-' and num2 == 221:
print('935-221 = 714')
if num1 == 935 and sign == '-' and num2 == 222:
print('935-222 = 713')
if num1 == 935 and sign == '-' and num2 == 223:
print('935-223 = 712')
if num1 == 935 and sign == '-' and num2 == 224:
print('935-224 = 711')
if num1 == 935 and sign == '-' and num2 == 225:
print('935-225 = 710')
if num1 == 935 and sign == '-' and num2 == 226:
print('935-226 = 709')
if num1 == 935 and sign == '-' and num2 == 227:
print('935-227 = 708')
if num1 == 935 and sign == '-' and num2 == 228:
print('935-228 = 707')
if num1 == 935 and sign == '-' and num2 == 229:
print('935-229 = 706')
if num1 == 935 and sign == '-' and num2 == 230:
print('935-230 = 705')
if num1 == 935 and sign == '-' and num2 == 231:
print('935-231 = 704')
if num1 == 935 and sign == '-' and num2 == 232:
print('935-232 = 703')
if num1 == 935 and sign == '-' and num2 == 233:
print('935-233 = 702')
if num1 == 935 and sign == '-' and num2 == 234:
print('935-234 = 701')
if num1 == 935 and sign == '-' and num2 == 235:
print('935-235 = 700')
if num1 == 935 and sign == '-' and num2 == 236:
print('935-236 = 699')
if num1 == 935 and sign == '-' and num2 == 237:
print('935-237 = 698')
if num1 == 935 and sign == '-' and num2 == 238:
print('935-238 = 697')
if num1 == 935 and sign == '-' and num2 == 239:
print('935-239 = 696')
if num1 == 935 and sign == '-' and num2 == 240:
print('935-240 = 695')
if num1 == 935 and sign == '-' and num2 == 241:
print('935-241 = 694')
if num1 == 935 and sign == '-' and num2 == 242:
print('935-242 = 693')
if num1 == 935 and sign == '-' and num2 == 243:
print('935-243 = 692')
if num1 == 935 and sign == '-' and num2 == 244:
print('935-244 = 691')
if num1 == 935 and sign == '-' and num2 == 245:
print('935-245 = 690')
if num1 == 935 and sign == '-' and num2 == 246:
print('935-246 = 689')
if num1 == 935 and sign == '-' and num2 == 247:
print('935-247 = 688')
if num1 == 935 and sign == '-' and num2 == 248:
print('935-248 = 687')
if num1 == 935 and sign == '-' and num2 == 249:
print('935-249 = 686')
if num1 == 936 and sign == '-' and num2 == 200:
print('936-200 = 736')
if num1 == 936 and sign == '-' and num2 == 201:
print('936-201 = 735')
if num1 == 936 and sign == '-' and num2 == 202:
print('936-202 = 734')
if num1 == 936 and sign == '-' and num2 == 203:
print('936-203 = 733')
if num1 == 936 and sign == '-' and num2 == 204:
print('936-204 = 732')
if num1 == 936 and sign == '-' and num2 == 205:
print('936-205 = 731')
if num1 == 936 and sign == '-' and num2 == 206:
print('936-206 = 730')
if num1 == 936 and sign == '-' and num2 == 207:
print('936-207 = 729')
if num1 == 936 and sign == '-' and num2 == 208:
print('936-208 = 728')
if num1 == 936 and sign == '-' and num2 == 209:
print('936-209 = 727')
if num1 == 936 and sign == '-' and num2 == 210:
print('936-210 = 726')
if num1 == 936 and sign == '-' and num2 == 211:
print('936-211 = 725')
if num1 == 936 and sign == '-' and num2 == 212:
print('936-212 = 724')
if num1 == 936 and sign == '-' and num2 == 213:
print('936-213 = 723')
if num1 == 936 and sign == '-' and num2 == 214:
print('936-214 = 722')
if num1 == 936 and sign == '-' and num2 == 215:
print('936-215 = 721')
if num1 == 936 and sign == '-' and num2 == 216:
print('936-216 = 720')
if num1 == 936 and sign == '-' and num2 == 217:
print('936-217 = 719')
if num1 == 936 and sign == '-' and num2 == 218:
print('936-218 = 718')
if num1 == 936 and sign == '-' and num2 == 219:
print('936-219 = 717')
if num1 == 936 and sign == '-' and num2 == 220:
print('936-220 = 716')
if num1 == 936 and sign == '-' and num2 == 221:
print('936-221 = 715')
if num1 == 936 and sign == '-' and num2 == 222:
print('936-222 = 714')
if num1 == 936 and sign == '-' and num2 == 223:
print('936-223 = 713')
if num1 == 936 and sign == '-' and num2 == 224:
print('936-224 = 712')
if num1 == 936 and sign == '-' and num2 == 225:
print('936-225 = 711')
if num1 == 936 and sign == '-' and num2 == 226:
print('936-226 = 710')
if num1 == 936 and sign == '-' and num2 == 227:
print('936-227 = 709')
if num1 == 936 and sign == '-' and num2 == 228:
print('936-228 = 708')
if num1 == 936 and sign == '-' and num2 == 229:
print('936-229 = 707')
if num1 == 936 and sign == '-' and num2 == 230:
print('936-230 = 706')
if num1 == 936 and sign == '-' and num2 == 231:
print('936-231 = 705')
if num1 == 936 and sign == '-' and num2 == 232:
print('936-232 = 704')
if num1 == 936 and sign == '-' and num2 == 233:
print('936-233 = 703')
if num1 == 936 and sign == '-' and num2 == 234:
print('936-234 = 702')
if num1 == 936 and sign == '-' and num2 == 235:
print('936-235 = 701')
if num1 == 936 and sign == '-' and num2 == 236:
print('936-236 = 700')
if num1 == 936 and sign == '-' and num2 == 237:
print('936-237 = 699')
if num1 == 936 and sign == '-' and num2 == 238:
print('936-238 = 698')
if num1 == 936 and sign == '-' and num2 == 239:
print('936-239 = 697')
if num1 == 936 and sign == '-' and num2 == 240:
print('936-240 = 696')
if num1 == 936 and sign == '-' and num2 == 241:
print('936-241 = 695')
if num1 == 936 and sign == '-' and num2 == 242:
print('936-242 = 694')
if num1 == 936 and sign == '-' and num2 == 243:
print('936-243 = 693')
if num1 == 936 and sign == '-' and num2 == 244:
print('936-244 = 692')
if num1 == 936 and sign == '-' and num2 == 245:
print('936-245 = 691')
if num1 == 936 and sign == '-' and num2 == 246:
print('936-246 = 690')
if num1 == 936 and sign == '-' and num2 == 247:
print('936-247 = 689')
if num1 == 936 and sign == '-' and num2 == 248:
print('936-248 = 688')
if num1 == 936 and sign == '-' and num2 == 249:
print('936-249 = 687')
if num1 == 937 and sign == '-' and num2 == 200:
print('937-200 = 737')
if num1 == 937 and sign == '-' and num2 == 201:
print('937-201 = 736')
if num1 == 937 and sign == '-' and num2 == 202:
print('937-202 = 735')
if num1 == 937 and sign == '-' and num2 == 203:
print('937-203 = 734')
if num1 == 937 and sign == '-' and num2 == 204:
print('937-204 = 733')
if num1 == 937 and sign == '-' and num2 == 205:
print('937-205 = 732')
if num1 == 937 and sign == '-' and num2 == 206:
print('937-206 = 731')
if num1 == 937 and sign == '-' and num2 == 207:
print('937-207 = 730')
if num1 == 937 and sign == '-' and num2 == 208:
print('937-208 = 729')
if num1 == 937 and sign == '-' and num2 == 209:
print('937-209 = 728')
if num1 == 937 and sign == '-' and num2 == 210:
print('937-210 = 727')
if num1 == 937 and sign == '-' and num2 == 211:
print('937-211 = 726')
if num1 == 937 and sign == '-' and num2 == 212:
print('937-212 = 725')
if num1 == 937 and sign == '-' and num2 == 213:
print('937-213 = 724')
if num1 == 937 and sign == '-' and num2 == 214:
print('937-214 = 723')
if num1 == 937 and sign == '-' and num2 == 215:
print('937-215 = 722')
if num1 == 937 and sign == '-' and num2 == 216:
print('937-216 = 721')
if num1 == 937 and sign == '-' and num2 == 217:
print('937-217 = 720')
if num1 == 937 and sign == '-' and num2 == 218:
print('937-218 = 719')
if num1 == 937 and sign == '-' and num2 == 219:
print('937-219 = 718')
if num1 == 937 and sign == '-' and num2 == 220:
print('937-220 = 717')
if num1 == 937 and sign == '-' and num2 == 221:
print('937-221 = 716')
if num1 == 937 and sign == '-' and num2 == 222:
print('937-222 = 715')
if num1 == 937 and sign == '-' and num2 == 223:
print('937-223 = 714')
if num1 == 937 and sign == '-' and num2 == 224:
print('937-224 = 713')
if num1 == 937 and sign == '-' and num2 == 225:
print('937-225 = 712')
if num1 == 937 and sign == '-' and num2 == 226:
print('937-226 = 711')
if num1 == 937 and sign == '-' and num2 == 227:
print('937-227 = 710')
if num1 == 937 and sign == '-' and num2 == 228:
print('937-228 = 709')
if num1 == 937 and sign == '-' and num2 == 229:
print('937-229 = 708')
if num1 == 937 and sign == '-' and num2 == 230:
print('937-230 = 707')
if num1 == 937 and sign == '-' and num2 == 231:
print('937-231 = 706')
if num1 == 937 and sign == '-' and num2 == 232:
print('937-232 = 705')
if num1 == 937 and sign == '-' and num2 == 233:
print('937-233 = 704')
if num1 == 937 and sign == '-' and num2 == 234:
print('937-234 = 703')
if num1 == 937 and sign == '-' and num2 == 235:
print('937-235 = 702')
if num1 == 937 and sign == '-' and num2 == 236:
print('937-236 = 701')
if num1 == 937 and sign == '-' and num2 == 237:
print('937-237 = 700')
if num1 == 937 and sign == '-' and num2 == 238:
print('937-238 = 699')
if num1 == 937 and sign == '-' and num2 == 239:
print('937-239 = 698')
if num1 == 937 and sign == '-' and num2 == 240:
print('937-240 = 697')
if num1 == 937 and sign == '-' and num2 == 241:
print('937-241 = 696')
if num1 == 937 and sign == '-' and num2 == 242:
print('937-242 = 695')
if num1 == 937 and sign == '-' and num2 == 243:
print('937-243 = 694')
if num1 == 937 and sign == '-' and num2 == 244:
print('937-244 = 693')
if num1 == 937 and sign == '-' and num2 == 245:
print('937-245 = 692')
if num1 == 937 and sign == '-' and num2 == 246:
print('937-246 = 691')
if num1 == 937 and sign == '-' and num2 == 247:
print('937-247 = 690')
if num1 == 937 and sign == '-' and num2 == 248:
print('937-248 = 689')
if num1 == 937 and sign == '-' and num2 == 249:
print('937-249 = 688')
if num1 == 938 and sign == '-' and num2 == 200:
print('938-200 = 738')
if num1 == 938 and sign == '-' and num2 == 201:
print('938-201 = 737')
if num1 == 938 and sign == '-' and num2 == 202:
print('938-202 = 736')
if num1 == 938 and sign == '-' and num2 == 203:
print('938-203 = 735')
if num1 == 938 and sign == '-' and num2 == 204:
print('938-204 = 734')
if num1 == 938 and sign == '-' and num2 == 205:
print('938-205 = 733')
if num1 == 938 and sign == '-' and num2 == 206:
print('938-206 = 732')
if num1 == 938 and sign == '-' and num2 == 207:
print('938-207 = 731')
if num1 == 938 and sign == '-' and num2 == 208:
print('938-208 = 730')
if num1 == 938 and sign == '-' and num2 == 209:
print('938-209 = 729')
if num1 == 938 and sign == '-' and num2 == 210:
print('938-210 = 728')
if num1 == 938 and sign == '-' and num2 == 211:
print('938-211 = 727')
if num1 == 938 and sign == '-' and num2 == 212:
print('938-212 = 726')
if num1 == 938 and sign == '-' and num2 == 213:
print('938-213 = 725')
if num1 == 938 and sign == '-' and num2 == 214:
print('938-214 = 724')
if num1 == 938 and sign == '-' and num2 == 215:
print('938-215 = 723')
if num1 == 938 and sign == '-' and num2 == 216:
print('938-216 = 722')
if num1 == 938 and sign == '-' and num2 == 217:
print('938-217 = 721')
if num1 == 938 and sign == '-' and num2 == 218:
print('938-218 = 720')
if num1 == 938 and sign == '-' and num2 == 219:
print('938-219 = 719')
if num1 == 938 and sign == '-' and num2 == 220:
print('938-220 = 718')
if num1 == 938 and sign == '-' and num2 == 221:
print('938-221 = 717')
if num1 == 938 and sign == '-' and num2 == 222:
print('938-222 = 716')
if num1 == 938 and sign == '-' and num2 == 223:
print('938-223 = 715')
if num1 == 938 and sign == '-' and num2 == 224:
print('938-224 = 714')
if num1 == 938 and sign == '-' and num2 == 225:
print('938-225 = 713')
if num1 == 938 and sign == '-' and num2 == 226:
print('938-226 = 712')
if num1 == 938 and sign == '-' and num2 == 227:
print('938-227 = 711')
if num1 == 938 and sign == '-' and num2 == 228:
print('938-228 = 710')
if num1 == 938 and sign == '-' and num2 == 229:
print('938-229 = 709')
if num1 == 938 and sign == '-' and num2 == 230:
print('938-230 = 708')
if num1 == 938 and sign == '-' and num2 == 231:
print('938-231 = 707')
if num1 == 938 and sign == '-' and num2 == 232:
print('938-232 = 706')
if num1 == 938 and sign == '-' and num2 == 233:
print('938-233 = 705')
if num1 == 938 and sign == '-' and num2 == 234:
print('938-234 = 704')
if num1 == 938 and sign == '-' and num2 == 235:
print('938-235 = 703')
if num1 == 938 and sign == '-' and num2 == 236:
print('938-236 = 702')
if num1 == 938 and sign == '-' and num2 == 237:
print('938-237 = 701')
if num1 == 938 and sign == '-' and num2 == 238:
print('938-238 = 700')
if num1 == 938 and sign == '-' and num2 == 239:
print('938-239 = 699')
if num1 == 938 and sign == '-' and num2 == 240:
print('938-240 = 698')
if num1 == 938 and sign == '-' and num2 == 241:
print('938-241 = 697')
if num1 == 938 and sign == '-' and num2 == 242:
print('938-242 = 696')
if num1 == 938 and sign == '-' and num2 == 243:
print('938-243 = 695')
if num1 == 938 and sign == '-' and num2 == 244:
print('938-244 = 694')
if num1 == 938 and sign == '-' and num2 == 245:
print('938-245 = 693')
if num1 == 938 and sign == '-' and num2 == 246:
print('938-246 = 692')
if num1 == 938 and sign == '-' and num2 == 247:
print('938-247 = 691')
if num1 == 938 and sign == '-' and num2 == 248:
print('938-248 = 690')
if num1 == 938 and sign == '-' and num2 == 249:
print('938-249 = 689')
if num1 == 939 and sign == '-' and num2 == 200:
print('939-200 = 739')
if num1 == 939 and sign == '-' and num2 == 201:
print('939-201 = 738')
if num1 == 939 and sign == '-' and num2 == 202:
print('939-202 = 737')
if num1 == 939 and sign == '-' and num2 == 203:
print('939-203 = 736')
if num1 == 939 and sign == '-' and num2 == 204:
print('939-204 = 735')
if num1 == 939 and sign == '-' and num2 == 205:
print('939-205 = 734')
if num1 == 939 and sign == '-' and num2 == 206:
print('939-206 = 733')
if num1 == 939 and sign == '-' and num2 == 207:
print('939-207 = 732')
if num1 == 939 and sign == '-' and num2 == 208:
print('939-208 = 731')
if num1 == 939 and sign == '-' and num2 == 209:
print('939-209 = 730')
if num1 == 939 and sign == '-' and num2 == 210:
print('939-210 = 729')
if num1 == 939 and sign == '-' and num2 == 211:
print('939-211 = 728')
if num1 == 939 and sign == '-' and num2 == 212:
print('939-212 = 727')
if num1 == 939 and sign == '-' and num2 == 213:
print('939-213 = 726')
if num1 == 939 and sign == '-' and num2 == 214:
print('939-214 = 725')
if num1 == 939 and sign == '-' and num2 == 215:
print('939-215 = 724')
if num1 == 939 and sign == '-' and num2 == 216:
print('939-216 = 723')
if num1 == 939 and sign == '-' and num2 == 217:
print('939-217 = 722')
if num1 == 939 and sign == '-' and num2 == 218:
print('939-218 = 721')
if num1 == 939 and sign == '-' and num2 == 219:
print('939-219 = 720')
if num1 == 939 and sign == '-' and num2 == 220:
print('939-220 = 719')
if num1 == 939 and sign == '-' and num2 == 221:
print('939-221 = 718')
if num1 == 939 and sign == '-' and num2 == 222:
print('939-222 = 717')
if num1 == 939 and sign == '-' and num2 == 223:
print('939-223 = 716')
if num1 == 939 and sign == '-' and num2 == 224:
print('939-224 = 715')
if num1 == 939 and sign == '-' and num2 == 225:
print('939-225 = 714')
if num1 == 939 and sign == '-' and num2 == 226:
print('939-226 = 713')
if num1 == 939 and sign == '-' and num2 == 227:
print('939-227 = 712')
if num1 == 939 and sign == '-' and num2 == 228:
print('939-228 = 711')
if num1 == 939 and sign == '-' and num2 == 229:
print('939-229 = 710')
if num1 == 939 and sign == '-' and num2 == 230:
print('939-230 = 709')
if num1 == 939 and sign == '-' and num2 == 231:
print('939-231 = 708')
if num1 == 939 and sign == '-' and num2 == 232:
print('939-232 = 707')
if num1 == 939 and sign == '-' and num2 == 233:
print('939-233 = 706')
if num1 == 939 and sign == '-' and num2 == 234:
print('939-234 = 705')
if num1 == 939 and sign == '-' and num2 == 235:
print('939-235 = 704')
if num1 == 939 and sign == '-' and num2 == 236:
print('939-236 = 703')
if num1 == 939 and sign == '-' and num2 == 237:
print('939-237 = 702')
if num1 == 939 and sign == '-' and num2 == 238:
print('939-238 = 701')
if num1 == 939 and sign == '-' and num2 == 239:
print('939-239 = 700')
if num1 == 939 and sign == '-' and num2 == 240:
print('939-240 = 699')
if num1 == 939 and sign == '-' and num2 == 241:
print('939-241 = 698')
if num1 == 939 and sign == '-' and num2 == 242:
print('939-242 = 697')
if num1 == 939 and sign == '-' and num2 == 243:
print('939-243 = 696')
if num1 == 939 and sign == '-' and num2 == 244:
print('939-244 = 695')
if num1 == 939 and sign == '-' and num2 == 245:
print('939-245 = 694')
if num1 == 939 and sign == '-' and num2 == 246:
print('939-246 = 693')
if num1 == 939 and sign == '-' and num2 == 247:
print('939-247 = 692')
if num1 == 939 and sign == '-' and num2 == 248:
print('939-248 = 691')
if num1 == 939 and sign == '-' and num2 == 249:
print('939-249 = 690')
if num1 == 940 and sign == '-' and num2 == 200:
print('940-200 = 740')
if num1 == 940 and sign == '-' and num2 == 201:
print('940-201 = 739')
if num1 == 940 and sign == '-' and num2 == 202:
print('940-202 = 738')
if num1 == 940 and sign == '-' and num2 == 203:
print('940-203 = 737')
if num1 == 940 and sign == '-' and num2 == 204:
print('940-204 = 736')
if num1 == 940 and sign == '-' and num2 == 205:
print('940-205 = 735')
if num1 == 940 and sign == '-' and num2 == 206:
print('940-206 = 734')
if num1 == 940 and sign == '-' and num2 == 207:
print('940-207 = 733')
if num1 == 940 and sign == '-' and num2 == 208:
print('940-208 = 732')
if num1 == 940 and sign == '-' and num2 == 209:
print('940-209 = 731')
if num1 == 940 and sign == '-' and num2 == 210:
print('940-210 = 730')
if num1 == 940 and sign == '-' and num2 == 211:
print('940-211 = 729')
if num1 == 940 and sign == '-' and num2 == 212:
print('940-212 = 728')
if num1 == 940 and sign == '-' and num2 == 213:
print('940-213 = 727')
if num1 == 940 and sign == '-' and num2 == 214:
print('940-214 = 726')
if num1 == 940 and sign == '-' and num2 == 215:
print('940-215 = 725')
if num1 == 940 and sign == '-' and num2 == 216:
print('940-216 = 724')
if num1 == 940 and sign == '-' and num2 == 217:
print('940-217 = 723')
if num1 == 940 and sign == '-' and num2 == 218:
print('940-218 = 722')
if num1 == 940 and sign == '-' and num2 == 219:
print('940-219 = 721')
if num1 == 940 and sign == '-' and num2 == 220:
print('940-220 = 720')
if num1 == 940 and sign == '-' and num2 == 221:
print('940-221 = 719')
if num1 == 940 and sign == '-' and num2 == 222:
print('940-222 = 718')
if num1 == 940 and sign == '-' and num2 == 223:
print('940-223 = 717')
if num1 == 940 and sign == '-' and num2 == 224:
print('940-224 = 716')
if num1 == 940 and sign == '-' and num2 == 225:
print('940-225 = 715')
if num1 == 940 and sign == '-' and num2 == 226:
print('940-226 = 714')
if num1 == 940 and sign == '-' and num2 == 227:
print('940-227 = 713')
if num1 == 940 and sign == '-' and num2 == 228:
print('940-228 = 712')
if num1 == 940 and sign == '-' and num2 == 229:
print('940-229 = 711')
if num1 == 940 and sign == '-' and num2 == 230:
print('940-230 = 710')
if num1 == 940 and sign == '-' and num2 == 231:
print('940-231 = 709')
if num1 == 940 and sign == '-' and num2 == 232:
print('940-232 = 708')
if num1 == 940 and sign == '-' and num2 == 233:
print('940-233 = 707')
if num1 == 940 and sign == '-' and num2 == 234:
print('940-234 = 706')
if num1 == 940 and sign == '-' and num2 == 235:
print('940-235 = 705')
if num1 == 940 and sign == '-' and num2 == 236:
print('940-236 = 704')
if num1 == 940 and sign == '-' and num2 == 237:
print('940-237 = 703')
if num1 == 940 and sign == '-' and num2 == 238:
print('940-238 = 702')
if num1 == 940 and sign == '-' and num2 == 239:
print('940-239 = 701')
if num1 == 940 and sign == '-' and num2 == 240:
print('940-240 = 700')
if num1 == 940 and sign == '-' and num2 == 241:
print('940-241 = 699')
if num1 == 940 and sign == '-' and num2 == 242:
print('940-242 = 698')
if num1 == 940 and sign == '-' and num2 == 243:
print('940-243 = 697')
if num1 == 940 and sign == '-' and num2 == 244:
print('940-244 = 696')
if num1 == 940 and sign == '-' and num2 == 245:
print('940-245 = 695')
if num1 == 940 and sign == '-' and num2 == 246:
print('940-246 = 694')
if num1 == 940 and sign == '-' and num2 == 247:
print('940-247 = 693')
if num1 == 940 and sign == '-' and num2 == 248:
print('940-248 = 692')
if num1 == 940 and sign == '-' and num2 == 249:
print('940-249 = 691')
if num1 == 941 and sign == '-' and num2 == 200:
print('941-200 = 741')
if num1 == 941 and sign == '-' and num2 == 201:
print('941-201 = 740')
if num1 == 941 and sign == '-' and num2 == 202:
print('941-202 = 739')
if num1 == 941 and sign == '-' and num2 == 203:
print('941-203 = 738')
if num1 == 941 and sign == '-' and num2 == 204:
print('941-204 = 737')
if num1 == 941 and sign == '-' and num2 == 205:
print('941-205 = 736')
if num1 == 941 and sign == '-' and num2 == 206:
print('941-206 = 735')
if num1 == 941 and sign == '-' and num2 == 207:
print('941-207 = 734')
if num1 == 941 and sign == '-' and num2 == 208:
print('941-208 = 733')
if num1 == 941 and sign == '-' and num2 == 209:
print('941-209 = 732')
if num1 == 941 and sign == '-' and num2 == 210:
print('941-210 = 731')
if num1 == 941 and sign == '-' and num2 == 211:
print('941-211 = 730')
if num1 == 941 and sign == '-' and num2 == 212:
print('941-212 = 729')
if num1 == 941 and sign == '-' and num2 == 213:
print('941-213 = 728')
if num1 == 941 and sign == '-' and num2 == 214:
print('941-214 = 727')
if num1 == 941 and sign == '-' and num2 == 215:
print('941-215 = 726')
if num1 == 941 and sign == '-' and num2 == 216:
print('941-216 = 725')
if num1 == 941 and sign == '-' and num2 == 217:
print('941-217 = 724')
if num1 == 941 and sign == '-' and num2 == 218:
print('941-218 = 723')
if num1 == 941 and sign == '-' and num2 == 219:
print('941-219 = 722')
if num1 == 941 and sign == '-' and num2 == 220:
print('941-220 = 721')
if num1 == 941 and sign == '-' and num2 == 221:
print('941-221 = 720')
if num1 == 941 and sign == '-' and num2 == 222:
print('941-222 = 719')
if num1 == 941 and sign == '-' and num2 == 223:
print('941-223 = 718')
if num1 == 941 and sign == '-' and num2 == 224:
print('941-224 = 717')
if num1 == 941 and sign == '-' and num2 == 225:
print('941-225 = 716')
if num1 == 941 and sign == '-' and num2 == 226:
print('941-226 = 715')
if num1 == 941 and sign == '-' and num2 == 227:
print('941-227 = 714')
if num1 == 941 and sign == '-' and num2 == 228:
print('941-228 = 713')
if num1 == 941 and sign == '-' and num2 == 229:
print('941-229 = 712')
if num1 == 941 and sign == '-' and num2 == 230:
print('941-230 = 711')
if num1 == 941 and sign == '-' and num2 == 231:
print('941-231 = 710')
if num1 == 941 and sign == '-' and num2 == 232:
print('941-232 = 709')
if num1 == 941 and sign == '-' and num2 == 233:
print('941-233 = 708')
if num1 == 941 and sign == '-' and num2 == 234:
print('941-234 = 707')
if num1 == 941 and sign == '-' and num2 == 235:
print('941-235 = 706')
if num1 == 941 and sign == '-' and num2 == 236:
print('941-236 = 705')
if num1 == 941 and sign == '-' and num2 == 237:
print('941-237 = 704')
if num1 == 941 and sign == '-' and num2 == 238:
print('941-238 = 703')
if num1 == 941 and sign == '-' and num2 == 239:
print('941-239 = 702')
if num1 == 941 and sign == '-' and num2 == 240:
print('941-240 = 701')
if num1 == 941 and sign == '-' and num2 == 241:
print('941-241 = 700')
if num1 == 941 and sign == '-' and num2 == 242:
print('941-242 = 699')
if num1 == 941 and sign == '-' and num2 == 243:
print('941-243 = 698')
if num1 == 941 and sign == '-' and num2 == 244:
print('941-244 = 697')
if num1 == 941 and sign == '-' and num2 == 245:
print('941-245 = 696')
if num1 == 941 and sign == '-' and num2 == 246:
print('941-246 = 695')
if num1 == 941 and sign == '-' and num2 == 247:
print('941-247 = 694')
if num1 == 941 and sign == '-' and num2 == 248:
print('941-248 = 693')
if num1 == 941 and sign == '-' and num2 == 249:
print('941-249 = 692')
if num1 == 942 and sign == '-' and num2 == 200:
print('942-200 = 742')
if num1 == 942 and sign == '-' and num2 == 201:
print('942-201 = 741')
if num1 == 942 and sign == '-' and num2 == 202:
print('942-202 = 740')
if num1 == 942 and sign == '-' and num2 == 203:
print('942-203 = 739')
if num1 == 942 and sign == '-' and num2 == 204:
print('942-204 = 738')
if num1 == 942 and sign == '-' and num2 == 205:
print('942-205 = 737')
if num1 == 942 and sign == '-' and num2 == 206:
print('942-206 = 736')
if num1 == 942 and sign == '-' and num2 == 207:
print('942-207 = 735')
if num1 == 942 and sign == '-' and num2 == 208:
print('942-208 = 734')
if num1 == 942 and sign == '-' and num2 == 209:
print('942-209 = 733')
if num1 == 942 and sign == '-' and num2 == 210:
print('942-210 = 732')
if num1 == 942 and sign == '-' and num2 == 211:
print('942-211 = 731')
if num1 == 942 and sign == '-' and num2 == 212:
print('942-212 = 730')
if num1 == 942 and sign == '-' and num2 == 213:
print('942-213 = 729')
if num1 == 942 and sign == '-' and num2 == 214:
print('942-214 = 728')
if num1 == 942 and sign == '-' and num2 == 215:
print('942-215 = 727')
if num1 == 942 and sign == '-' and num2 == 216:
print('942-216 = 726')
if num1 == 942 and sign == '-' and num2 == 217:
print('942-217 = 725')
if num1 == 942 and sign == '-' and num2 == 218:
print('942-218 = 724')
if num1 == 942 and sign == '-' and num2 == 219:
print('942-219 = 723')
if num1 == 942 and sign == '-' and num2 == 220:
print('942-220 = 722')
if num1 == 942 and sign == '-' and num2 == 221:
print('942-221 = 721')
if num1 == 942 and sign == '-' and num2 == 222:
print('942-222 = 720')
if num1 == 942 and sign == '-' and num2 == 223:
print('942-223 = 719')
if num1 == 942 and sign == '-' and num2 == 224:
print('942-224 = 718')
if num1 == 942 and sign == '-' and num2 == 225:
print('942-225 = 717')
if num1 == 942 and sign == '-' and num2 == 226:
print('942-226 = 716')
if num1 == 942 and sign == '-' and num2 == 227:
print('942-227 = 715')
if num1 == 942 and sign == '-' and num2 == 228:
print('942-228 = 714')
if num1 == 942 and sign == '-' and num2 == 229:
print('942-229 = 713')
if num1 == 942 and sign == '-' and num2 == 230:
print('942-230 = 712')
if num1 == 942 and sign == '-' and num2 == 231:
print('942-231 = 711')
if num1 == 942 and sign == '-' and num2 == 232:
print('942-232 = 710')
if num1 == 942 and sign == '-' and num2 == 233:
print('942-233 = 709')
if num1 == 942 and sign == '-' and num2 == 234:
print('942-234 = 708')
if num1 == 942 and sign == '-' and num2 == 235:
print('942-235 = 707')
if num1 == 942 and sign == '-' and num2 == 236:
print('942-236 = 706')
if num1 == 942 and sign == '-' and num2 == 237:
print('942-237 = 705')
if num1 == 942 and sign == '-' and num2 == 238:
print('942-238 = 704')
if num1 == 942 and sign == '-' and num2 == 239:
print('942-239 = 703')
if num1 == 942 and sign == '-' and num2 == 240:
print('942-240 = 702')
if num1 == 942 and sign == '-' and num2 == 241:
print('942-241 = 701')
if num1 == 942 and sign == '-' and num2 == 242:
print('942-242 = 700')
if num1 == 942 and sign == '-' and num2 == 243:
print('942-243 = 699')
if num1 == 942 and sign == '-' and num2 == 244:
print('942-244 = 698')
if num1 == 942 and sign == '-' and num2 == 245:
print('942-245 = 697')
if num1 == 942 and sign == '-' and num2 == 246:
print('942-246 = 696')
if num1 == 942 and sign == '-' and num2 == 247:
print('942-247 = 695')
if num1 == 942 and sign == '-' and num2 == 248:
print('942-248 = 694')
if num1 == 942 and sign == '-' and num2 == 249:
print('942-249 = 693')
if num1 == 943 and sign == '-' and num2 == 200:
print('943-200 = 743')
if num1 == 943 and sign == '-' and num2 == 201:
print('943-201 = 742')
if num1 == 943 and sign == '-' and num2 == 202:
print('943-202 = 741')
if num1 == 943 and sign == '-' and num2 == 203:
print('943-203 = 740')
if num1 == 943 and sign == '-' and num2 == 204:
print('943-204 = 739')
if num1 == 943 and sign == '-' and num2 == 205:
print('943-205 = 738')
if num1 == 943 and sign == '-' and num2 == 206:
print('943-206 = 737')
if num1 == 943 and sign == '-' and num2 == 207:
print('943-207 = 736')
if num1 == 943 and sign == '-' and num2 == 208:
print('943-208 = 735')
if num1 == 943 and sign == '-' and num2 == 209:
print('943-209 = 734')
if num1 == 943 and sign == '-' and num2 == 210:
print('943-210 = 733')
if num1 == 943 and sign == '-' and num2 == 211:
print('943-211 = 732')
if num1 == 943 and sign == '-' and num2 == 212:
print('943-212 = 731')
if num1 == 943 and sign == '-' and num2 == 213:
print('943-213 = 730')
if num1 == 943 and sign == '-' and num2 == 214:
print('943-214 = 729')
if num1 == 943 and sign == '-' and num2 == 215:
print('943-215 = 728')
if num1 == 943 and sign == '-' and num2 == 216:
print('943-216 = 727')
if num1 == 943 and sign == '-' and num2 == 217:
print('943-217 = 726')
if num1 == 943 and sign == '-' and num2 == 218:
print('943-218 = 725')
if num1 == 943 and sign == '-' and num2 == 219:
print('943-219 = 724')
if num1 == 943 and sign == '-' and num2 == 220:
print('943-220 = 723')
if num1 == 943 and sign == '-' and num2 == 221:
print('943-221 = 722')
if num1 == 943 and sign == '-' and num2 == 222:
print('943-222 = 721')
if num1 == 943 and sign == '-' and num2 == 223:
print('943-223 = 720')
if num1 == 943 and sign == '-' and num2 == 224:
print('943-224 = 719')
if num1 == 943 and sign == '-' and num2 == 225:
print('943-225 = 718')
if num1 == 943 and sign == '-' and num2 == 226:
print('943-226 = 717')
if num1 == 943 and sign == '-' and num2 == 227:
print('943-227 = 716')
if num1 == 943 and sign == '-' and num2 == 228:
print('943-228 = 715')
if num1 == 943 and sign == '-' and num2 == 229:
print('943-229 = 714')
if num1 == 943 and sign == '-' and num2 == 230:
print('943-230 = 713')
if num1 == 943 and sign == '-' and num2 == 231:
print('943-231 = 712')
if num1 == 943 and sign == '-' and num2 == 232:
print('943-232 = 711')
if num1 == 943 and sign == '-' and num2 == 233:
print('943-233 = 710')
if num1 == 943 and sign == '-' and num2 == 234:
print('943-234 = 709')
if num1 == 943 and sign == '-' and num2 == 235:
print('943-235 = 708')
if num1 == 943 and sign == '-' and num2 == 236:
print('943-236 = 707')
if num1 == 943 and sign == '-' and num2 == 237:
print('943-237 = 706')
if num1 == 943 and sign == '-' and num2 == 238:
print('943-238 = 705')
if num1 == 943 and sign == '-' and num2 == 239:
print('943-239 = 704')
if num1 == 943 and sign == '-' and num2 == 240:
print('943-240 = 703')
if num1 == 943 and sign == '-' and num2 == 241:
print('943-241 = 702')
if num1 == 943 and sign == '-' and num2 == 242:
print('943-242 = 701')
if num1 == 943 and sign == '-' and num2 == 243:
print('943-243 = 700')
if num1 == 943 and sign == '-' and num2 == 244:
print('943-244 = 699')
if num1 == 943 and sign == '-' and num2 == 245:
print('943-245 = 698')
if num1 == 943 and sign == '-' and num2 == 246:
print('943-246 = 697')
if num1 == 943 and sign == '-' and num2 == 247:
print('943-247 = 696')
if num1 == 943 and sign == '-' and num2 == 248:
print('943-248 = 695')
if num1 == 943 and sign == '-' and num2 == 249:
print('943-249 = 694')
if num1 == 944 and sign == '-' and num2 == 200:
print('944-200 = 744')
if num1 == 944 and sign == '-' and num2 == 201:
print('944-201 = 743')
if num1 == 944 and sign == '-' and num2 == 202:
print('944-202 = 742')
if num1 == 944 and sign == '-' and num2 == 203:
print('944-203 = 741')
if num1 == 944 and sign == '-' and num2 == 204:
print('944-204 = 740')
if num1 == 944 and sign == '-' and num2 == 205:
print('944-205 = 739')
if num1 == 944 and sign == '-' and num2 == 206:
print('944-206 = 738')
if num1 == 944 and sign == '-' and num2 == 207:
print('944-207 = 737')
if num1 == 944 and sign == '-' and num2 == 208:
print('944-208 = 736')
if num1 == 944 and sign == '-' and num2 == 209:
print('944-209 = 735')
if num1 == 944 and sign == '-' and num2 == 210:
print('944-210 = 734')
if num1 == 944 and sign == '-' and num2 == 211:
print('944-211 = 733')
if num1 == 944 and sign == '-' and num2 == 212:
print('944-212 = 732')
if num1 == 944 and sign == '-' and num2 == 213:
print('944-213 = 731')
if num1 == 944 and sign == '-' and num2 == 214:
print('944-214 = 730')
if num1 == 944 and sign == '-' and num2 == 215:
print('944-215 = 729')
if num1 == 944 and sign == '-' and num2 == 216:
print('944-216 = 728')
if num1 == 944 and sign == '-' and num2 == 217:
print('944-217 = 727')
if num1 == 944 and sign == '-' and num2 == 218:
print('944-218 = 726')
if num1 == 944 and sign == '-' and num2 == 219:
print('944-219 = 725')
if num1 == 944 and sign == '-' and num2 == 220:
print('944-220 = 724')
if num1 == 944 and sign == '-' and num2 == 221:
print('944-221 = 723')
if num1 == 944 and sign == '-' and num2 == 222:
print('944-222 = 722')
if num1 == 944 and sign == '-' and num2 == 223:
print('944-223 = 721')
if num1 == 944 and sign == '-' and num2 == 224:
print('944-224 = 720')
if num1 == 944 and sign == '-' and num2 == 225:
print('944-225 = 719')
if num1 == 944 and sign == '-' and num2 == 226:
print('944-226 = 718')
if num1 == 944 and sign == '-' and num2 == 227:
print('944-227 = 717')
if num1 == 944 and sign == '-' and num2 == 228:
print('944-228 = 716')
if num1 == 944 and sign == '-' and num2 == 229:
print('944-229 = 715')
if num1 == 944 and sign == '-' and num2 == 230:
print('944-230 = 714')
if num1 == 944 and sign == '-' and num2 == 231:
print('944-231 = 713')
if num1 == 944 and sign == '-' and num2 == 232:
print('944-232 = 712')
if num1 == 944 and sign == '-' and num2 == 233:
print('944-233 = 711')
if num1 == 944 and sign == '-' and num2 == 234:
print('944-234 = 710')
if num1 == 944 and sign == '-' and num2 == 235:
print('944-235 = 709')
if num1 == 944 and sign == '-' and num2 == 236:
print('944-236 = 708')
if num1 == 944 and sign == '-' and num2 == 237:
print('944-237 = 707')
if num1 == 944 and sign == '-' and num2 == 238:
print('944-238 = 706')
if num1 == 944 and sign == '-' and num2 == 239:
print('944-239 = 705')
if num1 == 944 and sign == '-' and num2 == 240:
print('944-240 = 704')
if num1 == 944 and sign == '-' and num2 == 241:
print('944-241 = 703')
if num1 == 944 and sign == '-' and num2 == 242:
print('944-242 = 702')
if num1 == 944 and sign == '-' and num2 == 243:
print('944-243 = 701')
if num1 == 944 and sign == '-' and num2 == 244:
print('944-244 = 700')
if num1 == 944 and sign == '-' and num2 == 245:
print('944-245 = 699')
if num1 == 944 and sign == '-' and num2 == 246:
print('944-246 = 698')
if num1 == 944 and sign == '-' and num2 == 247:
print('944-247 = 697')
if num1 == 944 and sign == '-' and num2 == 248:
print('944-248 = 696')
if num1 == 944 and sign == '-' and num2 == 249:
print('944-249 = 695')
if num1 == 945 and sign == '-' and num2 == 200:
print('945-200 = 745')
if num1 == 945 and sign == '-' and num2 == 201:
print('945-201 = 744')
if num1 == 945 and sign == '-' and num2 == 202:
print('945-202 = 743')
if num1 == 945 and sign == '-' and num2 == 203:
print('945-203 = 742')
if num1 == 945 and sign == '-' and num2 == 204:
print('945-204 = 741')
if num1 == 945 and sign == '-' and num2 == 205:
print('945-205 = 740')
if num1 == 945 and sign == '-' and num2 == 206:
print('945-206 = 739')
if num1 == 945 and sign == '-' and num2 == 207:
print('945-207 = 738')
if num1 == 945 and sign == '-' and num2 == 208:
print('945-208 = 737')
if num1 == 945 and sign == '-' and num2 == 209:
print('945-209 = 736')
if num1 == 945 and sign == '-' and num2 == 210:
print('945-210 = 735')
if num1 == 945 and sign == '-' and num2 == 211:
print('945-211 = 734')
if num1 == 945 and sign == '-' and num2 == 212:
print('945-212 = 733')
if num1 == 945 and sign == '-' and num2 == 213:
print('945-213 = 732')
if num1 == 945 and sign == '-' and num2 == 214:
print('945-214 = 731')
if num1 == 945 and sign == '-' and num2 == 215:
print('945-215 = 730')
if num1 == 945 and sign == '-' and num2 == 216:
print('945-216 = 729')
if num1 == 945 and sign == '-' and num2 == 217:
print('945-217 = 728')
if num1 == 945 and sign == '-' and num2 == 218:
print('945-218 = 727')
if num1 == 945 and sign == '-' and num2 == 219:
print('945-219 = 726')
if num1 == 945 and sign == '-' and num2 == 220:
print('945-220 = 725')
if num1 == 945 and sign == '-' and num2 == 221:
print('945-221 = 724')
if num1 == 945 and sign == '-' and num2 == 222:
print('945-222 = 723')
if num1 == 945 and sign == '-' and num2 == 223:
print('945-223 = 722')
if num1 == 945 and sign == '-' and num2 == 224:
print('945-224 = 721')
if num1 == 945 and sign == '-' and num2 == 225:
print('945-225 = 720')
if num1 == 945 and sign == '-' and num2 == 226:
print('945-226 = 719')
if num1 == 945 and sign == '-' and num2 == 227:
print('945-227 = 718')
if num1 == 945 and sign == '-' and num2 == 228:
print('945-228 = 717')
if num1 == 945 and sign == '-' and num2 == 229:
print('945-229 = 716')
if num1 == 945 and sign == '-' and num2 == 230:
print('945-230 = 715')
if num1 == 945 and sign == '-' and num2 == 231:
print('945-231 = 714')
if num1 == 945 and sign == '-' and num2 == 232:
print('945-232 = 713')
if num1 == 945 and sign == '-' and num2 == 233:
print('945-233 = 712')
if num1 == 945 and sign == '-' and num2 == 234:
print('945-234 = 711')
if num1 == 945 and sign == '-' and num2 == 235:
print('945-235 = 710')
if num1 == 945 and sign == '-' and num2 == 236:
print('945-236 = 709')
if num1 == 945 and sign == '-' and num2 == 237:
print('945-237 = 708')
if num1 == 945 and sign == '-' and num2 == 238:
print('945-238 = 707')
if num1 == 945 and sign == '-' and num2 == 239:
print('945-239 = 706')
if num1 == 945 and sign == '-' and num2 == 240:
print('945-240 = 705')
if num1 == 945 and sign == '-' and num2 == 241:
print('945-241 = 704')
if num1 == 945 and sign == '-' and num2 == 242:
print('945-242 = 703')
if num1 == 945 and sign == '-' and num2 == 243:
print('945-243 = 702')
if num1 == 945 and sign == '-' and num2 == 244:
print('945-244 = 701')
if num1 == 945 and sign == '-' and num2 == 245:
print('945-245 = 700')
if num1 == 945 and sign == '-' and num2 == 246:
print('945-246 = 699')
if num1 == 945 and sign == '-' and num2 == 247:
print('945-247 = 698')
if num1 == 945 and sign == '-' and num2 == 248:
print('945-248 = 697')
if num1 == 945 and sign == '-' and num2 == 249:
print('945-249 = 696')
if num1 == 946 and sign == '-' and num2 == 200:
print('946-200 = 746')
if num1 == 946 and sign == '-' and num2 == 201:
print('946-201 = 745')
if num1 == 946 and sign == '-' and num2 == 202:
print('946-202 = 744')
if num1 == 946 and sign == '-' and num2 == 203:
print('946-203 = 743')
if num1 == 946 and sign == '-' and num2 == 204:
print('946-204 = 742')
if num1 == 946 and sign == '-' and num2 == 205:
print('946-205 = 741')
if num1 == 946 and sign == '-' and num2 == 206:
print('946-206 = 740')
if num1 == 946 and sign == '-' and num2 == 207:
print('946-207 = 739')
if num1 == 946 and sign == '-' and num2 == 208:
print('946-208 = 738')
if num1 == 946 and sign == '-' and num2 == 209:
print('946-209 = 737')
if num1 == 946 and sign == '-' and num2 == 210:
print('946-210 = 736')
if num1 == 946 and sign == '-' and num2 == 211:
print('946-211 = 735')
if num1 == 946 and sign == '-' and num2 == 212:
print('946-212 = 734')
if num1 == 946 and sign == '-' and num2 == 213:
print('946-213 = 733')
if num1 == 946 and sign == '-' and num2 == 214:
print('946-214 = 732')
if num1 == 946 and sign == '-' and num2 == 215:
print('946-215 = 731')
if num1 == 946 and sign == '-' and num2 == 216:
print('946-216 = 730')
if num1 == 946 and sign == '-' and num2 == 217:
print('946-217 = 729')
if num1 == 946 and sign == '-' and num2 == 218:
print('946-218 = 728')
if num1 == 946 and sign == '-' and num2 == 219:
print('946-219 = 727')
if num1 == 946 and sign == '-' and num2 == 220:
print('946-220 = 726')
if num1 == 946 and sign == '-' and num2 == 221:
print('946-221 = 725')
if num1 == 946 and sign == '-' and num2 == 222:
print('946-222 = 724')
if num1 == 946 and sign == '-' and num2 == 223:
print('946-223 = 723')
if num1 == 946 and sign == '-' and num2 == 224:
print('946-224 = 722')
if num1 == 946 and sign == '-' and num2 == 225:
print('946-225 = 721')
if num1 == 946 and sign == '-' and num2 == 226:
print('946-226 = 720')
if num1 == 946 and sign == '-' and num2 == 227:
print('946-227 = 719')
if num1 == 946 and sign == '-' and num2 == 228:
print('946-228 = 718')
if num1 == 946 and sign == '-' and num2 == 229:
print('946-229 = 717')
if num1 == 946 and sign == '-' and num2 == 230:
print('946-230 = 716')
if num1 == 946 and sign == '-' and num2 == 231:
print('946-231 = 715')
if num1 == 946 and sign == '-' and num2 == 232:
print('946-232 = 714')
if num1 == 946 and sign == '-' and num2 == 233:
print('946-233 = 713')
if num1 == 946 and sign == '-' and num2 == 234:
print('946-234 = 712')
if num1 == 946 and sign == '-' and num2 == 235:
print('946-235 = 711')
if num1 == 946 and sign == '-' and num2 == 236:
print('946-236 = 710')
if num1 == 946 and sign == '-' and num2 == 237:
print('946-237 = 709')
if num1 == 946 and sign == '-' and num2 == 238:
print('946-238 = 708')
if num1 == 946 and sign == '-' and num2 == 239:
print('946-239 = 707')
if num1 == 946 and sign == '-' and num2 == 240:
print('946-240 = 706')
if num1 == 946 and sign == '-' and num2 == 241:
print('946-241 = 705')
if num1 == 946 and sign == '-' and num2 == 242:
print('946-242 = 704')
if num1 == 946 and sign == '-' and num2 == 243:
print('946-243 = 703')
if num1 == 946 and sign == '-' and num2 == 244:
print('946-244 = 702')
if num1 == 946 and sign == '-' and num2 == 245:
print('946-245 = 701')
if num1 == 946 and sign == '-' and num2 == 246:
print('946-246 = 700')
if num1 == 946 and sign == '-' and num2 == 247:
print('946-247 = 699')
if num1 == 946 and sign == '-' and num2 == 248:
print('946-248 = 698')
if num1 == 946 and sign == '-' and num2 == 249:
print('946-249 = 697')
if num1 == 947 and sign == '-' and num2 == 200:
print('947-200 = 747')
if num1 == 947 and sign == '-' and num2 == 201:
print('947-201 = 746')
if num1 == 947 and sign == '-' and num2 == 202:
print('947-202 = 745')
if num1 == 947 and sign == '-' and num2 == 203:
print('947-203 = 744')
if num1 == 947 and sign == '-' and num2 == 204:
print('947-204 = 743')
if num1 == 947 and sign == '-' and num2 == 205:
print('947-205 = 742')
if num1 == 947 and sign == '-' and num2 == 206:
print('947-206 = 741')
if num1 == 947 and sign == '-' and num2 == 207:
print('947-207 = 740')
if num1 == 947 and sign == '-' and num2 == 208:
print('947-208 = 739')
if num1 == 947 and sign == '-' and num2 == 209:
print('947-209 = 738')
if num1 == 947 and sign == '-' and num2 == 210:
print('947-210 = 737')
if num1 == 947 and sign == '-' and num2 == 211:
print('947-211 = 736')
if num1 == 947 and sign == '-' and num2 == 212:
print('947-212 = 735')
if num1 == 947 and sign == '-' and num2 == 213:
print('947-213 = 734')
if num1 == 947 and sign == '-' and num2 == 214:
print('947-214 = 733')
if num1 == 947 and sign == '-' and num2 == 215:
print('947-215 = 732')
if num1 == 947 and sign == '-' and num2 == 216:
print('947-216 = 731')
if num1 == 947 and sign == '-' and num2 == 217:
print('947-217 = 730')
if num1 == 947 and sign == '-' and num2 == 218:
print('947-218 = 729')
if num1 == 947 and sign == '-' and num2 == 219:
print('947-219 = 728')
if num1 == 947 and sign == '-' and num2 == 220:
print('947-220 = 727')
if num1 == 947 and sign == '-' and num2 == 221:
print('947-221 = 726')
if num1 == 947 and sign == '-' and num2 == 222:
print('947-222 = 725')
if num1 == 947 and sign == '-' and num2 == 223:
print('947-223 = 724')
if num1 == 947 and sign == '-' and num2 == 224:
print('947-224 = 723')
if num1 == 947 and sign == '-' and num2 == 225:
print('947-225 = 722')
if num1 == 947 and sign == '-' and num2 == 226:
print('947-226 = 721')
if num1 == 947 and sign == '-' and num2 == 227:
print('947-227 = 720')
if num1 == 947 and sign == '-' and num2 == 228:
print('947-228 = 719')
if num1 == 947 and sign == '-' and num2 == 229:
print('947-229 = 718')
if num1 == 947 and sign == '-' and num2 == 230:
print('947-230 = 717')
if num1 == 947 and sign == '-' and num2 == 231:
print('947-231 = 716')
if num1 == 947 and sign == '-' and num2 == 232:
print('947-232 = 715')
if num1 == 947 and sign == '-' and num2 == 233:
print('947-233 = 714')
if num1 == 947 and sign == '-' and num2 == 234:
print('947-234 = 713')
if num1 == 947 and sign == '-' and num2 == 235:
print('947-235 = 712')
if num1 == 947 and sign == '-' and num2 == 236:
print('947-236 = 711')
if num1 == 947 and sign == '-' and num2 == 237:
print('947-237 = 710')
if num1 == 947 and sign == '-' and num2 == 238:
print('947-238 = 709')
if num1 == 947 and sign == '-' and num2 == 239:
print('947-239 = 708')
if num1 == 947 and sign == '-' and num2 == 240:
print('947-240 = 707')
if num1 == 947 and sign == '-' and num2 == 241:
print('947-241 = 706')
if num1 == 947 and sign == '-' and num2 == 242:
print('947-242 = 705')
if num1 == 947 and sign == '-' and num2 == 243:
print('947-243 = 704')
if num1 == 947 and sign == '-' and num2 == 244:
print('947-244 = 703')
if num1 == 947 and sign == '-' and num2 == 245:
print('947-245 = 702')
if num1 == 947 and sign == '-' and num2 == 246:
print('947-246 = 701')
if num1 == 947 and sign == '-' and num2 == 247:
print('947-247 = 700')
if num1 == 947 and sign == '-' and num2 == 248:
print('947-248 = 699')
if num1 == 947 and sign == '-' and num2 == 249:
print('947-249 = 698')
if num1 == 948 and sign == '-' and num2 == 200:
print('948-200 = 748')
if num1 == 948 and sign == '-' and num2 == 201:
print('948-201 = 747')
if num1 == 948 and sign == '-' and num2 == 202:
print('948-202 = 746')
if num1 == 948 and sign == '-' and num2 == 203:
print('948-203 = 745')
if num1 == 948 and sign == '-' and num2 == 204:
print('948-204 = 744')
if num1 == 948 and sign == '-' and num2 == 205:
print('948-205 = 743')
if num1 == 948 and sign == '-' and num2 == 206:
print('948-206 = 742')
if num1 == 948 and sign == '-' and num2 == 207:
print('948-207 = 741')
if num1 == 948 and sign == '-' and num2 == 208:
print('948-208 = 740')
if num1 == 948 and sign == '-' and num2 == 209:
print('948-209 = 739')
if num1 == 948 and sign == '-' and num2 == 210:
print('948-210 = 738')
if num1 == 948 and sign == '-' and num2 == 211:
print('948-211 = 737')
if num1 == 948 and sign == '-' and num2 == 212:
print('948-212 = 736')
if num1 == 948 and sign == '-' and num2 == 213:
print('948-213 = 735')
if num1 == 948 and sign == '-' and num2 == 214:
print('948-214 = 734')
if num1 == 948 and sign == '-' and num2 == 215:
print('948-215 = 733')
if num1 == 948 and sign == '-' and num2 == 216:
print('948-216 = 732')
if num1 == 948 and sign == '-' and num2 == 217:
print('948-217 = 731')
if num1 == 948 and sign == '-' and num2 == 218:
print('948-218 = 730')
if num1 == 948 and sign == '-' and num2 == 219:
print('948-219 = 729')
if num1 == 948 and sign == '-' and num2 == 220:
print('948-220 = 728')
if num1 == 948 and sign == '-' and num2 == 221:
print('948-221 = 727')
if num1 == 948 and sign == '-' and num2 == 222:
print('948-222 = 726')
if num1 == 948 and sign == '-' and num2 == 223:
print('948-223 = 725')
if num1 == 948 and sign == '-' and num2 == 224:
print('948-224 = 724')
if num1 == 948 and sign == '-' and num2 == 225:
print('948-225 = 723')
if num1 == 948 and sign == '-' and num2 == 226:
print('948-226 = 722')
if num1 == 948 and sign == '-' and num2 == 227:
print('948-227 = 721')
if num1 == 948 and sign == '-' and num2 == 228:
print('948-228 = 720')
if num1 == 948 and sign == '-' and num2 == 229:
print('948-229 = 719')
if num1 == 948 and sign == '-' and num2 == 230:
print('948-230 = 718')
if num1 == 948 and sign == '-' and num2 == 231:
print('948-231 = 717')
if num1 == 948 and sign == '-' and num2 == 232:
print('948-232 = 716')
if num1 == 948 and sign == '-' and num2 == 233:
print('948-233 = 715')
if num1 == 948 and sign == '-' and num2 == 234:
print('948-234 = 714')
if num1 == 948 and sign == '-' and num2 == 235:
print('948-235 = 713')
if num1 == 948 and sign == '-' and num2 == 236:
print('948-236 = 712')
if num1 == 948 and sign == '-' and num2 == 237:
print('948-237 = 711')
if num1 == 948 and sign == '-' and num2 == 238:
print('948-238 = 710')
if num1 == 948 and sign == '-' and num2 == 239:
print('948-239 = 709')
if num1 == 948 and sign == '-' and num2 == 240:
print('948-240 = 708')
if num1 == 948 and sign == '-' and num2 == 241:
print('948-241 = 707')
if num1 == 948 and sign == '-' and num2 == 242:
print('948-242 = 706')
if num1 == 948 and sign == '-' and num2 == 243:
print('948-243 = 705')
if num1 == 948 and sign == '-' and num2 == 244:
print('948-244 = 704')
if num1 == 948 and sign == '-' and num2 == 245:
print('948-245 = 703')
if num1 == 948 and sign == '-' and num2 == 246:
print('948-246 = 702')
if num1 == 948 and sign == '-' and num2 == 247:
print('948-247 = 701')
if num1 == 948 and sign == '-' and num2 == 248:
print('948-248 = 700')
if num1 == 948 and sign == '-' and num2 == 249:
print('948-249 = 699')
if num1 == 949 and sign == '-' and num2 == 200:
print('949-200 = 749')
if num1 == 949 and sign == '-' and num2 == 201:
print('949-201 = 748')
if num1 == 949 and sign == '-' and num2 == 202:
print('949-202 = 747')
if num1 == 949 and sign == '-' and num2 == 203:
print('949-203 = 746')
if num1 == 949 and sign == '-' and num2 == 204:
print('949-204 = 745')
if num1 == 949 and sign == '-' and num2 == 205:
print('949-205 = 744')
if num1 == 949 and sign == '-' and num2 == 206:
print('949-206 = 743')
if num1 == 949 and sign == '-' and num2 == 207:
print('949-207 = 742')
if num1 == 949 and sign == '-' and num2 == 208:
print('949-208 = 741')
if num1 == 949 and sign == '-' and num2 == 209:
print('949-209 = 740')
if num1 == 949 and sign == '-' and num2 == 210:
print('949-210 = 739')
if num1 == 949 and sign == '-' and num2 == 211:
print('949-211 = 738')
if num1 == 949 and sign == '-' and num2 == 212:
print('949-212 = 737')
if num1 == 949 and sign == '-' and num2 == 213:
print('949-213 = 736')
if num1 == 949 and sign == '-' and num2 == 214:
print('949-214 = 735')
if num1 == 949 and sign == '-' and num2 == 215:
print('949-215 = 734')
if num1 == 949 and sign == '-' and num2 == 216:
print('949-216 = 733')
if num1 == 949 and sign == '-' and num2 == 217:
print('949-217 = 732')
if num1 == 949 and sign == '-' and num2 == 218:
print('949-218 = 731')
if num1 == 949 and sign == '-' and num2 == 219:
print('949-219 = 730')
if num1 == 949 and sign == '-' and num2 == 220:
print('949-220 = 729')
if num1 == 949 and sign == '-' and num2 == 221:
print('949-221 = 728')
if num1 == 949 and sign == '-' and num2 == 222:
print('949-222 = 727')
if num1 == 949 and sign == '-' and num2 == 223:
print('949-223 = 726')
if num1 == 949 and sign == '-' and num2 == 224:
print('949-224 = 725')
if num1 == 949 and sign == '-' and num2 == 225:
print('949-225 = 724')
if num1 == 949 and sign == '-' and num2 == 226:
print('949-226 = 723')
if num1 == 949 and sign == '-' and num2 == 227:
print('949-227 = 722')
if num1 == 949 and sign == '-' and num2 == 228:
print('949-228 = 721')
if num1 == 949 and sign == '-' and num2 == 229:
print('949-229 = 720')
if num1 == 949 and sign == '-' and num2 == 230:
print('949-230 = 719')
if num1 == 949 and sign == '-' and num2 == 231:
print('949-231 = 718')
if num1 == 949 and sign == '-' and num2 == 232:
print('949-232 = 717')
if num1 == 949 and sign == '-' and num2 == 233:
print('949-233 = 716')
if num1 == 949 and sign == '-' and num2 == 234:
print('949-234 = 715')
if num1 == 949 and sign == '-' and num2 == 235:
print('949-235 = 714')
if num1 == 949 and sign == '-' and num2 == 236:
print('949-236 = 713')
if num1 == 949 and sign == '-' and num2 == 237:
print('949-237 = 712')
if num1 == 949 and sign == '-' and num2 == 238:
print('949-238 = 711')
if num1 == 949 and sign == '-' and num2 == 239:
print('949-239 = 710')
if num1 == 949 and sign == '-' and num2 == 240:
print('949-240 = 709')
if num1 == 949 and sign == '-' and num2 == 241:
print('949-241 = 708')
if num1 == 949 and sign == '-' and num2 == 242:
print('949-242 = 707')
if num1 == 949 and sign == '-' and num2 == 243:
print('949-243 = 706')
if num1 == 949 and sign == '-' and num2 == 244:
print('949-244 = 705')
if num1 == 949 and sign == '-' and num2 == 245:
print('949-245 = 704')
if num1 == 949 and sign == '-' and num2 == 246:
print('949-246 = 703')
if num1 == 949 and sign == '-' and num2 == 247:
print('949-247 = 702')
if num1 == 949 and sign == '-' and num2 == 248:
print('949-248 = 701')
if num1 == 949 and sign == '-' and num2 == 249:
print('949-249 = 700')
if num1 == 900 and sign == '/' and num2 == 200:
print('900/200 = 4.5')
if num1 == 900 and sign == '/' and num2 == 201:
print('900/201 = 4.4776119403')
if num1 == 900 and sign == '/' and num2 == 202:
print('900/202 = 4.45544554455')
if num1 == 900 and sign == '/' and num2 == 203:
print('900/203 = 4.43349753695')
if num1 == 900 and sign == '/' and num2 == 204:
print('900/204 = 4.41176470588')
if num1 == 900 and sign == '/' and num2 == 205:
print('900/205 = 4.39024390244')
if num1 == 900 and sign == '/' and num2 == 206:
print('900/206 = 4.36893203883')
if num1 == 900 and sign == '/' and num2 == 207:
print('900/207 = 4.34782608696')
if num1 == 900 and sign == '/' and num2 == 208:
print('900/208 = 4.32692307692')
if num1 == 900 and sign == '/' and num2 == 209:
print('900/209 = 4.30622009569')
if num1 == 900 and sign == '/' and num2 == 210:
print('900/210 = 4.28571428571')
if num1 == 900 and sign == '/' and num2 == 211:
print('900/211 = 4.2654028436')
if num1 == 900 and sign == '/' and num2 == 212:
print('900/212 = 4.24528301887')
if num1 == 900 and sign == '/' and num2 == 213:
print('900/213 = 4.22535211268')
if num1 == 900 and sign == '/' and num2 == 214:
print('900/214 = 4.20560747664')
if num1 == 900 and sign == '/' and num2 == 215:
print('900/215 = 4.18604651163')
if num1 == 900 and sign == '/' and num2 == 216:
print('900/216 = 4.16666666667')
if num1 == 900 and sign == '/' and num2 == 217:
print('900/217 = 4.14746543779')
if num1 == 900 and sign == '/' and num2 == 218:
print('900/218 = 4.12844036697')
if num1 == 900 and sign == '/' and num2 == 219:
print('900/219 = 4.1095890411')
if num1 == 900 and sign == '/' and num2 == 220:
print('900/220 = 4.09090909091')
if num1 == 900 and sign == '/' and num2 == 221:
print('900/221 = 4.07239819005')
if num1 == 900 and sign == '/' and num2 == 222:
print('900/222 = 4.05405405405')
if num1 == 900 and sign == '/' and num2 == 223:
print('900/223 = 4.03587443946')
if num1 == 900 and sign == '/' and num2 == 224:
print('900/224 = 4.01785714286')
if num1 == 900 and sign == '/' and num2 == 225:
print('900/225 = 4.0')
if num1 == 900 and sign == '/' and num2 == 226:
print('900/226 = 3.98230088496')
if num1 == 900 and sign == '/' and num2 == 227:
print('900/227 = 3.96475770925')
if num1 == 900 and sign == '/' and num2 == 228:
print('900/228 = 3.94736842105')
if num1 == 900 and sign == '/' and num2 == 229:
print('900/229 = 3.93013100437')
if num1 == 900 and sign == '/' and num2 == 230:
print('900/230 = 3.91304347826')
if num1 == 900 and sign == '/' and num2 == 231:
print('900/231 = 3.8961038961')
if num1 == 900 and sign == '/' and num2 == 232:
print('900/232 = 3.87931034483')
if num1 == 900 and sign == '/' and num2 == 233:
print('900/233 = 3.86266094421')
if num1 == 900 and sign == '/' and num2 == 234:
print('900/234 = 3.84615384615')
if num1 == 900 and sign == '/' and num2 == 235:
print('900/235 = 3.82978723404')
if num1 == 900 and sign == '/' and num2 == 236:
print('900/236 = 3.81355932203')
if num1 == 900 and sign == '/' and num2 == 237:
print('900/237 = 3.79746835443')
if num1 == 900 and sign == '/' and num2 == 238:
print('900/238 = 3.78151260504')
if num1 == 900 and sign == '/' and num2 == 239:
print('900/239 = 3.76569037657')
if num1 == 900 and sign == '/' and num2 == 240:
print('900/240 = 3.75')
if num1 == 900 and sign == '/' and num2 == 241:
print('900/241 = 3.73443983402')
if num1 == 900 and sign == '/' and num2 == 242:
print('900/242 = 3.71900826446')
if num1 == 900 and sign == '/' and num2 == 243:
print('900/243 = 3.7037037037')
if num1 == 900 and sign == '/' and num2 == 244:
print('900/244 = 3.68852459016')
if num1 == 900 and sign == '/' and num2 == 245:
print('900/245 = 3.67346938776')
if num1 == 900 and sign == '/' and num2 == 246:
print('900/246 = 3.65853658537')
if num1 == 900 and sign == '/' and num2 == 247:
print('900/247 = 3.64372469636')
if num1 == 900 and sign == '/' and num2 == 248:
print('900/248 = 3.62903225806')
if num1 == 900 and sign == '/' and num2 == 249:
print('900/249 = 3.61445783133')
if num1 == 901 and sign == '/' and num2 == 200:
print('901/200 = 4.505')
if num1 == 901 and sign == '/' and num2 == 201:
print('901/201 = 4.48258706468')
if num1 == 901 and sign == '/' and num2 == 202:
print('901/202 = 4.4603960396')
if num1 == 901 and sign == '/' and num2 == 203:
print('901/203 = 4.43842364532')
if num1 == 901 and sign == '/' and num2 == 204:
print('901/204 = 4.41666666667')
if num1 == 901 and sign == '/' and num2 == 205:
print('901/205 = 4.39512195122')
if num1 == 901 and sign == '/' and num2 == 206:
print('901/206 = 4.37378640777')
if num1 == 901 and sign == '/' and num2 == 207:
print('901/207 = 4.35265700483')
if num1 == 901 and sign == '/' and num2 == 208:
print('901/208 = 4.33173076923')
if num1 == 901 and sign == '/' and num2 == 209:
print('901/209 = 4.31100478469')
if num1 == 901 and sign == '/' and num2 == 210:
print('901/210 = 4.29047619048')
if num1 == 901 and sign == '/' and num2 == 211:
print('901/211 = 4.27014218009')
if num1 == 901 and sign == '/' and num2 == 212:
print('901/212 = 4.25')
if num1 == 901 and sign == '/' and num2 == 213:
print('901/213 = 4.23004694836')
if num1 == 901 and sign == '/' and num2 == 214:
print('901/214 = 4.21028037383')
if num1 == 901 and sign == '/' and num2 == 215:
print('901/215 = 4.19069767442')
if num1 == 901 and sign == '/' and num2 == 216:
print('901/216 = 4.1712962963')
if num1 == 901 and sign == '/' and num2 == 217:
print('901/217 = 4.15207373272')
if num1 == 901 and sign == '/' and num2 == 218:
print('901/218 = 4.13302752294')
if num1 == 901 and sign == '/' and num2 == 219:
print('901/219 = 4.11415525114')
if num1 == 901 and sign == '/' and num2 == 220:
print('901/220 = 4.09545454545')
if num1 == 901 and sign == '/' and num2 == 221:
print('901/221 = 4.07692307692')
if num1 == 901 and sign == '/' and num2 == 222:
print('901/222 = 4.05855855856')
if num1 == 901 and sign == '/' and num2 == 223:
print('901/223 = 4.04035874439')
if num1 == 901 and sign == '/' and num2 == 224:
print('901/224 = 4.02232142857')
if num1 == 901 and sign == '/' and num2 == 225:
print('901/225 = 4.00444444444')
if num1 == 901 and sign == '/' and num2 == 226:
print('901/226 = 3.98672566372')
if num1 == 901 and sign == '/' and num2 == 227:
print('901/227 = 3.96916299559')
if num1 == 901 and sign == '/' and num2 == 228:
print('901/228 = 3.95175438596')
if num1 == 901 and sign == '/' and num2 == 229:
print('901/229 = 3.93449781659')
if num1 == 901 and sign == '/' and num2 == 230:
print('901/230 = 3.91739130435')
if num1 == 901 and sign == '/' and num2 == 231:
print('901/231 = 3.90043290043')
if num1 == 901 and sign == '/' and num2 == 232:
print('901/232 = 3.88362068966')
if num1 == 901 and sign == '/' and num2 == 233:
print('901/233 = 3.8669527897')
if num1 == 901 and sign == '/' and num2 == 234:
print('901/234 = 3.85042735043')
if num1 == 901 and sign == '/' and num2 == 235:
print('901/235 = 3.83404255319')
if num1 == 901 and sign == '/' and num2 == 236:
print('901/236 = 3.81779661017')
if num1 == 901 and sign == '/' and num2 == 237:
print('901/237 = 3.80168776371')
if num1 == 901 and sign == '/' and num2 == 238:
print('901/238 = 3.78571428571')
if num1 == 901 and sign == '/' and num2 == 239:
print('901/239 = 3.76987447699')
if num1 == 901 and sign == '/' and num2 == 240:
print('901/240 = 3.75416666667')
if num1 == 901 and sign == '/' and num2 == 241:
print('901/241 = 3.73858921162')
if num1 == 901 and sign == '/' and num2 == 242:
print('901/242 = 3.72314049587')
if num1 == 901 and sign == '/' and num2 == 243:
print('901/243 = 3.70781893004')
if num1 == 901 and sign == '/' and num2 == 244:
print('901/244 = 3.69262295082')
if num1 == 901 and sign == '/' and num2 == 245:
print('901/245 = 3.67755102041')
if num1 == 901 and sign == '/' and num2 == 246:
print('901/246 = 3.66260162602')
if num1 == 901 and sign == '/' and num2 == 247:
print('901/247 = 3.64777327935')
if num1 == 901 and sign == '/' and num2 == 248:
print('901/248 = 3.63306451613')
if num1 == 901 and sign == '/' and num2 == 249:
print('901/249 = 3.61847389558')
if num1 == 902 and sign == '/' and num2 == 200:
print('902/200 = 4.51')
if num1 == 902 and sign == '/' and num2 == 201:
print('902/201 = 4.48756218905')
if num1 == 902 and sign == '/' and num2 == 202:
print('902/202 = 4.46534653465')
if num1 == 902 and sign == '/' and num2 == 203:
print('902/203 = 4.44334975369')
if num1 == 902 and sign == '/' and num2 == 204:
print('902/204 = 4.42156862745')
if num1 == 902 and sign == '/' and num2 == 205:
print('902/205 = 4.4')
if num1 == 902 and sign == '/' and num2 == 206:
print('902/206 = 4.3786407767')
if num1 == 902 and sign == '/' and num2 == 207:
print('902/207 = 4.35748792271')
if num1 == 902 and sign == '/' and num2 == 208:
print('902/208 = 4.33653846154')
if num1 == 902 and sign == '/' and num2 == 209:
print('902/209 = 4.31578947368')
if num1 == 902 and sign == '/' and num2 == 210:
print('902/210 = 4.29523809524')
if num1 == 902 and sign == '/' and num2 == 211:
print('902/211 = 4.27488151659')
if num1 == 902 and sign == '/' and num2 == 212:
print('902/212 = 4.25471698113')
if num1 == 902 and sign == '/' and num2 == 213:
print('902/213 = 4.23474178404')
if num1 == 902 and sign == '/' and num2 == 214:
print('902/214 = 4.21495327103')
if num1 == 902 and sign == '/' and num2 == 215:
print('902/215 = 4.19534883721')
if num1 == 902 and sign == '/' and num2 == 216:
print('902/216 = 4.17592592593')
if num1 == 902 and sign == '/' and num2 == 217:
print('902/217 = 4.15668202765')
if num1 == 902 and sign == '/' and num2 == 218:
print('902/218 = 4.1376146789')
if num1 == 902 and sign == '/' and num2 == 219:
print('902/219 = 4.11872146119')
if num1 == 902 and sign == '/' and num2 == 220:
print('902/220 = 4.1')
if num1 == 902 and sign == '/' and num2 == 221:
print('902/221 = 4.0814479638')
if num1 == 902 and sign == '/' and num2 == 222:
print('902/222 = 4.06306306306')
if num1 == 902 and sign == '/' and num2 == 223:
print('902/223 = 4.04484304933')
if num1 == 902 and sign == '/' and num2 == 224:
print('902/224 = 4.02678571429')
if num1 == 902 and sign == '/' and num2 == 225:
print('902/225 = 4.00888888889')
if num1 == 902 and sign == '/' and num2 == 226:
print('902/226 = 3.99115044248')
if num1 == 902 and sign == '/' and num2 == 227:
print('902/227 = 3.97356828194')
if num1 == 902 and sign == '/' and num2 == 228:
print('902/228 = 3.95614035088')
if num1 == 902 and sign == '/' and num2 == 229:
print('902/229 = 3.93886462882')
if num1 == 902 and sign == '/' and num2 == 230:
print('902/230 = 3.92173913043')
if num1 == 902 and sign == '/' and num2 == 231:
print('902/231 = 3.90476190476')
if num1 == 902 and sign == '/' and num2 == 232:
print('902/232 = 3.88793103448')
if num1 == 902 and sign == '/' and num2 == 233:
print('902/233 = 3.87124463519')
if num1 == 902 and sign == '/' and num2 == 234:
print('902/234 = 3.8547008547')
if num1 == 902 and sign == '/' and num2 == 235:
print('902/235 = 3.83829787234')
if num1 == 902 and sign == '/' and num2 == 236:
print('902/236 = 3.82203389831')
if num1 == 902 and sign == '/' and num2 == 237:
print('902/237 = 3.805907173')
if num1 == 902 and sign == '/' and num2 == 238:
print('902/238 = 3.78991596639')
if num1 == 902 and sign == '/' and num2 == 239:
print('902/239 = 3.77405857741')
if num1 == 902 and sign == '/' and num2 == 240:
print('902/240 = 3.75833333333')
if num1 == 902 and sign == '/' and num2 == 241:
print('902/241 = 3.74273858921')
if num1 == 902 and sign == '/' and num2 == 242:
print('902/242 = 3.72727272727')
if num1 == 902 and sign == '/' and num2 == 243:
print('902/243 = 3.71193415638')
if num1 == 902 and sign == '/' and num2 == 244:
print('902/244 = 3.69672131148')
if num1 == 902 and sign == '/' and num2 == 245:
print('902/245 = 3.68163265306')
if num1 == 902 and sign == '/' and num2 == 246:
print('902/246 = 3.66666666667')
if num1 == 902 and sign == '/' and num2 == 247:
print('902/247 = 3.65182186235')
if num1 == 902 and sign == '/' and num2 == 248:
print('902/248 = 3.63709677419')
if num1 == 902 and sign == '/' and num2 == 249:
print('902/249 = 3.62248995984')
if num1 == 903 and sign == '/' and num2 == 200:
print('903/200 = 4.515')
if num1 == 903 and sign == '/' and num2 == 201:
print('903/201 = 4.49253731343')
if num1 == 903 and sign == '/' and num2 == 202:
print('903/202 = 4.4702970297')
if num1 == 903 and sign == '/' and num2 == 203:
print('903/203 = 4.44827586207')
if num1 == 903 and sign == '/' and num2 == 204:
print('903/204 = 4.42647058824')
if num1 == 903 and sign == '/' and num2 == 205:
print('903/205 = 4.40487804878')
if num1 == 903 and sign == '/' and num2 == 206:
print('903/206 = 4.38349514563')
if num1 == 903 and sign == '/' and num2 == 207:
print('903/207 = 4.36231884058')
if num1 == 903 and sign == '/' and num2 == 208:
print('903/208 = 4.34134615385')
if num1 == 903 and sign == '/' and num2 == 209:
print('903/209 = 4.32057416268')
if num1 == 903 and sign == '/' and num2 == 210:
print('903/210 = 4.3')
if num1 == 903 and sign == '/' and num2 == 211:
print('903/211 = 4.27962085308')
if num1 == 903 and sign == '/' and num2 == 212:
print('903/212 = 4.25943396226')
if num1 == 903 and sign == '/' and num2 == 213:
print('903/213 = 4.23943661972')
if num1 == 903 and sign == '/' and num2 == 214:
print('903/214 = 4.21962616822')
if num1 == 903 and sign == '/' and num2 == 215:
print('903/215 = 4.2')
if num1 == 903 and sign == '/' and num2 == 216:
print('903/216 = 4.18055555556')
if num1 == 903 and sign == '/' and num2 == 217:
print('903/217 = 4.16129032258')
if num1 == 903 and sign == '/' and num2 == 218:
print('903/218 = 4.14220183486')
if num1 == 903 and sign == '/' and num2 == 219:
print('903/219 = 4.12328767123')
if num1 == 903 and sign == '/' and num2 == 220:
print('903/220 = 4.10454545455')
if num1 == 903 and sign == '/' and num2 == 221:
print('903/221 = 4.08597285068')
if num1 == 903 and sign == '/' and num2 == 222:
print('903/222 = 4.06756756757')
if num1 == 903 and sign == '/' and num2 == 223:
print('903/223 = 4.04932735426')
if num1 == 903 and sign == '/' and num2 == 224:
print('903/224 = 4.03125')
if num1 == 903 and sign == '/' and num2 == 225:
print('903/225 = 4.01333333333')
if num1 == 903 and sign == '/' and num2 == 226:
print('903/226 = 3.99557522124')
if num1 == 903 and sign == '/' and num2 == 227:
print('903/227 = 3.97797356828')
if num1 == 903 and sign == '/' and num2 == 228:
print('903/228 = 3.96052631579')
if num1 == 903 and sign == '/' and num2 == 229:
print('903/229 = 3.94323144105')
if num1 == 903 and sign == '/' and num2 == 230:
print('903/230 = 3.92608695652')
if num1 == 903 and sign == '/' and num2 == 231:
print('903/231 = 3.90909090909')
if num1 == 903 and sign == '/' and num2 == 232:
print('903/232 = 3.89224137931')
if num1 == 903 and sign == '/' and num2 == 233:
print('903/233 = 3.87553648069')
if num1 == 903 and sign == '/' and num2 == 234:
print('903/234 = 3.85897435897')
if num1 == 903 and sign == '/' and num2 == 235:
print('903/235 = 3.84255319149')
if num1 == 903 and sign == '/' and num2 == 236:
print('903/236 = 3.82627118644')
if num1 == 903 and sign == '/' and num2 == 237:
print('903/237 = 3.81012658228')
if num1 == 903 and sign == '/' and num2 == 238:
print('903/238 = 3.79411764706')
if num1 == 903 and sign == '/' and num2 == 239:
print('903/239 = 3.77824267782')
if num1 == 903 and sign == '/' and num2 == 240:
print('903/240 = 3.7625')
if num1 == 903 and sign == '/' and num2 == 241:
print('903/241 = 3.7468879668')
if num1 == 903 and sign == '/' and num2 == 242:
print('903/242 = 3.73140495868')
if num1 == 903 and sign == '/' and num2 == 243:
print('903/243 = 3.71604938272')
if num1 == 903 and sign == '/' and num2 == 244:
print('903/244 = 3.70081967213')
if num1 == 903 and sign == '/' and num2 == 245:
print('903/245 = 3.68571428571')
if num1 == 903 and sign == '/' and num2 == 246:
print('903/246 = 3.67073170732')
if num1 == 903 and sign == '/' and num2 == 247:
print('903/247 = 3.65587044534')
if num1 == 903 and sign == '/' and num2 == 248:
print('903/248 = 3.64112903226')
if num1 == 903 and sign == '/' and num2 == 249:
print('903/249 = 3.6265060241')
if num1 == 904 and sign == '/' and num2 == 200:
print('904/200 = 4.52')
if num1 == 904 and sign == '/' and num2 == 201:
print('904/201 = 4.49751243781')
if num1 == 904 and sign == '/' and num2 == 202:
print('904/202 = 4.47524752475')
if num1 == 904 and sign == '/' and num2 == 203:
print('904/203 = 4.45320197044')
if num1 == 904 and sign == '/' and num2 == 204:
print('904/204 = 4.43137254902')
if num1 == 904 and sign == '/' and num2 == 205:
print('904/205 = 4.40975609756')
if num1 == 904 and sign == '/' and num2 == 206:
print('904/206 = 4.38834951456')
if num1 == 904 and sign == '/' and num2 == 207:
print('904/207 = 4.36714975845')
if num1 == 904 and sign == '/' and num2 == 208:
print('904/208 = 4.34615384615')
if num1 == 904 and sign == '/' and num2 == 209:
print('904/209 = 4.32535885167')
if num1 == 904 and sign == '/' and num2 == 210:
print('904/210 = 4.30476190476')
if num1 == 904 and sign == '/' and num2 == 211:
print('904/211 = 4.28436018957')
if num1 == 904 and sign == '/' and num2 == 212:
print('904/212 = 4.2641509434')
if num1 == 904 and sign == '/' and num2 == 213:
print('904/213 = 4.2441314554')
if num1 == 904 and sign == '/' and num2 == 214:
print('904/214 = 4.22429906542')
if num1 == 904 and sign == '/' and num2 == 215:
print('904/215 = 4.20465116279')
if num1 == 904 and sign == '/' and num2 == 216:
print('904/216 = 4.18518518519')
if num1 == 904 and sign == '/' and num2 == 217:
print('904/217 = 4.16589861751')
if num1 == 904 and sign == '/' and num2 == 218:
print('904/218 = 4.14678899083')
if num1 == 904 and sign == '/' and num2 == 219:
print('904/219 = 4.12785388128')
if num1 == 904 and sign == '/' and num2 == 220:
print('904/220 = 4.10909090909')
if num1 == 904 and sign == '/' and num2 == 221:
print('904/221 = 4.09049773756')
if num1 == 904 and sign == '/' and num2 == 222:
print('904/222 = 4.07207207207')
if num1 == 904 and sign == '/' and num2 == 223:
print('904/223 = 4.05381165919')
if num1 == 904 and sign == '/' and num2 == 224:
print('904/224 = 4.03571428571')
if num1 == 904 and sign == '/' and num2 == 225:
print('904/225 = 4.01777777778')
if num1 == 904 and sign == '/' and num2 == 226:
print('904/226 = 4.0')
if num1 == 904 and sign == '/' and num2 == 227:
print('904/227 = 3.98237885463')
if num1 == 904 and sign == '/' and num2 == 228:
print('904/228 = 3.9649122807')
if num1 == 904 and sign == '/' and num2 == 229:
print('904/229 = 3.94759825328')
if num1 == 904 and sign == '/' and num2 == 230:
print('904/230 = 3.93043478261')
if num1 == 904 and sign == '/' and num2 == 231:
print('904/231 = 3.91341991342')
if num1 == 904 and sign == '/' and num2 == 232:
print('904/232 = 3.89655172414')
if num1 == 904 and sign == '/' and num2 == 233:
print('904/233 = 3.87982832618')
if num1 == 904 and sign == '/' and num2 == 234:
print('904/234 = 3.86324786325')
if num1 == 904 and sign == '/' and num2 == 235:
print('904/235 = 3.84680851064')
if num1 == 904 and sign == '/' and num2 == 236:
print('904/236 = 3.83050847458')
if num1 == 904 and sign == '/' and num2 == 237:
print('904/237 = 3.81434599156')
if num1 == 904 and sign == '/' and num2 == 238:
print('904/238 = 3.79831932773')
if num1 == 904 and sign == '/' and num2 == 239:
print('904/239 = 3.78242677824')
if num1 == 904 and sign == '/' and num2 == 240:
print('904/240 = 3.76666666667')
if num1 == 904 and sign == '/' and num2 == 241:
print('904/241 = 3.7510373444')
if num1 == 904 and sign == '/' and num2 == 242:
print('904/242 = 3.73553719008')
if num1 == 904 and sign == '/' and num2 == 243:
print('904/243 = 3.72016460905')
if num1 == 904 and sign == '/' and num2 == 244:
print('904/244 = 3.70491803279')
if num1 == 904 and sign == '/' and num2 == 245:
print('904/245 = 3.68979591837')
if num1 == 904 and sign == '/' and num2 == 246:
print('904/246 = 3.67479674797')
if num1 == 904 and sign == '/' and num2 == 247:
print('904/247 = 3.65991902834')
if num1 == 904 and sign == '/' and num2 == 248:
print('904/248 = 3.64516129032')
if num1 == 904 and sign == '/' and num2 == 249:
print('904/249 = 3.63052208835')
if num1 == 905 and sign == '/' and num2 == 200:
print('905/200 = 4.525')
if num1 == 905 and sign == '/' and num2 == 201:
print('905/201 = 4.50248756219')
if num1 == 905 and sign == '/' and num2 == 202:
print('905/202 = 4.4801980198')
if num1 == 905 and sign == '/' and num2 == 203:
print('905/203 = 4.45812807882')
if num1 == 905 and sign == '/' and num2 == 204:
print('905/204 = 4.4362745098')
if num1 == 905 and sign == '/' and num2 == 205:
print('905/205 = 4.41463414634')
if num1 == 905 and sign == '/' and num2 == 206:
print('905/206 = 4.3932038835')
if num1 == 905 and sign == '/' and num2 == 207:
print('905/207 = 4.37198067633')
if num1 == 905 and sign == '/' and num2 == 208:
print('905/208 = 4.35096153846')
if num1 == 905 and sign == '/' and num2 == 209:
print('905/209 = 4.33014354067')
if num1 == 905 and sign == '/' and num2 == 210:
print('905/210 = 4.30952380952')
if num1 == 905 and sign == '/' and num2 == 211:
print('905/211 = 4.28909952607')
if num1 == 905 and sign == '/' and num2 == 212:
print('905/212 = 4.26886792453')
if num1 == 905 and sign == '/' and num2 == 213:
print('905/213 = 4.24882629108')
if num1 == 905 and sign == '/' and num2 == 214:
print('905/214 = 4.22897196262')
if num1 == 905 and sign == '/' and num2 == 215:
print('905/215 = 4.20930232558')
if num1 == 905 and sign == '/' and num2 == 216:
print('905/216 = 4.18981481481')
if num1 == 905 and sign == '/' and num2 == 217:
print('905/217 = 4.17050691244')
if num1 == 905 and sign == '/' and num2 == 218:
print('905/218 = 4.15137614679')
if num1 == 905 and sign == '/' and num2 == 219:
print('905/219 = 4.13242009132')
if num1 == 905 and sign == '/' and num2 == 220:
print('905/220 = 4.11363636364')
if num1 == 905 and sign == '/' and num2 == 221:
print('905/221 = 4.09502262443')
if num1 == 905 and sign == '/' and num2 == 222:
print('905/222 = 4.07657657658')
if num1 == 905 and sign == '/' and num2 == 223:
print('905/223 = 4.05829596413')
if num1 == 905 and sign == '/' and num2 == 224:
print('905/224 = 4.04017857143')
if num1 == 905 and sign == '/' and num2 == 225:
print('905/225 = 4.02222222222')
if num1 == 905 and sign == '/' and num2 == 226:
print('905/226 = 4.00442477876')
if num1 == 905 and sign == '/' and num2 == 227:
print('905/227 = 3.98678414097')
if num1 == 905 and sign == '/' and num2 == 228:
print('905/228 = 3.96929824561')
if num1 == 905 and sign == '/' and num2 == 229:
print('905/229 = 3.9519650655')
if num1 == 905 and sign == '/' and num2 == 230:
print('905/230 = 3.9347826087')
if num1 == 905 and sign == '/' and num2 == 231:
print('905/231 = 3.91774891775')
if num1 == 905 and sign == '/' and num2 == 232:
print('905/232 = 3.90086206897')
if num1 == 905 and sign == '/' and num2 == 233:
print('905/233 = 3.88412017167')
if num1 == 905 and sign == '/' and num2 == 234:
print('905/234 = 3.86752136752')
if num1 == 905 and sign == '/' and num2 == 235:
print('905/235 = 3.85106382979')
if num1 == 905 and sign == '/' and num2 == 236:
print('905/236 = 3.83474576271')
if num1 == 905 and sign == '/' and num2 == 237:
print('905/237 = 3.81856540084')
if num1 == 905 and sign == '/' and num2 == 238:
print('905/238 = 3.8025210084')
if num1 == 905 and sign == '/' and num2 == 239:
print('905/239 = 3.78661087866')
if num1 == 905 and sign == '/' and num2 == 240:
print('905/240 = 3.77083333333')
if num1 == 905 and sign == '/' and num2 == 241:
print('905/241 = 3.75518672199')
if num1 == 905 and sign == '/' and num2 == 242:
print('905/242 = 3.73966942149')
if num1 == 905 and sign == '/' and num2 == 243:
print('905/243 = 3.72427983539')
if num1 == 905 and sign == '/' and num2 == 244:
print('905/244 = 3.70901639344')
if num1 == 905 and sign == '/' and num2 == 245:
print('905/245 = 3.69387755102')
if num1 == 905 and sign == '/' and num2 == 246:
print('905/246 = 3.67886178862')
if num1 == 905 and sign == '/' and num2 == 247:
print('905/247 = 3.66396761134')
if num1 == 905 and sign == '/' and num2 == 248:
print('905/248 = 3.64919354839')
if num1 == 905 and sign == '/' and num2 == 249:
print('905/249 = 3.63453815261')
if num1 == 906 and sign == '/' and num2 == 200:
print('906/200 = 4.53')
if num1 == 906 and sign == '/' and num2 == 201:
print('906/201 = 4.50746268657')
if num1 == 906 and sign == '/' and num2 == 202:
print('906/202 = 4.48514851485')
if num1 == 906 and sign == '/' and num2 == 203:
print('906/203 = 4.46305418719')
if num1 == 906 and sign == '/' and num2 == 204:
print('906/204 = 4.44117647059')
if num1 == 906 and sign == '/' and num2 == 205:
print('906/205 = 4.41951219512')
if num1 == 906 and sign == '/' and num2 == 206:
print('906/206 = 4.39805825243')
if num1 == 906 and sign == '/' and num2 == 207:
print('906/207 = 4.3768115942')
if num1 == 906 and sign == '/' and num2 == 208:
print('906/208 = 4.35576923077')
if num1 == 906 and sign == '/' and num2 == 209:
print('906/209 = 4.33492822967')
if num1 == 906 and sign == '/' and num2 == 210:
print('906/210 = 4.31428571429')
if num1 == 906 and sign == '/' and num2 == 211:
print('906/211 = 4.29383886256')
if num1 == 906 and sign == '/' and num2 == 212:
print('906/212 = 4.27358490566')
if num1 == 906 and sign == '/' and num2 == 213:
print('906/213 = 4.25352112676')
if num1 == 906 and sign == '/' and num2 == 214:
print('906/214 = 4.23364485981')
if num1 == 906 and sign == '/' and num2 == 215:
print('906/215 = 4.21395348837')
if num1 == 906 and sign == '/' and num2 == 216:
print('906/216 = 4.19444444444')
if num1 == 906 and sign == '/' and num2 == 217:
print('906/217 = 4.17511520737')
if num1 == 906 and sign == '/' and num2 == 218:
print('906/218 = 4.15596330275')
if num1 == 906 and sign == '/' and num2 == 219:
print('906/219 = 4.13698630137')
if num1 == 906 and sign == '/' and num2 == 220:
print('906/220 = 4.11818181818')
if num1 == 906 and sign == '/' and num2 == 221:
print('906/221 = 4.09954751131')
if num1 == 906 and sign == '/' and num2 == 222:
print('906/222 = 4.08108108108')
if num1 == 906 and sign == '/' and num2 == 223:
print('906/223 = 4.06278026906')
if num1 == 906 and sign == '/' and num2 == 224:
print('906/224 = 4.04464285714')
if num1 == 906 and sign == '/' and num2 == 225:
print('906/225 = 4.02666666667')
if num1 == 906 and sign == '/' and num2 == 226:
print('906/226 = 4.00884955752')
if num1 == 906 and sign == '/' and num2 == 227:
print('906/227 = 3.99118942731')
if num1 == 906 and sign == '/' and num2 == 228:
print('906/228 = 3.97368421053')
if num1 == 906 and sign == '/' and num2 == 229:
print('906/229 = 3.95633187773')
if num1 == 906 and sign == '/' and num2 == 230:
print('906/230 = 3.93913043478')
if num1 == 906 and sign == '/' and num2 == 231:
print('906/231 = 3.92207792208')
if num1 == 906 and sign == '/' and num2 == 232:
print('906/232 = 3.90517241379')
if num1 == 906 and sign == '/' and num2 == 233:
print('906/233 = 3.88841201717')
if num1 == 906 and sign == '/' and num2 == 234:
print('906/234 = 3.87179487179')
if num1 == 906 and sign == '/' and num2 == 235:
print('906/235 = 3.85531914894')
if num1 == 906 and sign == '/' and num2 == 236:
print('906/236 = 3.83898305085')
if num1 == 906 and sign == '/' and num2 == 237:
print('906/237 = 3.82278481013')
if num1 == 906 and sign == '/' and num2 == 238:
print('906/238 = 3.80672268908')
if num1 == 906 and sign == '/' and num2 == 239:
print('906/239 = 3.79079497908')
if num1 == 906 and sign == '/' and num2 == 240:
print('906/240 = 3.775')
if num1 == 906 and sign == '/' and num2 == 241:
print('906/241 = 3.75933609959')
if num1 == 906 and sign == '/' and num2 == 242:
print('906/242 = 3.74380165289')
if num1 == 906 and sign == '/' and num2 == 243:
print('906/243 = 3.72839506173')
if num1 == 906 and sign == '/' and num2 == 244:
print('906/244 = 3.7131147541')
if num1 == 906 and sign == '/' and num2 == 245:
print('906/245 = 3.69795918367')
if num1 == 906 and sign == '/' and num2 == 246:
print('906/246 = 3.68292682927')
if num1 == 906 and sign == '/' and num2 == 247:
print('906/247 = 3.66801619433')
if num1 == 906 and sign == '/' and num2 == 248:
print('906/248 = 3.65322580645')
if num1 == 906 and sign == '/' and num2 == 249:
print('906/249 = 3.63855421687')
if num1 == 907 and sign == '/' and num2 == 200:
print('907/200 = 4.535')
if num1 == 907 and sign == '/' and num2 == 201:
print('907/201 = 4.51243781095')
if num1 == 907 and sign == '/' and num2 == 202:
print('907/202 = 4.4900990099')
if num1 == 907 and sign == '/' and num2 == 203:
print('907/203 = 4.46798029557')
if num1 == 907 and sign == '/' and num2 == 204:
print('907/204 = 4.44607843137')
if num1 == 907 and sign == '/' and num2 == 205:
print('907/205 = 4.4243902439')
if num1 == 907 and sign == '/' and num2 == 206:
print('907/206 = 4.40291262136')
if num1 == 907 and sign == '/' and num2 == 207:
print('907/207 = 4.38164251208')
if num1 == 907 and sign == '/' and num2 == 208:
print('907/208 = 4.36057692308')
if num1 == 907 and sign == '/' and num2 == 209:
print('907/209 = 4.33971291866')
if num1 == 907 and sign == '/' and num2 == 210:
print('907/210 = 4.31904761905')
if num1 == 907 and sign == '/' and num2 == 211:
print('907/211 = 4.29857819905')
if num1 == 907 and sign == '/' and num2 == 212:
print('907/212 = 4.27830188679')
if num1 == 907 and sign == '/' and num2 == 213:
print('907/213 = 4.25821596244')
if num1 == 907 and sign == '/' and num2 == 214:
print('907/214 = 4.23831775701')
if num1 == 907 and sign == '/' and num2 == 215:
print('907/215 = 4.21860465116')
if num1 == 907 and sign == '/' and num2 == 216:
print('907/216 = 4.19907407407')
if num1 == 907 and sign == '/' and num2 == 217:
print('907/217 = 4.1797235023')
if num1 == 907 and sign == '/' and num2 == 218:
print('907/218 = 4.16055045872')
if num1 == 907 and sign == '/' and num2 == 219:
print('907/219 = 4.14155251142')
if num1 == 907 and sign == '/' and num2 == 220:
print('907/220 = 4.12272727273')
if num1 == 907 and sign == '/' and num2 == 221:
print('907/221 = 4.10407239819')
if num1 == 907 and sign == '/' and num2 == 222:
print('907/222 = 4.08558558559')
if num1 == 907 and sign == '/' and num2 == 223:
print('907/223 = 4.06726457399')
if num1 == 907 and sign == '/' and num2 == 224:
print('907/224 = 4.04910714286')
if num1 == 907 and sign == '/' and num2 == 225:
print('907/225 = 4.03111111111')
if num1 == 907 and sign == '/' and num2 == 226:
print('907/226 = 4.01327433628')
if num1 == 907 and sign == '/' and num2 == 227:
print('907/227 = 3.99559471366')
if num1 == 907 and sign == '/' and num2 == 228:
print('907/228 = 3.97807017544')
if num1 == 907 and sign == '/' and num2 == 229:
print('907/229 = 3.96069868996')
if num1 == 907 and sign == '/' and num2 == 230:
print('907/230 = 3.94347826087')
if num1 == 907 and sign == '/' and num2 == 231:
print('907/231 = 3.92640692641')
if num1 == 907 and sign == '/' and num2 == 232:
print('907/232 = 3.90948275862')
if num1 == 907 and sign == '/' and num2 == 233:
print('907/233 = 3.89270386266')
if num1 == 907 and sign == '/' and num2 == 234:
print('907/234 = 3.87606837607')
if num1 == 907 and sign == '/' and num2 == 235:
print('907/235 = 3.85957446809')
if num1 == 907 and sign == '/' and num2 == 236:
print('907/236 = 3.84322033898')
if num1 == 907 and sign == '/' and num2 == 237:
print('907/237 = 3.82700421941')
if num1 == 907 and sign == '/' and num2 == 238:
print('907/238 = 3.81092436975')
if num1 == 907 and sign == '/' and num2 == 239:
print('907/239 = 3.7949790795')
if num1 == 907 and sign == '/' and num2 == 240:
print('907/240 = 3.77916666667')
if num1 == 907 and sign == '/' and num2 == 241:
print('907/241 = 3.76348547718')
if num1 == 907 and sign == '/' and num2 == 242:
print('907/242 = 3.7479338843')
if num1 == 907 and sign == '/' and num2 == 243:
print('907/243 = 3.73251028807')
if num1 == 907 and sign == '/' and num2 == 244:
print('907/244 = 3.71721311475')
if num1 == 907 and sign == '/' and num2 == 245:
print('907/245 = 3.70204081633')
if num1 == 907 and sign == '/' and num2 == 246:
print('907/246 = 3.68699186992')
if num1 == 907 and sign == '/' and num2 == 247:
print('907/247 = 3.67206477733')
if num1 == 907 and sign == '/' and num2 == 248:
print('907/248 = 3.65725806452')
if num1 == 907 and sign == '/' and num2 == 249:
print('907/249 = 3.64257028112')
if num1 == 908 and sign == '/' and num2 == 200:
print('908/200 = 4.54')
if num1 == 908 and sign == '/' and num2 == 201:
print('908/201 = 4.51741293532')
if num1 == 908 and sign == '/' and num2 == 202:
print('908/202 = 4.49504950495')
if num1 == 908 and sign == '/' and num2 == 203:
print('908/203 = 4.47290640394')
if num1 == 908 and sign == '/' and num2 == 204:
print('908/204 = 4.45098039216')
if num1 == 908 and sign == '/' and num2 == 205:
print('908/205 = 4.42926829268')
if num1 == 908 and sign == '/' and num2 == 206:
print('908/206 = 4.40776699029')
if num1 == 908 and sign == '/' and num2 == 207:
print('908/207 = 4.38647342995')
if num1 == 908 and sign == '/' and num2 == 208:
print('908/208 = 4.36538461538')
if num1 == 908 and sign == '/' and num2 == 209:
print('908/209 = 4.34449760766')
if num1 == 908 and sign == '/' and num2 == 210:
print('908/210 = 4.32380952381')
if num1 == 908 and sign == '/' and num2 == 211:
print('908/211 = 4.30331753555')
if num1 == 908 and sign == '/' and num2 == 212:
print('908/212 = 4.28301886792')
if num1 == 908 and sign == '/' and num2 == 213:
print('908/213 = 4.26291079812')
if num1 == 908 and sign == '/' and num2 == 214:
print('908/214 = 4.24299065421')
if num1 == 908 and sign == '/' and num2 == 215:
print('908/215 = 4.22325581395')
if num1 == 908 and sign == '/' and num2 == 216:
print('908/216 = 4.2037037037')
if num1 == 908 and sign == '/' and num2 == 217:
print('908/217 = 4.18433179724')
if num1 == 908 and sign == '/' and num2 == 218:
print('908/218 = 4.16513761468')
if num1 == 908 and sign == '/' and num2 == 219:
print('908/219 = 4.14611872146')
if num1 == 908 and sign == '/' and num2 == 220:
print('908/220 = 4.12727272727')
if num1 == 908 and sign == '/' and num2 == 221:
print('908/221 = 4.10859728507')
if num1 == 908 and sign == '/' and num2 == 222:
print('908/222 = 4.09009009009')
if num1 == 908 and sign == '/' and num2 == 223:
print('908/223 = 4.07174887892')
if num1 == 908 and sign == '/' and num2 == 224:
print('908/224 = 4.05357142857')
if num1 == 908 and sign == '/' and num2 == 225:
print('908/225 = 4.03555555556')
if num1 == 908 and sign == '/' and num2 == 226:
print('908/226 = 4.01769911504')
if num1 == 908 and sign == '/' and num2 == 227:
print('908/227 = 4.0')
if num1 == 908 and sign == '/' and num2 == 228:
print('908/228 = 3.98245614035')
if num1 == 908 and sign == '/' and num2 == 229:
print('908/229 = 3.96506550218')
if num1 == 908 and sign == '/' and num2 == 230:
print('908/230 = 3.94782608696')
if num1 == 908 and sign == '/' and num2 == 231:
print('908/231 = 3.93073593074')
if num1 == 908 and sign == '/' and num2 == 232:
print('908/232 = 3.91379310345')
if num1 == 908 and sign == '/' and num2 == 233:
print('908/233 = 3.89699570815')
if num1 == 908 and sign == '/' and num2 == 234:
print('908/234 = 3.88034188034')
if num1 == 908 and sign == '/' and num2 == 235:
print('908/235 = 3.86382978723')
if num1 == 908 and sign == '/' and num2 == 236:
print('908/236 = 3.84745762712')
if num1 == 908 and sign == '/' and num2 == 237:
print('908/237 = 3.83122362869')
if num1 == 908 and sign == '/' and num2 == 238:
print('908/238 = 3.81512605042')
if num1 == 908 and sign == '/' and num2 == 239:
print('908/239 = 3.79916317992')
if num1 == 908 and sign == '/' and num2 == 240:
print('908/240 = 3.78333333333')
if num1 == 908 and sign == '/' and num2 == 241:
print('908/241 = 3.76763485477')
if num1 == 908 and sign == '/' and num2 == 242:
print('908/242 = 3.7520661157')
if num1 == 908 and sign == '/' and num2 == 243:
print('908/243 = 3.7366255144')
if num1 == 908 and sign == '/' and num2 == 244:
print('908/244 = 3.72131147541')
if num1 == 908 and sign == '/' and num2 == 245:
print('908/245 = 3.70612244898')
if num1 == 908 and sign == '/' and num2 == 246:
print('908/246 = 3.69105691057')
if num1 == 908 and sign == '/' and num2 == 247:
print('908/247 = 3.67611336032')
if num1 == 908 and sign == '/' and num2 == 248:
print('908/248 = 3.66129032258')
if num1 == 908 and sign == '/' and num2 == 249:
print('908/249 = 3.64658634538')
if num1 == 909 and sign == '/' and num2 == 200:
print('909/200 = 4.545')
if num1 == 909 and sign == '/' and num2 == 201:
print('909/201 = 4.5223880597')
if num1 == 909 and sign == '/' and num2 == 202:
print('909/202 = 4.5')
if num1 == 909 and sign == '/' and num2 == 203:
print('909/203 = 4.47783251232')
if num1 == 909 and sign == '/' and num2 == 204:
print('909/204 = 4.45588235294')
if num1 == 909 and sign == '/' and num2 == 205:
print('909/205 = 4.43414634146')
if num1 == 909 and sign == '/' and num2 == 206:
print('909/206 = 4.41262135922')
if num1 == 909 and sign == '/' and num2 == 207:
print('909/207 = 4.39130434783')
if num1 == 909 and sign == '/' and num2 == 208:
print('909/208 = 4.37019230769')
if num1 == 909 and sign == '/' and num2 == 209:
print('909/209 = 4.34928229665')
if num1 == 909 and sign == '/' and num2 == 210:
print('909/210 = 4.32857142857')
if num1 == 909 and sign == '/' and num2 == 211:
print('909/211 = 4.30805687204')
if num1 == 909 and sign == '/' and num2 == 212:
print('909/212 = 4.28773584906')
if num1 == 909 and sign == '/' and num2 == 213:
print('909/213 = 4.2676056338')
if num1 == 909 and sign == '/' and num2 == 214:
print('909/214 = 4.2476635514')
if num1 == 909 and sign == '/' and num2 == 215:
print('909/215 = 4.22790697674')
if num1 == 909 and sign == '/' and num2 == 216:
print('909/216 = 4.20833333333')
if num1 == 909 and sign == '/' and num2 == 217:
print('909/217 = 4.18894009217')
if num1 == 909 and sign == '/' and num2 == 218:
print('909/218 = 4.16972477064')
if num1 == 909 and sign == '/' and num2 == 219:
print('909/219 = 4.15068493151')
if num1 == 909 and sign == '/' and num2 == 220:
print('909/220 = 4.13181818182')
if num1 == 909 and sign == '/' and num2 == 221:
print('909/221 = 4.11312217195')
if num1 == 909 and sign == '/' and num2 == 222:
print('909/222 = 4.09459459459')
if num1 == 909 and sign == '/' and num2 == 223:
print('909/223 = 4.07623318386')
if num1 == 909 and sign == '/' and num2 == 224:
print('909/224 = 4.05803571429')
if num1 == 909 and sign == '/' and num2 == 225:
print('909/225 = 4.04')
if num1 == 909 and sign == '/' and num2 == 226:
print('909/226 = 4.02212389381')
if num1 == 909 and sign == '/' and num2 == 227:
print('909/227 = 4.00440528634')
if num1 == 909 and sign == '/' and num2 == 228:
print('909/228 = 3.98684210526')
if num1 == 909 and sign == '/' and num2 == 229:
print('909/229 = 3.96943231441')
if num1 == 909 and sign == '/' and num2 == 230:
print('909/230 = 3.95217391304')
if num1 == 909 and sign == '/' and num2 == 231:
print('909/231 = 3.93506493506')
if num1 == 909 and sign == '/' and num2 == 232:
print('909/232 = 3.91810344828')
if num1 == 909 and sign == '/' and num2 == 233:
print('909/233 = 3.90128755365')
if num1 == 909 and sign == '/' and num2 == 234:
print('909/234 = 3.88461538462')
if num1 == 909 and sign == '/' and num2 == 235:
print('909/235 = 3.86808510638')
if num1 == 909 and sign == '/' and num2 == 236:
print('909/236 = 3.85169491525')
if num1 == 909 and sign == '/' and num2 == 237:
print('909/237 = 3.83544303797')
if num1 == 909 and sign == '/' and num2 == 238:
print('909/238 = 3.81932773109')
if num1 == 909 and sign == '/' and num2 == 239:
print('909/239 = 3.80334728033')
if num1 == 909 and sign == '/' and num2 == 240:
print('909/240 = 3.7875')
if num1 == 909 and sign == '/' and num2 == 241:
print('909/241 = 3.77178423237')
if num1 == 909 and sign == '/' and num2 == 242:
print('909/242 = 3.75619834711')
if num1 == 909 and sign == '/' and num2 == 243:
print('909/243 = 3.74074074074')
if num1 == 909 and sign == '/' and num2 == 244:
print('909/244 = 3.72540983607')
if num1 == 909 and sign == '/' and num2 == 245:
print('909/245 = 3.71020408163')
if num1 == 909 and sign == '/' and num2 == 246:
print('909/246 = 3.69512195122')
if num1 == 909 and sign == '/' and num2 == 247:
print('909/247 = 3.68016194332')
if num1 == 909 and sign == '/' and num2 == 248:
print('909/248 = 3.66532258065')
if num1 == 909 and sign == '/' and num2 == 249:
print('909/249 = 3.65060240964')
if num1 == 910 and sign == '/' and num2 == 200:
print('910/200 = 4.55')
if num1 == 910 and sign == '/' and num2 == 201:
print('910/201 = 4.52736318408')
if num1 == 910 and sign == '/' and num2 == 202:
print('910/202 = 4.50495049505')
if num1 == 910 and sign == '/' and num2 == 203:
print('910/203 = 4.48275862069')
if num1 == 910 and sign == '/' and num2 == 204:
print('910/204 = 4.46078431373')
if num1 == 910 and sign == '/' and num2 == 205:
print('910/205 = 4.43902439024')
if num1 == 910 and sign == '/' and num2 == 206:
print('910/206 = 4.41747572816')
if num1 == 910 and sign == '/' and num2 == 207:
print('910/207 = 4.3961352657')
if num1 == 910 and sign == '/' and num2 == 208:
print('910/208 = 4.375')
if num1 == 910 and sign == '/' and num2 == 209:
print('910/209 = 4.35406698565')
if num1 == 910 and sign == '/' and num2 == 210:
print('910/210 = 4.33333333333')
if num1 == 910 and sign == '/' and num2 == 211:
print('910/211 = 4.31279620853')
if num1 == 910 and sign == '/' and num2 == 212:
print('910/212 = 4.29245283019')
if num1 == 910 and sign == '/' and num2 == 213:
print('910/213 = 4.27230046948')
if num1 == 910 and sign == '/' and num2 == 214:
print('910/214 = 4.2523364486')
if num1 == 910 and sign == '/' and num2 == 215:
print('910/215 = 4.23255813953')
if num1 == 910 and sign == '/' and num2 == 216:
print('910/216 = 4.21296296296')
if num1 == 910 and sign == '/' and num2 == 217:
print('910/217 = 4.1935483871')
if num1 == 910 and sign == '/' and num2 == 218:
print('910/218 = 4.17431192661')
if num1 == 910 and sign == '/' and num2 == 219:
print('910/219 = 4.15525114155')
if num1 == 910 and sign == '/' and num2 == 220:
print('910/220 = 4.13636363636')
if num1 == 910 and sign == '/' and num2 == 221:
print('910/221 = 4.11764705882')
if num1 == 910 and sign == '/' and num2 == 222:
print('910/222 = 4.0990990991')
if num1 == 910 and sign == '/' and num2 == 223:
print('910/223 = 4.08071748879')
if num1 == 910 and sign == '/' and num2 == 224:
print('910/224 = 4.0625')
if num1 == 910 and sign == '/' and num2 == 225:
print('910/225 = 4.04444444444')
if num1 == 910 and sign == '/' and num2 == 226:
print('910/226 = 4.02654867257')
if num1 == 910 and sign == '/' and num2 == 227:
print('910/227 = 4.00881057269')
if num1 == 910 and sign == '/' and num2 == 228:
print('910/228 = 3.99122807018')
if num1 == 910 and sign == '/' and num2 == 229:
print('910/229 = 3.97379912664')
if num1 == 910 and sign == '/' and num2 == 230:
print('910/230 = 3.95652173913')
if num1 == 910 and sign == '/' and num2 == 231:
print('910/231 = 3.93939393939')
if num1 == 910 and sign == '/' and num2 == 232:
print('910/232 = 3.9224137931')
if num1 == 910 and sign == '/' and num2 == 233:
print('910/233 = 3.90557939914')
if num1 == 910 and sign == '/' and num2 == 234:
print('910/234 = 3.88888888889')
if num1 == 910 and sign == '/' and num2 == 235:
print('910/235 = 3.87234042553')
if num1 == 910 and sign == '/' and num2 == 236:
print('910/236 = 3.85593220339')
if num1 == 910 and sign == '/' and num2 == 237:
print('910/237 = 3.83966244726')
if num1 == 910 and sign == '/' and num2 == 238:
print('910/238 = 3.82352941176')
if num1 == 910 and sign == '/' and num2 == 239:
print('910/239 = 3.80753138075')
if num1 == 910 and sign == '/' and num2 == 240:
print('910/240 = 3.79166666667')
if num1 == 910 and sign == '/' and num2 == 241:
print('910/241 = 3.77593360996')
if num1 == 910 and sign == '/' and num2 == 242:
print('910/242 = 3.76033057851')
if num1 == 910 and sign == '/' and num2 == 243:
print('910/243 = 3.74485596708')
if num1 == 910 and sign == '/' and num2 == 244:
print('910/244 = 3.72950819672')
if num1 == 910 and sign == '/' and num2 == 245:
print('910/245 = 3.71428571429')
if num1 == 910 and sign == '/' and num2 == 246:
print('910/246 = 3.69918699187')
if num1 == 910 and sign == '/' and num2 == 247:
print('910/247 = 3.68421052632')
if num1 == 910 and sign == '/' and num2 == 248:
print('910/248 = 3.66935483871')
if num1 == 910 and sign == '/' and num2 == 249:
print('910/249 = 3.6546184739')
if num1 == 911 and sign == '/' and num2 == 200:
print('911/200 = 4.555')
if num1 == 911 and sign == '/' and num2 == 201:
print('911/201 = 4.53233830846')
if num1 == 911 and sign == '/' and num2 == 202:
print('911/202 = 4.5099009901')
if num1 == 911 and sign == '/' and num2 == 203:
print('911/203 = 4.48768472906')
if num1 == 911 and sign == '/' and num2 == 204:
print('911/204 = 4.46568627451')
if num1 == 911 and sign == '/' and num2 == 205:
print('911/205 = 4.44390243902')
if num1 == 911 and sign == '/' and num2 == 206:
print('911/206 = 4.42233009709')
if num1 == 911 and sign == '/' and num2 == 207:
print('911/207 = 4.40096618357')
if num1 == 911 and sign == '/' and num2 == 208:
print('911/208 = 4.37980769231')
if num1 == 911 and sign == '/' and num2 == 209:
print('911/209 = 4.35885167464')
if num1 == 911 and sign == '/' and num2 == 210:
print('911/210 = 4.3380952381')
if num1 == 911 and sign == '/' and num2 == 211:
print('911/211 = 4.31753554502')
if num1 == 911 and sign == '/' and num2 == 212:
print('911/212 = 4.29716981132')
if num1 == 911 and sign == '/' and num2 == 213:
print('911/213 = 4.27699530516')
if num1 == 911 and sign == '/' and num2 == 214:
print('911/214 = 4.25700934579')
if num1 == 911 and sign == '/' and num2 == 215:
print('911/215 = 4.23720930233')
if num1 == 911 and sign == '/' and num2 == 216:
print('911/216 = 4.21759259259')
if num1 == 911 and sign == '/' and num2 == 217:
print('911/217 = 4.19815668203')
if num1 == 911 and sign == '/' and num2 == 218:
print('911/218 = 4.17889908257')
if num1 == 911 and sign == '/' and num2 == 219:
print('911/219 = 4.1598173516')
if num1 == 911 and sign == '/' and num2 == 220:
print('911/220 = 4.14090909091')
if num1 == 911 and sign == '/' and num2 == 221:
print('911/221 = 4.1221719457')
if num1 == 911 and sign == '/' and num2 == 222:
print('911/222 = 4.1036036036')
if num1 == 911 and sign == '/' and num2 == 223:
print('911/223 = 4.08520179372')
if num1 == 911 and sign == '/' and num2 == 224:
print('911/224 = 4.06696428571')
if num1 == 911 and sign == '/' and num2 == 225:
print('911/225 = 4.04888888889')
if num1 == 911 and sign == '/' and num2 == 226:
print('911/226 = 4.03097345133')
if num1 == 911 and sign == '/' and num2 == 227:
print('911/227 = 4.01321585903')
if num1 == 911 and sign == '/' and num2 == 228:
print('911/228 = 3.99561403509')
if num1 == 911 and sign == '/' and num2 == 229:
print('911/229 = 3.97816593886')
if num1 == 911 and sign == '/' and num2 == 230:
print('911/230 = 3.96086956522')
if num1 == 911 and sign == '/' and num2 == 231:
print('911/231 = 3.94372294372')
if num1 == 911 and sign == '/' and num2 == 232:
print('911/232 = 3.92672413793')
if num1 == 911 and sign == '/' and num2 == 233:
print('911/233 = 3.90987124464')
if num1 == 911 and sign == '/' and num2 == 234:
print('911/234 = 3.89316239316')
if num1 == 911 and sign == '/' and num2 == 235:
print('911/235 = 3.87659574468')
if num1 == 911 and sign == '/' and num2 == 236:
print('911/236 = 3.86016949153')
if num1 == 911 and sign == '/' and num2 == 237:
print('911/237 = 3.84388185654')
if num1 == 911 and sign == '/' and num2 == 238:
print('911/238 = 3.82773109244')
if num1 == 911 and sign == '/' and num2 == 239:
print('911/239 = 3.81171548117')
if num1 == 911 and sign == '/' and num2 == 240:
print('911/240 = 3.79583333333')
if num1 == 911 and sign == '/' and num2 == 241:
print('911/241 = 3.78008298755')
if num1 == 911 and sign == '/' and num2 == 242:
print('911/242 = 3.76446280992')
if num1 == 911 and sign == '/' and num2 == 243:
print('911/243 = 3.74897119342')
if num1 == 911 and sign == '/' and num2 == 244:
print('911/244 = 3.73360655738')
if num1 == 911 and sign == '/' and num2 == 245:
print('911/245 = 3.71836734694')
if num1 == 911 and sign == '/' and num2 == 246:
print('911/246 = 3.70325203252')
if num1 == 911 and sign == '/' and num2 == 247:
print('911/247 = 3.68825910931')
if num1 == 911 and sign == '/' and num2 == 248:
print('911/248 = 3.67338709677')
if num1 == 911 and sign == '/' and num2 == 249:
print('911/249 = 3.65863453815')
if num1 == 912 and sign == '/' and num2 == 200:
print('912/200 = 4.56')
if num1 == 912 and sign == '/' and num2 == 201:
print('912/201 = 4.53731343284')
if num1 == 912 and sign == '/' and num2 == 202:
print('912/202 = 4.51485148515')
if num1 == 912 and sign == '/' and num2 == 203:
print('912/203 = 4.49261083744')
if num1 == 912 and sign == '/' and num2 == 204:
print('912/204 = 4.47058823529')
if num1 == 912 and sign == '/' and num2 == 205:
print('912/205 = 4.4487804878')
if num1 == 912 and sign == '/' and num2 == 206:
print('912/206 = 4.42718446602')
if num1 == 912 and sign == '/' and num2 == 207:
print('912/207 = 4.40579710145')
if num1 == 912 and sign == '/' and num2 == 208:
print('912/208 = 4.38461538462')
if num1 == 912 and sign == '/' and num2 == 209:
print('912/209 = 4.36363636364')
if num1 == 912 and sign == '/' and num2 == 210:
print('912/210 = 4.34285714286')
if num1 == 912 and sign == '/' and num2 == 211:
print('912/211 = 4.32227488152')
if num1 == 912 and sign == '/' and num2 == 212:
print('912/212 = 4.30188679245')
if num1 == 912 and sign == '/' and num2 == 213:
print('912/213 = 4.28169014085')
if num1 == 912 and sign == '/' and num2 == 214:
print('912/214 = 4.26168224299')
if num1 == 912 and sign == '/' and num2 == 215:
print('912/215 = 4.24186046512')
if num1 == 912 and sign == '/' and num2 == 216:
print('912/216 = 4.22222222222')
if num1 == 912 and sign == '/' and num2 == 217:
print('912/217 = 4.20276497696')
if num1 == 912 and sign == '/' and num2 == 218:
print('912/218 = 4.18348623853')
if num1 == 912 and sign == '/' and num2 == 219:
print('912/219 = 4.16438356164')
if num1 == 912 and sign == '/' and num2 == 220:
print('912/220 = 4.14545454545')
if num1 == 912 and sign == '/' and num2 == 221:
print('912/221 = 4.12669683258')
if num1 == 912 and sign == '/' and num2 == 222:
print('912/222 = 4.10810810811')
if num1 == 912 and sign == '/' and num2 == 223:
print('912/223 = 4.08968609865')
if num1 == 912 and sign == '/' and num2 == 224:
print('912/224 = 4.07142857143')
if num1 == 912 and sign == '/' and num2 == 225:
print('912/225 = 4.05333333333')
if num1 == 912 and sign == '/' and num2 == 226:
print('912/226 = 4.03539823009')
if num1 == 912 and sign == '/' and num2 == 227:
print('912/227 = 4.01762114537')
if num1 == 912 and sign == '/' and num2 == 228:
print('912/228 = 4.0')
if num1 == 912 and sign == '/' and num2 == 229:
print('912/229 = 3.98253275109')
if num1 == 912 and sign == '/' and num2 == 230:
print('912/230 = 3.9652173913')
if num1 == 912 and sign == '/' and num2 == 231:
print('912/231 = 3.94805194805')
if num1 == 912 and sign == '/' and num2 == 232:
print('912/232 = 3.93103448276')
if num1 == 912 and sign == '/' and num2 == 233:
print('912/233 = 3.91416309013')
if num1 == 912 and sign == '/' and num2 == 234:
print('912/234 = 3.89743589744')
if num1 == 912 and sign == '/' and num2 == 235:
print('912/235 = 3.88085106383')
if num1 == 912 and sign == '/' and num2 == 236:
print('912/236 = 3.86440677966')
if num1 == 912 and sign == '/' and num2 == 237:
print('912/237 = 3.84810126582')
if num1 == 912 and sign == '/' and num2 == 238:
print('912/238 = 3.83193277311')
if num1 == 912 and sign == '/' and num2 == 239:
print('912/239 = 3.81589958159')
if num1 == 912 and sign == '/' and num2 == 240:
print('912/240 = 3.8')
if num1 == 912 and sign == '/' and num2 == 241:
print('912/241 = 3.78423236515')
if num1 == 912 and sign == '/' and num2 == 242:
print('912/242 = 3.76859504132')
if num1 == 912 and sign == '/' and num2 == 243:
print('912/243 = 3.75308641975')
if num1 == 912 and sign == '/' and num2 == 244:
print('912/244 = 3.73770491803')
if num1 == 912 and sign == '/' and num2 == 245:
print('912/245 = 3.72244897959')
if num1 == 912 and sign == '/' and num2 == 246:
print('912/246 = 3.70731707317')
if num1 == 912 and sign == '/' and num2 == 247:
print('912/247 = 3.69230769231')
if num1 == 912 and sign == '/' and num2 == 248:
print('912/248 = 3.67741935484')
if num1 == 912 and sign == '/' and num2 == 249:
print('912/249 = 3.66265060241')
if num1 == 913 and sign == '/' and num2 == 200:
print('913/200 = 4.565')
if num1 == 913 and sign == '/' and num2 == 201:
print('913/201 = 4.54228855721')
if num1 == 913 and sign == '/' and num2 == 202:
print('913/202 = 4.5198019802')
if num1 == 913 and sign == '/' and num2 == 203:
print('913/203 = 4.49753694581')
if num1 == 913 and sign == '/' and num2 == 204:
print('913/204 = 4.47549019608')
if num1 == 913 and sign == '/' and num2 == 205:
print('913/205 = 4.45365853659')
if num1 == 913 and sign == '/' and num2 == 206:
print('913/206 = 4.43203883495')
if num1 == 913 and sign == '/' and num2 == 207:
print('913/207 = 4.41062801932')
if num1 == 913 and sign == '/' and num2 == 208:
print('913/208 = 4.38942307692')
if num1 == 913 and sign == '/' and num2 == 209:
print('913/209 = 4.36842105263')
if num1 == 913 and sign == '/' and num2 == 210:
print('913/210 = 4.34761904762')
if num1 == 913 and sign == '/' and num2 == 211:
print('913/211 = 4.32701421801')
if num1 == 913 and sign == '/' and num2 == 212:
print('913/212 = 4.30660377358')
if num1 == 913 and sign == '/' and num2 == 213:
print('913/213 = 4.28638497653')
if num1 == 913 and sign == '/' and num2 == 214:
print('913/214 = 4.26635514019')
if num1 == 913 and sign == '/' and num2 == 215:
print('913/215 = 4.24651162791')
if num1 == 913 and sign == '/' and num2 == 216:
print('913/216 = 4.22685185185')
if num1 == 913 and sign == '/' and num2 == 217:
print('913/217 = 4.20737327189')
if num1 == 913 and sign == '/' and num2 == 218:
print('913/218 = 4.1880733945')
if num1 == 913 and sign == '/' and num2 == 219:
print('913/219 = 4.16894977169')
if num1 == 913 and sign == '/' and num2 == 220:
print('913/220 = 4.15')
if num1 == 913 and sign == '/' and num2 == 221:
print('913/221 = 4.13122171946')
if num1 == 913 and sign == '/' and num2 == 222:
print('913/222 = 4.11261261261')
if num1 == 913 and sign == '/' and num2 == 223:
print('913/223 = 4.09417040359')
if num1 == 913 and sign == '/' and num2 == 224:
print('913/224 = 4.07589285714')
if num1 == 913 and sign == '/' and num2 == 225:
print('913/225 = 4.05777777778')
if num1 == 913 and sign == '/' and num2 == 226:
print('913/226 = 4.03982300885')
if num1 == 913 and sign == '/' and num2 == 227:
print('913/227 = 4.02202643172')
if num1 == 913 and sign == '/' and num2 == 228:
print('913/228 = 4.00438596491')
if num1 == 913 and sign == '/' and num2 == 229:
print('913/229 = 3.98689956332')
if num1 == 913 and sign == '/' and num2 == 230:
print('913/230 = 3.96956521739')
if num1 == 913 and sign == '/' and num2 == 231:
print('913/231 = 3.95238095238')
if num1 == 913 and sign == '/' and num2 == 232:
print('913/232 = 3.93534482759')
if num1 == 913 and sign == '/' and num2 == 233:
print('913/233 = 3.91845493562')
if num1 == 913 and sign == '/' and num2 == 234:
print('913/234 = 3.90170940171')
if num1 == 913 and sign == '/' and num2 == 235:
print('913/235 = 3.88510638298')
if num1 == 913 and sign == '/' and num2 == 236:
print('913/236 = 3.8686440678')
if num1 == 913 and sign == '/' and num2 == 237:
print('913/237 = 3.85232067511')
if num1 == 913 and sign == '/' and num2 == 238:
print('913/238 = 3.83613445378')
if num1 == 913 and sign == '/' and num2 == 239:
print('913/239 = 3.82008368201')
if num1 == 913 and sign == '/' and num2 == 240:
print('913/240 = 3.80416666667')
if num1 == 913 and sign == '/' and num2 == 241:
print('913/241 = 3.78838174274')
if num1 == 913 and sign == '/' and num2 == 242:
print('913/242 = 3.77272727273')
if num1 == 913 and sign == '/' and num2 == 243:
print('913/243 = 3.75720164609')
if num1 == 913 and sign == '/' and num2 == 244:
print('913/244 = 3.74180327869')
if num1 == 913 and sign == '/' and num2 == 245:
print('913/245 = 3.72653061224')
if num1 == 913 and sign == '/' and num2 == 246:
print('913/246 = 3.71138211382')
if num1 == 913 and sign == '/' and num2 == 247:
print('913/247 = 3.6963562753')
if num1 == 913 and sign == '/' and num2 == 248:
print('913/248 = 3.6814516129')
if num1 == 913 and sign == '/' and num2 == 249:
print('913/249 = 3.66666666667')
if num1 == 914 and sign == '/' and num2 == 200:
print('914/200 = 4.57')
if num1 == 914 and sign == '/' and num2 == 201:
print('914/201 = 4.54726368159')
if num1 == 914 and sign == '/' and num2 == 202:
print('914/202 = 4.52475247525')
if num1 == 914 and sign == '/' and num2 == 203:
print('914/203 = 4.50246305419')
if num1 == 914 and sign == '/' and num2 == 204:
print('914/204 = 4.48039215686')
if num1 == 914 and sign == '/' and num2 == 205:
print('914/205 = 4.45853658537')
if num1 == 914 and sign == '/' and num2 == 206:
print('914/206 = 4.43689320388')
if num1 == 914 and sign == '/' and num2 == 207:
print('914/207 = 4.4154589372')
if num1 == 914 and sign == '/' and num2 == 208:
print('914/208 = 4.39423076923')
if num1 == 914 and sign == '/' and num2 == 209:
print('914/209 = 4.37320574163')
if num1 == 914 and sign == '/' and num2 == 210:
print('914/210 = 4.35238095238')
if num1 == 914 and sign == '/' and num2 == 211:
print('914/211 = 4.3317535545')
if num1 == 914 and sign == '/' and num2 == 212:
print('914/212 = 4.31132075472')
if num1 == 914 and sign == '/' and num2 == 213:
print('914/213 = 4.29107981221')
if num1 == 914 and sign == '/' and num2 == 214:
print('914/214 = 4.27102803738')
if num1 == 914 and sign == '/' and num2 == 215:
print('914/215 = 4.2511627907')
if num1 == 914 and sign == '/' and num2 == 216:
print('914/216 = 4.23148148148')
if num1 == 914 and sign == '/' and num2 == 217:
print('914/217 = 4.21198156682')
if num1 == 914 and sign == '/' and num2 == 218:
print('914/218 = 4.19266055046')
if num1 == 914 and sign == '/' and num2 == 219:
print('914/219 = 4.17351598174')
if num1 == 914 and sign == '/' and num2 == 220:
print('914/220 = 4.15454545455')
if num1 == 914 and sign == '/' and num2 == 221:
print('914/221 = 4.13574660633')
if num1 == 914 and sign == '/' and num2 == 222:
print('914/222 = 4.11711711712')
if num1 == 914 and sign == '/' and num2 == 223:
print('914/223 = 4.09865470852')
if num1 == 914 and sign == '/' and num2 == 224:
print('914/224 = 4.08035714286')
if num1 == 914 and sign == '/' and num2 == 225:
print('914/225 = 4.06222222222')
if num1 == 914 and sign == '/' and num2 == 226:
print('914/226 = 4.04424778761')
if num1 == 914 and sign == '/' and num2 == 227:
print('914/227 = 4.02643171806')
if num1 == 914 and sign == '/' and num2 == 228:
print('914/228 = 4.00877192982')
if num1 == 914 and sign == '/' and num2 == 229:
print('914/229 = 3.99126637555')
if num1 == 914 and sign == '/' and num2 == 230:
print('914/230 = 3.97391304348')
if num1 == 914 and sign == '/' and num2 == 231:
print('914/231 = 3.95670995671')
if num1 == 914 and sign == '/' and num2 == 232:
print('914/232 = 3.93965517241')
if num1 == 914 and sign == '/' and num2 == 233:
print('914/233 = 3.92274678112')
if num1 == 914 and sign == '/' and num2 == 234:
print('914/234 = 3.90598290598')
if num1 == 914 and sign == '/' and num2 == 235:
print('914/235 = 3.88936170213')
if num1 == 914 and sign == '/' and num2 == 236:
print('914/236 = 3.87288135593')
if num1 == 914 and sign == '/' and num2 == 237:
print('914/237 = 3.85654008439')
if num1 == 914 and sign == '/' and num2 == 238:
print('914/238 = 3.84033613445')
if num1 == 914 and sign == '/' and num2 == 239:
print('914/239 = 3.82426778243')
if num1 == 914 and sign == '/' and num2 == 240:
print('914/240 = 3.80833333333')
if num1 == 914 and sign == '/' and num2 == 241:
print('914/241 = 3.79253112033')
if num1 == 914 and sign == '/' and num2 == 242:
print('914/242 = 3.77685950413')
if num1 == 914 and sign == '/' and num2 == 243:
print('914/243 = 3.76131687243')
if num1 == 914 and sign == '/' and num2 == 244:
print('914/244 = 3.74590163934')
if num1 == 914 and sign == '/' and num2 == 245:
print('914/245 = 3.7306122449')
if num1 == 914 and sign == '/' and num2 == 246:
print('914/246 = 3.71544715447')
if num1 == 914 and sign == '/' and num2 == 247:
print('914/247 = 3.7004048583')
if num1 == 914 and sign == '/' and num2 == 248:
print('914/248 = 3.68548387097')
if num1 == 914 and sign == '/' and num2 == 249:
print('914/249 = 3.67068273092')
if num1 == 915 and sign == '/' and num2 == 200:
print('915/200 = 4.575')
if num1 == 915 and sign == '/' and num2 == 201:
print('915/201 = 4.55223880597')
if num1 == 915 and sign == '/' and num2 == 202:
print('915/202 = 4.5297029703')
if num1 == 915 and sign == '/' and num2 == 203:
print('915/203 = 4.50738916256')
if num1 == 915 and sign == '/' and num2 == 204:
print('915/204 = 4.48529411765')
if num1 == 915 and sign == '/' and num2 == 205:
print('915/205 = 4.46341463415')
if num1 == 915 and sign == '/' and num2 == 206:
print('915/206 = 4.44174757282')
if num1 == 915 and sign == '/' and num2 == 207:
print('915/207 = 4.42028985507')
if num1 == 915 and sign == '/' and num2 == 208:
print('915/208 = 4.39903846154')
if num1 == 915 and sign == '/' and num2 == 209:
print('915/209 = 4.37799043062')
if num1 == 915 and sign == '/' and num2 == 210:
print('915/210 = 4.35714285714')
if num1 == 915 and sign == '/' and num2 == 211:
print('915/211 = 4.336492891')
if num1 == 915 and sign == '/' and num2 == 212:
print('915/212 = 4.31603773585')
if num1 == 915 and sign == '/' and num2 == 213:
print('915/213 = 4.29577464789')
if num1 == 915 and sign == '/' and num2 == 214:
print('915/214 = 4.27570093458')
if num1 == 915 and sign == '/' and num2 == 215:
print('915/215 = 4.25581395349')
if num1 == 915 and sign == '/' and num2 == 216:
print('915/216 = 4.23611111111')
if num1 == 915 and sign == '/' and num2 == 217:
print('915/217 = 4.21658986175')
if num1 == 915 and sign == '/' and num2 == 218:
print('915/218 = 4.19724770642')
if num1 == 915 and sign == '/' and num2 == 219:
print('915/219 = 4.17808219178')
if num1 == 915 and sign == '/' and num2 == 220:
print('915/220 = 4.15909090909')
if num1 == 915 and sign == '/' and num2 == 221:
print('915/221 = 4.14027149321')
if num1 == 915 and sign == '/' and num2 == 222:
print('915/222 = 4.12162162162')
if num1 == 915 and sign == '/' and num2 == 223:
print('915/223 = 4.10313901345')
if num1 == 915 and sign == '/' and num2 == 224:
print('915/224 = 4.08482142857')
if num1 == 915 and sign == '/' and num2 == 225:
print('915/225 = 4.06666666667')
if num1 == 915 and sign == '/' and num2 == 226:
print('915/226 = 4.04867256637')
if num1 == 915 and sign == '/' and num2 == 227:
print('915/227 = 4.03083700441')
if num1 == 915 and sign == '/' and num2 == 228:
print('915/228 = 4.01315789474')
if num1 == 915 and sign == '/' and num2 == 229:
print('915/229 = 3.99563318777')
if num1 == 915 and sign == '/' and num2 == 230:
print('915/230 = 3.97826086957')
if num1 == 915 and sign == '/' and num2 == 231:
print('915/231 = 3.96103896104')
if num1 == 915 and sign == '/' and num2 == 232:
print('915/232 = 3.94396551724')
if num1 == 915 and sign == '/' and num2 == 233:
print('915/233 = 3.92703862661')
if num1 == 915 and sign == '/' and num2 == 234:
print('915/234 = 3.91025641026')
if num1 == 915 and sign == '/' and num2 == 235:
print('915/235 = 3.89361702128')
if num1 == 915 and sign == '/' and num2 == 236:
print('915/236 = 3.87711864407')
if num1 == 915 and sign == '/' and num2 == 237:
print('915/237 = 3.86075949367')
if num1 == 915 and sign == '/' and num2 == 238:
print('915/238 = 3.84453781513')
if num1 == 915 and sign == '/' and num2 == 239:
print('915/239 = 3.82845188285')
if num1 == 915 and sign == '/' and num2 == 240:
print('915/240 = 3.8125')
if num1 == 915 and sign == '/' and num2 == 241:
print('915/241 = 3.79668049793')
if num1 == 915 and sign == '/' and num2 == 242:
print('915/242 = 3.78099173554')
if num1 == 915 and sign == '/' and num2 == 243:
print('915/243 = 3.76543209877')
if num1 == 915 and sign == '/' and num2 == 244:
print('915/244 = 3.75')
if num1 == 915 and sign == '/' and num2 == 245:
print('915/245 = 3.73469387755')
if num1 == 915 and sign == '/' and num2 == 246:
print('915/246 = 3.71951219512')
if num1 == 915 and sign == '/' and num2 == 247:
print('915/247 = 3.7044534413')
if num1 == 915 and sign == '/' and num2 == 248:
print('915/248 = 3.68951612903')
if num1 == 915 and sign == '/' and num2 == 249:
print('915/249 = 3.67469879518')
if num1 == 916 and sign == '/' and num2 == 200:
print('916/200 = 4.58')
if num1 == 916 and sign == '/' and num2 == 201:
print('916/201 = 4.55721393035')
if num1 == 916 and sign == '/' and num2 == 202:
print('916/202 = 4.53465346535')
if num1 == 916 and sign == '/' and num2 == 203:
print('916/203 = 4.51231527094')
if num1 == 916 and sign == '/' and num2 == 204:
print('916/204 = 4.49019607843')
if num1 == 916 and sign == '/' and num2 == 205:
print('916/205 = 4.46829268293')
if num1 == 916 and sign == '/' and num2 == 206:
print('916/206 = 4.44660194175')
if num1 == 916 and sign == '/' and num2 == 207:
print('916/207 = 4.42512077295')
if num1 == 916 and sign == '/' and num2 == 208:
print('916/208 = 4.40384615385')
if num1 == 916 and sign == '/' and num2 == 209:
print('916/209 = 4.38277511962')
if num1 == 916 and sign == '/' and num2 == 210:
print('916/210 = 4.3619047619')
if num1 == 916 and sign == '/' and num2 == 211:
print('916/211 = 4.34123222749')
if num1 == 916 and sign == '/' and num2 == 212:
print('916/212 = 4.32075471698')
if num1 == 916 and sign == '/' and num2 == 213:
print('916/213 = 4.30046948357')
if num1 == 916 and sign == '/' and num2 == 214:
print('916/214 = 4.28037383178')
if num1 == 916 and sign == '/' and num2 == 215:
print('916/215 = 4.26046511628')
if num1 == 916 and sign == '/' and num2 == 216:
print('916/216 = 4.24074074074')
if num1 == 916 and sign == '/' and num2 == 217:
print('916/217 = 4.22119815668')
if num1 == 916 and sign == '/' and num2 == 218:
print('916/218 = 4.20183486239')
if num1 == 916 and sign == '/' and num2 == 219:
print('916/219 = 4.18264840183')
if num1 == 916 and sign == '/' and num2 == 220:
print('916/220 = 4.16363636364')
if num1 == 916 and sign == '/' and num2 == 221:
print('916/221 = 4.14479638009')
if num1 == 916 and sign == '/' and num2 == 222:
print('916/222 = 4.12612612613')
if num1 == 916 and sign == '/' and num2 == 223:
print('916/223 = 4.10762331839')
if num1 == 916 and sign == '/' and num2 == 224:
print('916/224 = 4.08928571429')
if num1 == 916 and sign == '/' and num2 == 225:
print('916/225 = 4.07111111111')
if num1 == 916 and sign == '/' and num2 == 226:
print('916/226 = 4.05309734513')
if num1 == 916 and sign == '/' and num2 == 227:
print('916/227 = 4.03524229075')
if num1 == 916 and sign == '/' and num2 == 228:
print('916/228 = 4.01754385965')
if num1 == 916 and sign == '/' and num2 == 229:
print('916/229 = 4.0')
if num1 == 916 and sign == '/' and num2 == 230:
print('916/230 = 3.98260869565')
if num1 == 916 and sign == '/' and num2 == 231:
print('916/231 = 3.96536796537')
if num1 == 916 and sign == '/' and num2 == 232:
print('916/232 = 3.94827586207')
if num1 == 916 and sign == '/' and num2 == 233:
print('916/233 = 3.9313304721')
if num1 == 916 and sign == '/' and num2 == 234:
print('916/234 = 3.91452991453')
if num1 == 916 and sign == '/' and num2 == 235:
print('916/235 = 3.89787234043')
if num1 == 916 and sign == '/' and num2 == 236:
print('916/236 = 3.8813559322')
if num1 == 916 and sign == '/' and num2 == 237:
print('916/237 = 3.86497890295')
if num1 == 916 and sign == '/' and num2 == 238:
print('916/238 = 3.8487394958')
if num1 == 916 and sign == '/' and num2 == 239:
print('916/239 = 3.83263598326')
if num1 == 916 and sign == '/' and num2 == 240:
print('916/240 = 3.81666666667')
if num1 == 916 and sign == '/' and num2 == 241:
print('916/241 = 3.80082987552')
if num1 == 916 and sign == '/' and num2 == 242:
print('916/242 = 3.78512396694')
if num1 == 916 and sign == '/' and num2 == 243:
print('916/243 = 3.7695473251')
if num1 == 916 and sign == '/' and num2 == 244:
print('916/244 = 3.75409836066')
if num1 == 916 and sign == '/' and num2 == 245:
print('916/245 = 3.7387755102')
if num1 == 916 and sign == '/' and num2 == 246:
print('916/246 = 3.72357723577')
if num1 == 916 and sign == '/' and num2 == 247:
print('916/247 = 3.70850202429')
if num1 == 916 and sign == '/' and num2 == 248:
print('916/248 = 3.6935483871')
if num1 == 916 and sign == '/' and num2 == 249:
print('916/249 = 3.67871485944')
if num1 == 917 and sign == '/' and num2 == 200:
print('917/200 = 4.585')
if num1 == 917 and sign == '/' and num2 == 201:
print('917/201 = 4.56218905473')
if num1 == 917 and sign == '/' and num2 == 202:
print('917/202 = 4.5396039604')
if num1 == 917 and sign == '/' and num2 == 203:
print('917/203 = 4.51724137931')
if num1 == 917 and sign == '/' and num2 == 204:
print('917/204 = 4.49509803922')
if num1 == 917 and sign == '/' and num2 == 205:
print('917/205 = 4.47317073171')
if num1 == 917 and sign == '/' and num2 == 206:
print('917/206 = 4.45145631068')
if num1 == 917 and sign == '/' and num2 == 207:
print('917/207 = 4.42995169082')
if num1 == 917 and sign == '/' and num2 == 208:
print('917/208 = 4.40865384615')
if num1 == 917 and sign == '/' and num2 == 209:
print('917/209 = 4.38755980861')
if num1 == 917 and sign == '/' and num2 == 210:
print('917/210 = 4.36666666667')
if num1 == 917 and sign == '/' and num2 == 211:
print('917/211 = 4.34597156398')
if num1 == 917 and sign == '/' and num2 == 212:
print('917/212 = 4.32547169811')
if num1 == 917 and sign == '/' and num2 == 213:
print('917/213 = 4.30516431925')
if num1 == 917 and sign == '/' and num2 == 214:
print('917/214 = 4.28504672897')
if num1 == 917 and sign == '/' and num2 == 215:
print('917/215 = 4.26511627907')
if num1 == 917 and sign == '/' and num2 == 216:
print('917/216 = 4.24537037037')
if num1 == 917 and sign == '/' and num2 == 217:
print('917/217 = 4.22580645161')
if num1 == 917 and sign == '/' and num2 == 218:
print('917/218 = 4.20642201835')
if num1 == 917 and sign == '/' and num2 == 219:
print('917/219 = 4.18721461187')
if num1 == 917 and sign == '/' and num2 == 220:
print('917/220 = 4.16818181818')
if num1 == 917 and sign == '/' and num2 == 221:
print('917/221 = 4.14932126697')
if num1 == 917 and sign == '/' and num2 == 222:
print('917/222 = 4.13063063063')
if num1 == 917 and sign == '/' and num2 == 223:
print('917/223 = 4.11210762332')
if num1 == 917 and sign == '/' and num2 == 224:
print('917/224 = 4.09375')
if num1 == 917 and sign == '/' and num2 == 225:
print('917/225 = 4.07555555556')
if num1 == 917 and sign == '/' and num2 == 226:
print('917/226 = 4.05752212389')
if num1 == 917 and sign == '/' and num2 == 227:
print('917/227 = 4.03964757709')
if num1 == 917 and sign == '/' and num2 == 228:
print('917/228 = 4.02192982456')
if num1 == 917 and sign == '/' and num2 == 229:
print('917/229 = 4.00436681223')
if num1 == 917 and sign == '/' and num2 == 230:
print('917/230 = 3.98695652174')
if num1 == 917 and sign == '/' and num2 == 231:
print('917/231 = 3.9696969697')
if num1 == 917 and sign == '/' and num2 == 232:
print('917/232 = 3.9525862069')
if num1 == 917 and sign == '/' and num2 == 233:
print('917/233 = 3.9356223176')
if num1 == 917 and sign == '/' and num2 == 234:
print('917/234 = 3.9188034188')
if num1 == 917 and sign == '/' and num2 == 235:
print('917/235 = 3.90212765957')
if num1 == 917 and sign == '/' and num2 == 236:
print('917/236 = 3.88559322034')
if num1 == 917 and sign == '/' and num2 == 237:
print('917/237 = 3.86919831224')
if num1 == 917 and sign == '/' and num2 == 238:
print('917/238 = 3.85294117647')
if num1 == 917 and sign == '/' and num2 == 239:
print('917/239 = 3.83682008368')
if num1 == 917 and sign == '/' and num2 == 240:
print('917/240 = 3.82083333333')
if num1 == 917 and sign == '/' and num2 == 241:
print('917/241 = 3.80497925311')
if num1 == 917 and sign == '/' and num2 == 242:
print('917/242 = 3.78925619835')
if num1 == 917 and sign == '/' and num2 == 243:
print('917/243 = 3.77366255144')
if num1 == 917 and sign == '/' and num2 == 244:
print('917/244 = 3.75819672131')
if num1 == 917 and sign == '/' and num2 == 245:
print('917/245 = 3.74285714286')
if num1 == 917 and sign == '/' and num2 == 246:
print('917/246 = 3.72764227642')
if num1 == 917 and sign == '/' and num2 == 247:
print('917/247 = 3.71255060729')
if num1 == 917 and sign == '/' and num2 == 248:
print('917/248 = 3.69758064516')
if num1 == 917 and sign == '/' and num2 == 249:
print('917/249 = 3.68273092369')
if num1 == 918 and sign == '/' and num2 == 200:
print('918/200 = 4.59')
if num1 == 918 and sign == '/' and num2 == 201:
print('918/201 = 4.5671641791')
if num1 == 918 and sign == '/' and num2 == 202:
print('918/202 = 4.54455445545')
if num1 == 918 and sign == '/' and num2 == 203:
print('918/203 = 4.52216748768')
if num1 == 918 and sign == '/' and num2 == 204:
print('918/204 = 4.5')
if num1 == 918 and sign == '/' and num2 == 205:
print('918/205 = 4.47804878049')
if num1 == 918 and sign == '/' and num2 == 206:
print('918/206 = 4.45631067961')
if num1 == 918 and sign == '/' and num2 == 207:
print('918/207 = 4.4347826087')
if num1 == 918 and sign == '/' and num2 == 208:
print('918/208 = 4.41346153846')
if num1 == 918 and sign == '/' and num2 == 209:
print('918/209 = 4.39234449761')
if num1 == 918 and sign == '/' and num2 == 210:
print('918/210 = 4.37142857143')
if num1 == 918 and sign == '/' and num2 == 211:
print('918/211 = 4.35071090047')
if num1 == 918 and sign == '/' and num2 == 212:
print('918/212 = 4.33018867925')
if num1 == 918 and sign == '/' and num2 == 213:
print('918/213 = 4.30985915493')
if num1 == 918 and sign == '/' and num2 == 214:
print('918/214 = 4.28971962617')
if num1 == 918 and sign == '/' and num2 == 215:
print('918/215 = 4.26976744186')
if num1 == 918 and sign == '/' and num2 == 216:
print('918/216 = 4.25')
if num1 == 918 and sign == '/' and num2 == 217:
print('918/217 = 4.23041474654')
if num1 == 918 and sign == '/' and num2 == 218:
print('918/218 = 4.21100917431')
if num1 == 918 and sign == '/' and num2 == 219:
print('918/219 = 4.19178082192')
if num1 == 918 and sign == '/' and num2 == 220:
print('918/220 = 4.17272727273')
if num1 == 918 and sign == '/' and num2 == 221:
print('918/221 = 4.15384615385')
if num1 == 918 and sign == '/' and num2 == 222:
print('918/222 = 4.13513513514')
if num1 == 918 and sign == '/' and num2 == 223:
print('918/223 = 4.11659192825')
if num1 == 918 and sign == '/' and num2 == 224:
print('918/224 = 4.09821428571')
if num1 == 918 and sign == '/' and num2 == 225:
print('918/225 = 4.08')
if num1 == 918 and sign == '/' and num2 == 226:
print('918/226 = 4.06194690265')
if num1 == 918 and sign == '/' and num2 == 227:
print('918/227 = 4.04405286344')
if num1 == 918 and sign == '/' and num2 == 228:
print('918/228 = 4.02631578947')
if num1 == 918 and sign == '/' and num2 == 229:
print('918/229 = 4.00873362445')
if num1 == 918 and sign == '/' and num2 == 230:
print('918/230 = 3.99130434783')
if num1 == 918 and sign == '/' and num2 == 231:
print('918/231 = 3.97402597403')
if num1 == 918 and sign == '/' and num2 == 232:
print('918/232 = 3.95689655172')
if num1 == 918 and sign == '/' and num2 == 233:
print('918/233 = 3.93991416309')
if num1 == 918 and sign == '/' and num2 == 234:
print('918/234 = 3.92307692308')
if num1 == 918 and sign == '/' and num2 == 235:
print('918/235 = 3.90638297872')
if num1 == 918 and sign == '/' and num2 == 236:
print('918/236 = 3.88983050847')
if num1 == 918 and sign == '/' and num2 == 237:
print('918/237 = 3.87341772152')
if num1 == 918 and sign == '/' and num2 == 238:
print('918/238 = 3.85714285714')
if num1 == 918 and sign == '/' and num2 == 239:
print('918/239 = 3.8410041841')
if num1 == 918 and sign == '/' and num2 == 240:
print('918/240 = 3.825')
if num1 == 918 and sign == '/' and num2 == 241:
print('918/241 = 3.80912863071')
if num1 == 918 and sign == '/' and num2 == 242:
print('918/242 = 3.79338842975')
if num1 == 918 and sign == '/' and num2 == 243:
print('918/243 = 3.77777777778')
if num1 == 918 and sign == '/' and num2 == 244:
print('918/244 = 3.76229508197')
if num1 == 918 and sign == '/' and num2 == 245:
print('918/245 = 3.74693877551')
if num1 == 918 and sign == '/' and num2 == 246:
print('918/246 = 3.73170731707')
if num1 == 918 and sign == '/' and num2 == 247:
print('918/247 = 3.71659919028')
if num1 == 918 and sign == '/' and num2 == 248:
print('918/248 = 3.70161290323')
if num1 == 918 and sign == '/' and num2 == 249:
print('918/249 = 3.68674698795')
if num1 == 919 and sign == '/' and num2 == 200:
print('919/200 = 4.595')
if num1 == 919 and sign == '/' and num2 == 201:
print('919/201 = 4.57213930348')
if num1 == 919 and sign == '/' and num2 == 202:
print('919/202 = 4.5495049505')
if num1 == 919 and sign == '/' and num2 == 203:
print('919/203 = 4.52709359606')
if num1 == 919 and sign == '/' and num2 == 204:
print('919/204 = 4.50490196078')
if num1 == 919 and sign == '/' and num2 == 205:
print('919/205 = 4.48292682927')
if num1 == 919 and sign == '/' and num2 == 206:
print('919/206 = 4.46116504854')
if num1 == 919 and sign == '/' and num2 == 207:
print('919/207 = 4.43961352657')
if num1 == 919 and sign == '/' and num2 == 208:
print('919/208 = 4.41826923077')
if num1 == 919 and sign == '/' and num2 == 209:
print('919/209 = 4.3971291866')
if num1 == 919 and sign == '/' and num2 == 210:
print('919/210 = 4.37619047619')
if num1 == 919 and sign == '/' and num2 == 211:
print('919/211 = 4.35545023697')
if num1 == 919 and sign == '/' and num2 == 212:
print('919/212 = 4.33490566038')
if num1 == 919 and sign == '/' and num2 == 213:
print('919/213 = 4.31455399061')
if num1 == 919 and sign == '/' and num2 == 214:
print('919/214 = 4.29439252336')
if num1 == 919 and sign == '/' and num2 == 215:
print('919/215 = 4.27441860465')
if num1 == 919 and sign == '/' and num2 == 216:
print('919/216 = 4.25462962963')
if num1 == 919 and sign == '/' and num2 == 217:
print('919/217 = 4.23502304147')
if num1 == 919 and sign == '/' and num2 == 218:
print('919/218 = 4.21559633028')
if num1 == 919 and sign == '/' and num2 == 219:
print('919/219 = 4.19634703196')
if num1 == 919 and sign == '/' and num2 == 220:
print('919/220 = 4.17727272727')
if num1 == 919 and sign == '/' and num2 == 221:
print('919/221 = 4.15837104072')
if num1 == 919 and sign == '/' and num2 == 222:
print('919/222 = 4.13963963964')
if num1 == 919 and sign == '/' and num2 == 223:
print('919/223 = 4.12107623318')
if num1 == 919 and sign == '/' and num2 == 224:
print('919/224 = 4.10267857143')
if num1 == 919 and sign == '/' and num2 == 225:
print('919/225 = 4.08444444444')
if num1 == 919 and sign == '/' and num2 == 226:
print('919/226 = 4.06637168142')
if num1 == 919 and sign == '/' and num2 == 227:
print('919/227 = 4.04845814978')
if num1 == 919 and sign == '/' and num2 == 228:
print('919/228 = 4.03070175439')
if num1 == 919 and sign == '/' and num2 == 229:
print('919/229 = 4.01310043668')
if num1 == 919 and sign == '/' and num2 == 230:
print('919/230 = 3.99565217391')
if num1 == 919 and sign == '/' and num2 == 231:
print('919/231 = 3.97835497835')
if num1 == 919 and sign == '/' and num2 == 232:
print('919/232 = 3.96120689655')
if num1 == 919 and sign == '/' and num2 == 233:
print('919/233 = 3.94420600858')
if num1 == 919 and sign == '/' and num2 == 234:
print('919/234 = 3.92735042735')
if num1 == 919 and sign == '/' and num2 == 235:
print('919/235 = 3.91063829787')
if num1 == 919 and sign == '/' and num2 == 236:
print('919/236 = 3.89406779661')
if num1 == 919 and sign == '/' and num2 == 237:
print('919/237 = 3.8776371308')
if num1 == 919 and sign == '/' and num2 == 238:
print('919/238 = 3.86134453782')
if num1 == 919 and sign == '/' and num2 == 239:
print('919/239 = 3.84518828452')
if num1 == 919 and sign == '/' and num2 == 240:
print('919/240 = 3.82916666667')
if num1 == 919 and sign == '/' and num2 == 241:
print('919/241 = 3.8132780083')
if num1 == 919 and sign == '/' and num2 == 242:
print('919/242 = 3.79752066116')
if num1 == 919 and sign == '/' and num2 == 243:
print('919/243 = 3.78189300412')
if num1 == 919 and sign == '/' and num2 == 244:
print('919/244 = 3.76639344262')
if num1 == 919 and sign == '/' and num2 == 245:
print('919/245 = 3.75102040816')
if num1 == 919 and sign == '/' and num2 == 246:
print('919/246 = 3.73577235772')
if num1 == 919 and sign == '/' and num2 == 247:
print('919/247 = 3.72064777328')
if num1 == 919 and sign == '/' and num2 == 248:
print('919/248 = 3.70564516129')
if num1 == 919 and sign == '/' and num2 == 249:
print('919/249 = 3.69076305221')
if num1 == 920 and sign == '/' and num2 == 200:
print('920/200 = 4.6')
if num1 == 920 and sign == '/' and num2 == 201:
print('920/201 = 4.57711442786')
if num1 == 920 and sign == '/' and num2 == 202:
print('920/202 = 4.55445544554')
if num1 == 920 and sign == '/' and num2 == 203:
print('920/203 = 4.53201970443')
if num1 == 920 and sign == '/' and num2 == 204:
print('920/204 = 4.50980392157')
if num1 == 920 and sign == '/' and num2 == 205:
print('920/205 = 4.48780487805')
if num1 == 920 and sign == '/' and num2 == 206:
print('920/206 = 4.46601941748')
if num1 == 920 and sign == '/' and num2 == 207:
print('920/207 = 4.44444444444')
if num1 == 920 and sign == '/' and num2 == 208:
print('920/208 = 4.42307692308')
if num1 == 920 and sign == '/' and num2 == 209:
print('920/209 = 4.4019138756')
if num1 == 920 and sign == '/' and num2 == 210:
print('920/210 = 4.38095238095')
if num1 == 920 and sign == '/' and num2 == 211:
print('920/211 = 4.36018957346')
if num1 == 920 and sign == '/' and num2 == 212:
print('920/212 = 4.33962264151')
if num1 == 920 and sign == '/' and num2 == 213:
print('920/213 = 4.31924882629')
if num1 == 920 and sign == '/' and num2 == 214:
print('920/214 = 4.29906542056')
if num1 == 920 and sign == '/' and num2 == 215:
print('920/215 = 4.27906976744')
if num1 == 920 and sign == '/' and num2 == 216:
print('920/216 = 4.25925925926')
if num1 == 920 and sign == '/' and num2 == 217:
print('920/217 = 4.23963133641')
if num1 == 920 and sign == '/' and num2 == 218:
print('920/218 = 4.22018348624')
if num1 == 920 and sign == '/' and num2 == 219:
print('920/219 = 4.20091324201')
if num1 == 920 and sign == '/' and num2 == 220:
print('920/220 = 4.18181818182')
if num1 == 920 and sign == '/' and num2 == 221:
print('920/221 = 4.1628959276')
if num1 == 920 and sign == '/' and num2 == 222:
print('920/222 = 4.14414414414')
if num1 == 920 and sign == '/' and num2 == 223:
print('920/223 = 4.12556053812')
if num1 == 920 and sign == '/' and num2 == 224:
print('920/224 = 4.10714285714')
if num1 == 920 and sign == '/' and num2 == 225:
print('920/225 = 4.08888888889')
if num1 == 920 and sign == '/' and num2 == 226:
print('920/226 = 4.07079646018')
if num1 == 920 and sign == '/' and num2 == 227:
print('920/227 = 4.05286343612')
if num1 == 920 and sign == '/' and num2 == 228:
print('920/228 = 4.0350877193')
if num1 == 920 and sign == '/' and num2 == 229:
print('920/229 = 4.01746724891')
if num1 == 920 and sign == '/' and num2 == 230:
print('920/230 = 4.0')
if num1 == 920 and sign == '/' and num2 == 231:
print('920/231 = 3.98268398268')
if num1 == 920 and sign == '/' and num2 == 232:
print('920/232 = 3.96551724138')
if num1 == 920 and sign == '/' and num2 == 233:
print('920/233 = 3.94849785408')
if num1 == 920 and sign == '/' and num2 == 234:
print('920/234 = 3.93162393162')
if num1 == 920 and sign == '/' and num2 == 235:
print('920/235 = 3.91489361702')
if num1 == 920 and sign == '/' and num2 == 236:
print('920/236 = 3.89830508475')
if num1 == 920 and sign == '/' and num2 == 237:
print('920/237 = 3.88185654008')
if num1 == 920 and sign == '/' and num2 == 238:
print('920/238 = 3.86554621849')
if num1 == 920 and sign == '/' and num2 == 239:
print('920/239 = 3.84937238494')
if num1 == 920 and sign == '/' and num2 == 240:
print('920/240 = 3.83333333333')
if num1 == 920 and sign == '/' and num2 == 241:
print('920/241 = 3.81742738589')
if num1 == 920 and sign == '/' and num2 == 242:
print('920/242 = 3.80165289256')
if num1 == 920 and sign == '/' and num2 == 243:
print('920/243 = 3.78600823045')
if num1 == 920 and sign == '/' and num2 == 244:
print('920/244 = 3.77049180328')
if num1 == 920 and sign == '/' and num2 == 245:
print('920/245 = 3.75510204082')
if num1 == 920 and sign == '/' and num2 == 246:
print('920/246 = 3.73983739837')
if num1 == 920 and sign == '/' and num2 == 247:
print('920/247 = 3.72469635628')
if num1 == 920 and sign == '/' and num2 == 248:
print('920/248 = 3.70967741935')
if num1 == 920 and sign == '/' and num2 == 249:
print('920/249 = 3.69477911647')
if num1 == 921 and sign == '/' and num2 == 200:
print('921/200 = 4.605')
if num1 == 921 and sign == '/' and num2 == 201:
print('921/201 = 4.58208955224')
if num1 == 921 and sign == '/' and num2 == 202:
print('921/202 = 4.55940594059')
if num1 == 921 and sign == '/' and num2 == 203:
print('921/203 = 4.53694581281')
if num1 == 921 and sign == '/' and num2 == 204:
print('921/204 = 4.51470588235')
if num1 == 921 and sign == '/' and num2 == 205:
print('921/205 = 4.49268292683')
if num1 == 921 and sign == '/' and num2 == 206:
print('921/206 = 4.47087378641')
if num1 == 921 and sign == '/' and num2 == 207:
print('921/207 = 4.44927536232')
if num1 == 921 and sign == '/' and num2 == 208:
print('921/208 = 4.42788461538')
if num1 == 921 and sign == '/' and num2 == 209:
print('921/209 = 4.40669856459')
if num1 == 921 and sign == '/' and num2 == 210:
print('921/210 = 4.38571428571')
if num1 == 921 and sign == '/' and num2 == 211:
print('921/211 = 4.36492890995')
if num1 == 921 and sign == '/' and num2 == 212:
print('921/212 = 4.34433962264')
if num1 == 921 and sign == '/' and num2 == 213:
print('921/213 = 4.32394366197')
if num1 == 921 and sign == '/' and num2 == 214:
print('921/214 = 4.30373831776')
if num1 == 921 and sign == '/' and num2 == 215:
print('921/215 = 4.28372093023')
if num1 == 921 and sign == '/' and num2 == 216:
print('921/216 = 4.26388888889')
if num1 == 921 and sign == '/' and num2 == 217:
print('921/217 = 4.24423963134')
if num1 == 921 and sign == '/' and num2 == 218:
print('921/218 = 4.2247706422')
if num1 == 921 and sign == '/' and num2 == 219:
print('921/219 = 4.20547945205')
if num1 == 921 and sign == '/' and num2 == 220:
print('921/220 = 4.18636363636')
if num1 == 921 and sign == '/' and num2 == 221:
print('921/221 = 4.16742081448')
if num1 == 921 and sign == '/' and num2 == 222:
print('921/222 = 4.14864864865')
if num1 == 921 and sign == '/' and num2 == 223:
print('921/223 = 4.13004484305')
if num1 == 921 and sign == '/' and num2 == 224:
print('921/224 = 4.11160714286')
if num1 == 921 and sign == '/' and num2 == 225:
print('921/225 = 4.09333333333')
if num1 == 921 and sign == '/' and num2 == 226:
print('921/226 = 4.07522123894')
if num1 == 921 and sign == '/' and num2 == 227:
print('921/227 = 4.05726872247')
if num1 == 921 and sign == '/' and num2 == 228:
print('921/228 = 4.03947368421')
if num1 == 921 and sign == '/' and num2 == 229:
print('921/229 = 4.02183406114')
if num1 == 921 and sign == '/' and num2 == 230:
print('921/230 = 4.00434782609')
if num1 == 921 and sign == '/' and num2 == 231:
print('921/231 = 3.98701298701')
if num1 == 921 and sign == '/' and num2 == 232:
print('921/232 = 3.96982758621')
if num1 == 921 and sign == '/' and num2 == 233:
print('921/233 = 3.95278969957')
if num1 == 921 and sign == '/' and num2 == 234:
print('921/234 = 3.9358974359')
if num1 == 921 and sign == '/' and num2 == 235:
print('921/235 = 3.91914893617')
if num1 == 921 and sign == '/' and num2 == 236:
print('921/236 = 3.90254237288')
if num1 == 921 and sign == '/' and num2 == 237:
print('921/237 = 3.88607594937')
if num1 == 921 and sign == '/' and num2 == 238:
print('921/238 = 3.86974789916')
if num1 == 921 and sign == '/' and num2 == 239:
print('921/239 = 3.85355648536')
if num1 == 921 and sign == '/' and num2 == 240:
print('921/240 = 3.8375')
if num1 == 921 and sign == '/' and num2 == 241:
print('921/241 = 3.82157676349')
if num1 == 921 and sign == '/' and num2 == 242:
print('921/242 = 3.80578512397')
if num1 == 921 and sign == '/' and num2 == 243:
print('921/243 = 3.79012345679')
if num1 == 921 and sign == '/' and num2 == 244:
print('921/244 = 3.77459016393')
if num1 == 921 and sign == '/' and num2 == 245:
print('921/245 = 3.75918367347')
if num1 == 921 and sign == '/' and num2 == 246:
print('921/246 = 3.74390243902')
if num1 == 921 and sign == '/' and num2 == 247:
print('921/247 = 3.72874493927')
if num1 == 921 and sign == '/' and num2 == 248:
print('921/248 = 3.71370967742')
if num1 == 921 and sign == '/' and num2 == 249:
print('921/249 = 3.69879518072')
if num1 == 922 and sign == '/' and num2 == 200:
print('922/200 = 4.61')
if num1 == 922 and sign == '/' and num2 == 201:
print('922/201 = 4.58706467662')
if num1 == 922 and sign == '/' and num2 == 202:
print('922/202 = 4.56435643564')
if num1 == 922 and sign == '/' and num2 == 203:
print('922/203 = 4.54187192118')
if num1 == 922 and sign == '/' and num2 == 204:
print('922/204 = 4.51960784314')
if num1 == 922 and sign == '/' and num2 == 205:
print('922/205 = 4.49756097561')
if num1 == 922 and sign == '/' and num2 == 206:
print('922/206 = 4.47572815534')
if num1 == 922 and sign == '/' and num2 == 207:
print('922/207 = 4.45410628019')
if num1 == 922 and sign == '/' and num2 == 208:
print('922/208 = 4.43269230769')
if num1 == 922 and sign == '/' and num2 == 209:
print('922/209 = 4.41148325359')
if num1 == 922 and sign == '/' and num2 == 210:
print('922/210 = 4.39047619048')
if num1 == 922 and sign == '/' and num2 == 211:
print('922/211 = 4.36966824645')
if num1 == 922 and sign == '/' and num2 == 212:
print('922/212 = 4.34905660377')
if num1 == 922 and sign == '/' and num2 == 213:
print('922/213 = 4.32863849765')
if num1 == 922 and sign == '/' and num2 == 214:
print('922/214 = 4.30841121495')
if num1 == 922 and sign == '/' and num2 == 215:
print('922/215 = 4.28837209302')
if num1 == 922 and sign == '/' and num2 == 216:
print('922/216 = 4.26851851852')
if num1 == 922 and sign == '/' and num2 == 217:
print('922/217 = 4.24884792627')
if num1 == 922 and sign == '/' and num2 == 218:
print('922/218 = 4.22935779817')
if num1 == 922 and sign == '/' and num2 == 219:
print('922/219 = 4.2100456621')
if num1 == 922 and sign == '/' and num2 == 220:
print('922/220 = 4.19090909091')
if num1 == 922 and sign == '/' and num2 == 221:
print('922/221 = 4.17194570136')
if num1 == 922 and sign == '/' and num2 == 222:
print('922/222 = 4.15315315315')
if num1 == 922 and sign == '/' and num2 == 223:
print('922/223 = 4.13452914798')
if num1 == 922 and sign == '/' and num2 == 224:
print('922/224 = 4.11607142857')
if num1 == 922 and sign == '/' and num2 == 225:
print('922/225 = 4.09777777778')
if num1 == 922 and sign == '/' and num2 == 226:
print('922/226 = 4.0796460177')
if num1 == 922 and sign == '/' and num2 == 227:
print('922/227 = 4.06167400881')
if num1 == 922 and sign == '/' and num2 == 228:
print('922/228 = 4.04385964912')
if num1 == 922 and sign == '/' and num2 == 229:
print('922/229 = 4.02620087336')
if num1 == 922 and sign == '/' and num2 == 230:
print('922/230 = 4.00869565217')
if num1 == 922 and sign == '/' and num2 == 231:
print('922/231 = 3.99134199134')
if num1 == 922 and sign == '/' and num2 == 232:
print('922/232 = 3.97413793103')
if num1 == 922 and sign == '/' and num2 == 233:
print('922/233 = 3.95708154506')
if num1 == 922 and sign == '/' and num2 == 234:
print('922/234 = 3.94017094017')
if num1 == 922 and sign == '/' and num2 == 235:
print('922/235 = 3.92340425532')
if num1 == 922 and sign == '/' and num2 == 236:
print('922/236 = 3.90677966102')
if num1 == 922 and sign == '/' and num2 == 237:
print('922/237 = 3.89029535865')
if num1 == 922 and sign == '/' and num2 == 238:
print('922/238 = 3.87394957983')
if num1 == 922 and sign == '/' and num2 == 239:
print('922/239 = 3.85774058577')
if num1 == 922 and sign == '/' and num2 == 240:
print('922/240 = 3.84166666667')
if num1 == 922 and sign == '/' and num2 == 241:
print('922/241 = 3.82572614108')
if num1 == 922 and sign == '/' and num2 == 242:
print('922/242 = 3.80991735537')
if num1 == 922 and sign == '/' and num2 == 243:
print('922/243 = 3.79423868313')
if num1 == 922 and sign == '/' and num2 == 244:
print('922/244 = 3.77868852459')
if num1 == 922 and sign == '/' and num2 == 245:
print('922/245 = 3.76326530612')
if num1 == 922 and sign == '/' and num2 == 246:
print('922/246 = 3.74796747967')
if num1 == 922 and sign == '/' and num2 == 247:
print('922/247 = 3.73279352227')
if num1 == 922 and sign == '/' and num2 == 248:
print('922/248 = 3.71774193548')
if num1 == 922 and sign == '/' and num2 == 249:
print('922/249 = 3.70281124498')
if num1 == 923 and sign == '/' and num2 == 200:
print('923/200 = 4.615')
if num1 == 923 and sign == '/' and num2 == 201:
print('923/201 = 4.592039801')
if num1 == 923 and sign == '/' and num2 == 202:
print('923/202 = 4.56930693069')
if num1 == 923 and sign == '/' and num2 == 203:
print('923/203 = 4.54679802956')
if num1 == 923 and sign == '/' and num2 == 204:
print('923/204 = 4.52450980392')
if num1 == 923 and sign == '/' and num2 == 205:
print('923/205 = 4.50243902439')
if num1 == 923 and sign == '/' and num2 == 206:
print('923/206 = 4.48058252427')
if num1 == 923 and sign == '/' and num2 == 207:
print('923/207 = 4.45893719807')
if num1 == 923 and sign == '/' and num2 == 208:
print('923/208 = 4.4375')
if num1 == 923 and sign == '/' and num2 == 209:
print('923/209 = 4.41626794258')
if num1 == 923 and sign == '/' and num2 == 210:
print('923/210 = 4.39523809524')
if num1 == 923 and sign == '/' and num2 == 211:
print('923/211 = 4.37440758294')
if num1 == 923 and sign == '/' and num2 == 212:
print('923/212 = 4.35377358491')
if num1 == 923 and sign == '/' and num2 == 213:
print('923/213 = 4.33333333333')
if num1 == 923 and sign == '/' and num2 == 214:
print('923/214 = 4.31308411215')
if num1 == 923 and sign == '/' and num2 == 215:
print('923/215 = 4.29302325581')
if num1 == 923 and sign == '/' and num2 == 216:
print('923/216 = 4.27314814815')
if num1 == 923 and sign == '/' and num2 == 217:
print('923/217 = 4.2534562212')
if num1 == 923 and sign == '/' and num2 == 218:
print('923/218 = 4.23394495413')
if num1 == 923 and sign == '/' and num2 == 219:
print('923/219 = 4.21461187215')
if num1 == 923 and sign == '/' and num2 == 220:
print('923/220 = 4.19545454545')
if num1 == 923 and sign == '/' and num2 == 221:
print('923/221 = 4.17647058824')
if num1 == 923 and sign == '/' and num2 == 222:
print('923/222 = 4.15765765766')
if num1 == 923 and sign == '/' and num2 == 223:
print('923/223 = 4.13901345291')
if num1 == 923 and sign == '/' and num2 == 224:
print('923/224 = 4.12053571429')
if num1 == 923 and sign == '/' and num2 == 225:
print('923/225 = 4.10222222222')
if num1 == 923 and sign == '/' and num2 == 226:
print('923/226 = 4.08407079646')
if num1 == 923 and sign == '/' and num2 == 227:
print('923/227 = 4.06607929515')
if num1 == 923 and sign == '/' and num2 == 228:
print('923/228 = 4.04824561404')
if num1 == 923 and sign == '/' and num2 == 229:
print('923/229 = 4.03056768559')
if num1 == 923 and sign == '/' and num2 == 230:
print('923/230 = 4.01304347826')
if num1 == 923 and sign == '/' and num2 == 231:
print('923/231 = 3.99567099567')
if num1 == 923 and sign == '/' and num2 == 232:
print('923/232 = 3.97844827586')
if num1 == 923 and sign == '/' and num2 == 233:
print('923/233 = 3.96137339056')
if num1 == 923 and sign == '/' and num2 == 234:
print('923/234 = 3.94444444444')
if num1 == 923 and sign == '/' and num2 == 235:
print('923/235 = 3.92765957447')
if num1 == 923 and sign == '/' and num2 == 236:
print('923/236 = 3.91101694915')
if num1 == 923 and sign == '/' and num2 == 237:
print('923/237 = 3.89451476793')
if num1 == 923 and sign == '/' and num2 == 238:
print('923/238 = 3.8781512605')
if num1 == 923 and sign == '/' and num2 == 239:
print('923/239 = 3.86192468619')
if num1 == 923 and sign == '/' and num2 == 240:
print('923/240 = 3.84583333333')
if num1 == 923 and sign == '/' and num2 == 241:
print('923/241 = 3.82987551867')
if num1 == 923 and sign == '/' and num2 == 242:
print('923/242 = 3.81404958678')
if num1 == 923 and sign == '/' and num2 == 243:
print('923/243 = 3.79835390947')
if num1 == 923 and sign == '/' and num2 == 244:
print('923/244 = 3.78278688525')
if num1 == 923 and sign == '/' and num2 == 245:
print('923/245 = 3.76734693878')
if num1 == 923 and sign == '/' and num2 == 246:
print('923/246 = 3.75203252033')
if num1 == 923 and sign == '/' and num2 == 247:
print('923/247 = 3.73684210526')
if num1 == 923 and sign == '/' and num2 == 248:
print('923/248 = 3.72177419355')
if num1 == 923 and sign == '/' and num2 == 249:
print('923/249 = 3.70682730924')
if num1 == 924 and sign == '/' and num2 == 200:
print('924/200 = 4.62')
if num1 == 924 and sign == '/' and num2 == 201:
print('924/201 = 4.59701492537')
if num1 == 924 and sign == '/' and num2 == 202:
print('924/202 = 4.57425742574')
if num1 == 924 and sign == '/' and num2 == 203:
print('924/203 = 4.55172413793')
if num1 == 924 and sign == '/' and num2 == 204:
print('924/204 = 4.52941176471')
if num1 == 924 and sign == '/' and num2 == 205:
print('924/205 = 4.50731707317')
if num1 == 924 and sign == '/' and num2 == 206:
print('924/206 = 4.4854368932')
if num1 == 924 and sign == '/' and num2 == 207:
print('924/207 = 4.46376811594')
if num1 == 924 and sign == '/' and num2 == 208:
print('924/208 = 4.44230769231')
if num1 == 924 and sign == '/' and num2 == 209:
print('924/209 = 4.42105263158')
if num1 == 924 and sign == '/' and num2 == 210:
print('924/210 = 4.4')
if num1 == 924 and sign == '/' and num2 == 211:
print('924/211 = 4.37914691943')
if num1 == 924 and sign == '/' and num2 == 212:
print('924/212 = 4.35849056604')
if num1 == 924 and sign == '/' and num2 == 213:
print('924/213 = 4.33802816901')
if num1 == 924 and sign == '/' and num2 == 214:
print('924/214 = 4.31775700935')
if num1 == 924 and sign == '/' and num2 == 215:
print('924/215 = 4.2976744186')
if num1 == 924 and sign == '/' and num2 == 216:
print('924/216 = 4.27777777778')
if num1 == 924 and sign == '/' and num2 == 217:
print('924/217 = 4.25806451613')
if num1 == 924 and sign == '/' and num2 == 218:
print('924/218 = 4.23853211009')
if num1 == 924 and sign == '/' and num2 == 219:
print('924/219 = 4.21917808219')
if num1 == 924 and sign == '/' and num2 == 220:
print('924/220 = 4.2')
if num1 == 924 and sign == '/' and num2 == 221:
print('924/221 = 4.18099547511')
if num1 == 924 and sign == '/' and num2 == 222:
print('924/222 = 4.16216216216')
if num1 == 924 and sign == '/' and num2 == 223:
print('924/223 = 4.14349775785')
if num1 == 924 and sign == '/' and num2 == 224:
print('924/224 = 4.125')
if num1 == 924 and sign == '/' and num2 == 225:
print('924/225 = 4.10666666667')
if num1 == 924 and sign == '/' and num2 == 226:
print('924/226 = 4.08849557522')
if num1 == 924 and sign == '/' and num2 == 227:
print('924/227 = 4.0704845815')
if num1 == 924 and sign == '/' and num2 == 228:
print('924/228 = 4.05263157895')
if num1 == 924 and sign == '/' and num2 == 229:
print('924/229 = 4.03493449782')
if num1 == 924 and sign == '/' and num2 == 230:
print('924/230 = 4.01739130435')
if num1 == 924 and sign == '/' and num2 == 231:
print('924/231 = 4.0')
if num1 == 924 and sign == '/' and num2 == 232:
print('924/232 = 3.98275862069')
if num1 == 924 and sign == '/' and num2 == 233:
print('924/233 = 3.96566523605')
if num1 == 924 and sign == '/' and num2 == 234:
print('924/234 = 3.94871794872')
if num1 == 924 and sign == '/' and num2 == 235:
print('924/235 = 3.93191489362')
if num1 == 924 and sign == '/' and num2 == 236:
print('924/236 = 3.91525423729')
if num1 == 924 and sign == '/' and num2 == 237:
print('924/237 = 3.89873417722')
if num1 == 924 and sign == '/' and num2 == 238:
print('924/238 = 3.88235294118')
if num1 == 924 and sign == '/' and num2 == 239:
print('924/239 = 3.86610878661')
if num1 == 924 and sign == '/' and num2 == 240:
print('924/240 = 3.85')
if num1 == 924 and sign == '/' and num2 == 241:
print('924/241 = 3.83402489627')
if num1 == 924 and sign == '/' and num2 == 242:
print('924/242 = 3.81818181818')
if num1 == 924 and sign == '/' and num2 == 243:
print('924/243 = 3.8024691358')
if num1 == 924 and sign == '/' and num2 == 244:
print('924/244 = 3.7868852459')
if num1 == 924 and sign == '/' and num2 == 245:
print('924/245 = 3.77142857143')
if num1 == 924 and sign == '/' and num2 == 246:
print('924/246 = 3.75609756098')
if num1 == 924 and sign == '/' and num2 == 247:
print('924/247 = 3.74089068826')
if num1 == 924 and sign == '/' and num2 == 248:
print('924/248 = 3.72580645161')
if num1 == 924 and sign == '/' and num2 == 249:
print('924/249 = 3.71084337349')
if num1 == 925 and sign == '/' and num2 == 200:
print('925/200 = 4.625')
if num1 == 925 and sign == '/' and num2 == 201:
print('925/201 = 4.60199004975')
if num1 == 925 and sign == '/' and num2 == 202:
print('925/202 = 4.57920792079')
if num1 == 925 and sign == '/' and num2 == 203:
print('925/203 = 4.55665024631')
if num1 == 925 and sign == '/' and num2 == 204:
print('925/204 = 4.53431372549')
if num1 == 925 and sign == '/' and num2 == 205:
print('925/205 = 4.51219512195')
if num1 == 925 and sign == '/' and num2 == 206:
print('925/206 = 4.49029126214')
if num1 == 925 and sign == '/' and num2 == 207:
print('925/207 = 4.46859903382')
if num1 == 925 and sign == '/' and num2 == 208:
print('925/208 = 4.44711538462')
if num1 == 925 and sign == '/' and num2 == 209:
print('925/209 = 4.42583732057')
if num1 == 925 and sign == '/' and num2 == 210:
print('925/210 = 4.40476190476')
if num1 == 925 and sign == '/' and num2 == 211:
print('925/211 = 4.38388625592')
if num1 == 925 and sign == '/' and num2 == 212:
print('925/212 = 4.36320754717')
if num1 == 925 and sign == '/' and num2 == 213:
print('925/213 = 4.34272300469')
if num1 == 925 and sign == '/' and num2 == 214:
print('925/214 = 4.32242990654')
if num1 == 925 and sign == '/' and num2 == 215:
print('925/215 = 4.3023255814')
if num1 == 925 and sign == '/' and num2 == 216:
print('925/216 = 4.28240740741')
if num1 == 925 and sign == '/' and num2 == 217:
print('925/217 = 4.26267281106')
if num1 == 925 and sign == '/' and num2 == 218:
print('925/218 = 4.24311926606')
if num1 == 925 and sign == '/' and num2 == 219:
print('925/219 = 4.22374429224')
if num1 == 925 and sign == '/' and num2 == 220:
print('925/220 = 4.20454545455')
if num1 == 925 and sign == '/' and num2 == 221:
print('925/221 = 4.18552036199')
if num1 == 925 and sign == '/' and num2 == 222:
print('925/222 = 4.16666666667')
if num1 == 925 and sign == '/' and num2 == 223:
print('925/223 = 4.14798206278')
if num1 == 925 and sign == '/' and num2 == 224:
print('925/224 = 4.12946428571')
if num1 == 925 and sign == '/' and num2 == 225:
print('925/225 = 4.11111111111')
if num1 == 925 and sign == '/' and num2 == 226:
print('925/226 = 4.09292035398')
if num1 == 925 and sign == '/' and num2 == 227:
print('925/227 = 4.07488986784')
if num1 == 925 and sign == '/' and num2 == 228:
print('925/228 = 4.05701754386')
if num1 == 925 and sign == '/' and num2 == 229:
print('925/229 = 4.03930131004')
if num1 == 925 and sign == '/' and num2 == 230:
print('925/230 = 4.02173913043')
if num1 == 925 and sign == '/' and num2 == 231:
print('925/231 = 4.00432900433')
if num1 == 925 and sign == '/' and num2 == 232:
print('925/232 = 3.98706896552')
if num1 == 925 and sign == '/' and num2 == 233:
print('925/233 = 3.96995708155')
if num1 == 925 and sign == '/' and num2 == 234:
print('925/234 = 3.95299145299')
if num1 == 925 and sign == '/' and num2 == 235:
print('925/235 = 3.93617021277')
if num1 == 925 and sign == '/' and num2 == 236:
print('925/236 = 3.91949152542')
if num1 == 925 and sign == '/' and num2 == 237:
print('925/237 = 3.9029535865')
if num1 == 925 and sign == '/' and num2 == 238:
print('925/238 = 3.88655462185')
if num1 == 925 and sign == '/' and num2 == 239:
print('925/239 = 3.87029288703')
if num1 == 925 and sign == '/' and num2 == 240:
print('925/240 = 3.85416666667')
if num1 == 925 and sign == '/' and num2 == 241:
print('925/241 = 3.83817427386')
if num1 == 925 and sign == '/' and num2 == 242:
print('925/242 = 3.82231404959')
if num1 == 925 and sign == '/' and num2 == 243:
print('925/243 = 3.80658436214')
if num1 == 925 and sign == '/' and num2 == 244:
print('925/244 = 3.79098360656')
if num1 == 925 and sign == '/' and num2 == 245:
print('925/245 = 3.77551020408')
if num1 == 925 and sign == '/' and num2 == 246:
print('925/246 = 3.76016260163')
if num1 == 925 and sign == '/' and num2 == 247:
print('925/247 = 3.74493927126')
if num1 == 925 and sign == '/' and num2 == 248:
print('925/248 = 3.72983870968')
if num1 == 925 and sign == '/' and num2 == 249:
print('925/249 = 3.71485943775')
if num1 == 926 and sign == '/' and num2 == 200:
print('926/200 = 4.63')
if num1 == 926 and sign == '/' and num2 == 201:
print('926/201 = 4.60696517413')
if num1 == 926 and sign == '/' and num2 == 202:
print('926/202 = 4.58415841584')
if num1 == 926 and sign == '/' and num2 == 203:
print('926/203 = 4.56157635468')
if num1 == 926 and sign == '/' and num2 == 204:
print('926/204 = 4.53921568627')
if num1 == 926 and sign == '/' and num2 == 205:
print('926/205 = 4.51707317073')
if num1 == 926 and sign == '/' and num2 == 206:
print('926/206 = 4.49514563107')
if num1 == 926 and sign == '/' and num2 == 207:
print('926/207 = 4.47342995169')
if num1 == 926 and sign == '/' and num2 == 208:
print('926/208 = 4.45192307692')
if num1 == 926 and sign == '/' and num2 == 209:
print('926/209 = 4.43062200957')
if num1 == 926 and sign == '/' and num2 == 210:
print('926/210 = 4.40952380952')
if num1 == 926 and sign == '/' and num2 == 211:
print('926/211 = 4.38862559242')
if num1 == 926 and sign == '/' and num2 == 212:
print('926/212 = 4.3679245283')
if num1 == 926 and sign == '/' and num2 == 213:
print('926/213 = 4.34741784038')
if num1 == 926 and sign == '/' and num2 == 214:
print('926/214 = 4.32710280374')
if num1 == 926 and sign == '/' and num2 == 215:
print('926/215 = 4.30697674419')
if num1 == 926 and sign == '/' and num2 == 216:
print('926/216 = 4.28703703704')
if num1 == 926 and sign == '/' and num2 == 217:
print('926/217 = 4.26728110599')
if num1 == 926 and sign == '/' and num2 == 218:
print('926/218 = 4.24770642202')
if num1 == 926 and sign == '/' and num2 == 219:
print('926/219 = 4.22831050228')
if num1 == 926 and sign == '/' and num2 == 220:
print('926/220 = 4.20909090909')
if num1 == 926 and sign == '/' and num2 == 221:
print('926/221 = 4.19004524887')
if num1 == 926 and sign == '/' and num2 == 222:
print('926/222 = 4.17117117117')
if num1 == 926 and sign == '/' and num2 == 223:
print('926/223 = 4.15246636771')
if num1 == 926 and sign == '/' and num2 == 224:
print('926/224 = 4.13392857143')
if num1 == 926 and sign == '/' and num2 == 225:
print('926/225 = 4.11555555556')
if num1 == 926 and sign == '/' and num2 == 226:
print('926/226 = 4.09734513274')
if num1 == 926 and sign == '/' and num2 == 227:
print('926/227 = 4.07929515419')
if num1 == 926 and sign == '/' and num2 == 228:
print('926/228 = 4.06140350877')
if num1 == 926 and sign == '/' and num2 == 229:
print('926/229 = 4.04366812227')
if num1 == 926 and sign == '/' and num2 == 230:
print('926/230 = 4.02608695652')
if num1 == 926 and sign == '/' and num2 == 231:
print('926/231 = 4.00865800866')
if num1 == 926 and sign == '/' and num2 == 232:
print('926/232 = 3.99137931034')
if num1 == 926 and sign == '/' and num2 == 233:
print('926/233 = 3.97424892704')
if num1 == 926 and sign == '/' and num2 == 234:
print('926/234 = 3.95726495726')
if num1 == 926 and sign == '/' and num2 == 235:
print('926/235 = 3.94042553191')
if num1 == 926 and sign == '/' and num2 == 236:
print('926/236 = 3.92372881356')
if num1 == 926 and sign == '/' and num2 == 237:
print('926/237 = 3.90717299578')
if num1 == 926 and sign == '/' and num2 == 238:
print('926/238 = 3.89075630252')
if num1 == 926 and sign == '/' and num2 == 239:
print('926/239 = 3.87447698745')
if num1 == 926 and sign == '/' and num2 == 240:
print('926/240 = 3.85833333333')
if num1 == 926 and sign == '/' and num2 == 241:
print('926/241 = 3.84232365145')
if num1 == 926 and sign == '/' and num2 == 242:
print('926/242 = 3.82644628099')
if num1 == 926 and sign == '/' and num2 == 243:
print('926/243 = 3.81069958848')
if num1 == 926 and sign == '/' and num2 == 244:
print('926/244 = 3.79508196721')
if num1 == 926 and sign == '/' and num2 == 245:
print('926/245 = 3.77959183673')
if num1 == 926 and sign == '/' and num2 == 246:
print('926/246 = 3.76422764228')
if num1 == 926 and sign == '/' and num2 == 247:
print('926/247 = 3.74898785425')
if num1 == 926 and sign == '/' and num2 == 248:
print('926/248 = 3.73387096774')
if num1 == 926 and sign == '/' and num2 == 249:
print('926/249 = 3.71887550201')
if num1 == 927 and sign == '/' and num2 == 200:
print('927/200 = 4.635')
if num1 == 927 and sign == '/' and num2 == 201:
print('927/201 = 4.61194029851')
if num1 == 927 and sign == '/' and num2 == 202:
print('927/202 = 4.58910891089')
if num1 == 927 and sign == '/' and num2 == 203:
print('927/203 = 4.56650246305')
if num1 == 927 and sign == '/' and num2 == 204:
print('927/204 = 4.54411764706')
if num1 == 927 and sign == '/' and num2 == 205:
print('927/205 = 4.52195121951')
if num1 == 927 and sign == '/' and num2 == 206:
print('927/206 = 4.5')
if num1 == 927 and sign == '/' and num2 == 207:
print('927/207 = 4.47826086957')
if num1 == 927 and sign == '/' and num2 == 208:
print('927/208 = 4.45673076923')
if num1 == 927 and sign == '/' and num2 == 209:
print('927/209 = 4.43540669856')
if num1 == 927 and sign == '/' and num2 == 210:
print('927/210 = 4.41428571429')
if num1 == 927 and sign == '/' and num2 == 211:
print('927/211 = 4.39336492891')
if num1 == 927 and sign == '/' and num2 == 212:
print('927/212 = 4.37264150943')
if num1 == 927 and sign == '/' and num2 == 213:
print('927/213 = 4.35211267606')
if num1 == 927 and sign == '/' and num2 == 214:
print('927/214 = 4.33177570093')
if num1 == 927 and sign == '/' and num2 == 215:
print('927/215 = 4.31162790698')
if num1 == 927 and sign == '/' and num2 == 216:
print('927/216 = 4.29166666667')
if num1 == 927 and sign == '/' and num2 == 217:
print('927/217 = 4.27188940092')
if num1 == 927 and sign == '/' and num2 == 218:
print('927/218 = 4.25229357798')
if num1 == 927 and sign == '/' and num2 == 219:
print('927/219 = 4.23287671233')
if num1 == 927 and sign == '/' and num2 == 220:
print('927/220 = 4.21363636364')
if num1 == 927 and sign == '/' and num2 == 221:
print('927/221 = 4.19457013575')
if num1 == 927 and sign == '/' and num2 == 222:
print('927/222 = 4.17567567568')
if num1 == 927 and sign == '/' and num2 == 223:
print('927/223 = 4.15695067265')
if num1 == 927 and sign == '/' and num2 == 224:
print('927/224 = 4.13839285714')
if num1 == 927 and sign == '/' and num2 == 225:
print('927/225 = 4.12')
if num1 == 927 and sign == '/' and num2 == 226:
print('927/226 = 4.1017699115')
if num1 == 927 and sign == '/' and num2 == 227:
print('927/227 = 4.08370044053')
if num1 == 927 and sign == '/' and num2 == 228:
print('927/228 = 4.06578947368')
if num1 == 927 and sign == '/' and num2 == 229:
print('927/229 = 4.0480349345')
if num1 == 927 and sign == '/' and num2 == 230:
print('927/230 = 4.03043478261')
if num1 == 927 and sign == '/' and num2 == 231:
print('927/231 = 4.01298701299')
if num1 == 927 and sign == '/' and num2 == 232:
print('927/232 = 3.99568965517')
if num1 == 927 and sign == '/' and num2 == 233:
print('927/233 = 3.97854077253')
if num1 == 927 and sign == '/' and num2 == 234:
print('927/234 = 3.96153846154')
if num1 == 927 and sign == '/' and num2 == 235:
print('927/235 = 3.94468085106')
if num1 == 927 and sign == '/' and num2 == 236:
print('927/236 = 3.92796610169')
if num1 == 927 and sign == '/' and num2 == 237:
print('927/237 = 3.91139240506')
if num1 == 927 and sign == '/' and num2 == 238:
print('927/238 = 3.89495798319')
if num1 == 927 and sign == '/' and num2 == 239:
print('927/239 = 3.87866108787')
if num1 == 927 and sign == '/' and num2 == 240:
print('927/240 = 3.8625')
if num1 == 927 and sign == '/' and num2 == 241:
print('927/241 = 3.84647302905')
if num1 == 927 and sign == '/' and num2 == 242:
print('927/242 = 3.8305785124')
if num1 == 927 and sign == '/' and num2 == 243:
print('927/243 = 3.81481481481')
if num1 == 927 and sign == '/' and num2 == 244:
print('927/244 = 3.79918032787')
if num1 == 927 and sign == '/' and num2 == 245:
print('927/245 = 3.78367346939')
if num1 == 927 and sign == '/' and num2 == 246:
print('927/246 = 3.76829268293')
if num1 == 927 and sign == '/' and num2 == 247:
print('927/247 = 3.75303643725')
if num1 == 927 and sign == '/' and num2 == 248:
print('927/248 = 3.73790322581')
if num1 == 927 and sign == '/' and num2 == 249:
print('927/249 = 3.72289156627')
if num1 == 928 and sign == '/' and num2 == 200:
print('928/200 = 4.64')
if num1 == 928 and sign == '/' and num2 == 201:
print('928/201 = 4.61691542289')
if num1 == 928 and sign == '/' and num2 == 202:
print('928/202 = 4.59405940594')
if num1 == 928 and sign == '/' and num2 == 203:
print('928/203 = 4.57142857143')
if num1 == 928 and sign == '/' and num2 == 204:
print('928/204 = 4.54901960784')
if num1 == 928 and sign == '/' and num2 == 205:
print('928/205 = 4.52682926829')
if num1 == 928 and sign == '/' and num2 == 206:
print('928/206 = 4.50485436893')
if num1 == 928 and sign == '/' and num2 == 207:
print('928/207 = 4.48309178744')
if num1 == 928 and sign == '/' and num2 == 208:
print('928/208 = 4.46153846154')
if num1 == 928 and sign == '/' and num2 == 209:
print('928/209 = 4.44019138756')
if num1 == 928 and sign == '/' and num2 == 210:
print('928/210 = 4.41904761905')
if num1 == 928 and sign == '/' and num2 == 211:
print('928/211 = 4.3981042654')
if num1 == 928 and sign == '/' and num2 == 212:
print('928/212 = 4.37735849057')
if num1 == 928 and sign == '/' and num2 == 213:
print('928/213 = 4.35680751174')
if num1 == 928 and sign == '/' and num2 == 214:
print('928/214 = 4.33644859813')
if num1 == 928 and sign == '/' and num2 == 215:
print('928/215 = 4.31627906977')
if num1 == 928 and sign == '/' and num2 == 216:
print('928/216 = 4.2962962963')
if num1 == 928 and sign == '/' and num2 == 217:
print('928/217 = 4.27649769585')
if num1 == 928 and sign == '/' and num2 == 218:
print('928/218 = 4.25688073394')
if num1 == 928 and sign == '/' and num2 == 219:
print('928/219 = 4.23744292237')
if num1 == 928 and sign == '/' and num2 == 220:
print('928/220 = 4.21818181818')
if num1 == 928 and sign == '/' and num2 == 221:
print('928/221 = 4.19909502262')
if num1 == 928 and sign == '/' and num2 == 222:
print('928/222 = 4.18018018018')
if num1 == 928 and sign == '/' and num2 == 223:
print('928/223 = 4.16143497758')
if num1 == 928 and sign == '/' and num2 == 224:
print('928/224 = 4.14285714286')
if num1 == 928 and sign == '/' and num2 == 225:
print('928/225 = 4.12444444444')
if num1 == 928 and sign == '/' and num2 == 226:
print('928/226 = 4.10619469027')
if num1 == 928 and sign == '/' and num2 == 227:
print('928/227 = 4.08810572687')
if num1 == 928 and sign == '/' and num2 == 228:
print('928/228 = 4.0701754386')
if num1 == 928 and sign == '/' and num2 == 229:
print('928/229 = 4.05240174672')
if num1 == 928 and sign == '/' and num2 == 230:
print('928/230 = 4.0347826087')
if num1 == 928 and sign == '/' and num2 == 231:
print('928/231 = 4.01731601732')
if num1 == 928 and sign == '/' and num2 == 232:
print('928/232 = 4.0')
if num1 == 928 and sign == '/' and num2 == 233:
print('928/233 = 3.98283261803')
if num1 == 928 and sign == '/' and num2 == 234:
print('928/234 = 3.96581196581')
if num1 == 928 and sign == '/' and num2 == 235:
print('928/235 = 3.94893617021')
if num1 == 928 and sign == '/' and num2 == 236:
print('928/236 = 3.93220338983')
if num1 == 928 and sign == '/' and num2 == 237:
print('928/237 = 3.91561181435')
if num1 == 928 and sign == '/' and num2 == 238:
print('928/238 = 3.89915966387')
if num1 == 928 and sign == '/' and num2 == 239:
print('928/239 = 3.88284518828')
if num1 == 928 and sign == '/' and num2 == 240:
print('928/240 = 3.86666666667')
if num1 == 928 and sign == '/' and num2 == 241:
print('928/241 = 3.85062240664')
if num1 == 928 and sign == '/' and num2 == 242:
print('928/242 = 3.8347107438')
if num1 == 928 and sign == '/' and num2 == 243:
print('928/243 = 3.81893004115')
if num1 == 928 and sign == '/' and num2 == 244:
print('928/244 = 3.80327868852')
if num1 == 928 and sign == '/' and num2 == 245:
print('928/245 = 3.78775510204')
if num1 == 928 and sign == '/' and num2 == 246:
print('928/246 = 3.77235772358')
if num1 == 928 and sign == '/' and num2 == 247:
print('928/247 = 3.75708502024')
if num1 == 928 and sign == '/' and num2 == 248:
print('928/248 = 3.74193548387')
if num1 == 928 and sign == '/' and num2 == 249:
print('928/249 = 3.72690763052')
if num1 == 929 and sign == '/' and num2 == 200:
print('929/200 = 4.645')
if num1 == 929 and sign == '/' and num2 == 201:
print('929/201 = 4.62189054726')
if num1 == 929 and sign == '/' and num2 == 202:
print('929/202 = 4.59900990099')
if num1 == 929 and sign == '/' and num2 == 203:
print('929/203 = 4.5763546798')
if num1 == 929 and sign == '/' and num2 == 204:
print('929/204 = 4.55392156863')
if num1 == 929 and sign == '/' and num2 == 205:
print('929/205 = 4.53170731707')
if num1 == 929 and sign == '/' and num2 == 206:
print('929/206 = 4.50970873786')
if num1 == 929 and sign == '/' and num2 == 207:
print('929/207 = 4.48792270531')
if num1 == 929 and sign == '/' and num2 == 208:
print('929/208 = 4.46634615385')
if num1 == 929 and sign == '/' and num2 == 209:
print('929/209 = 4.44497607656')
if num1 == 929 and sign == '/' and num2 == 210:
print('929/210 = 4.42380952381')
if num1 == 929 and sign == '/' and num2 == 211:
print('929/211 = 4.4028436019')
if num1 == 929 and sign == '/' and num2 == 212:
print('929/212 = 4.3820754717')
if num1 == 929 and sign == '/' and num2 == 213:
print('929/213 = 4.36150234742')
if num1 == 929 and sign == '/' and num2 == 214:
print('929/214 = 4.34112149533')
if num1 == 929 and sign == '/' and num2 == 215:
print('929/215 = 4.32093023256')
if num1 == 929 and sign == '/' and num2 == 216:
print('929/216 = 4.30092592593')
if num1 == 929 and sign == '/' and num2 == 217:
print('929/217 = 4.28110599078')
if num1 == 929 and sign == '/' and num2 == 218:
print('929/218 = 4.26146788991')
if num1 == 929 and sign == '/' and num2 == 219:
print('929/219 = 4.24200913242')
if num1 == 929 and sign == '/' and num2 == 220:
print('929/220 = 4.22272727273')
if num1 == 929 and sign == '/' and num2 == 221:
print('929/221 = 4.2036199095')
if num1 == 929 and sign == '/' and num2 == 222:
print('929/222 = 4.18468468468')
if num1 == 929 and sign == '/' and num2 == 223:
print('929/223 = 4.16591928251')
if num1 == 929 and sign == '/' and num2 == 224:
print('929/224 = 4.14732142857')
if num1 == 929 and sign == '/' and num2 == 225:
print('929/225 = 4.12888888889')
if num1 == 929 and sign == '/' and num2 == 226:
print('929/226 = 4.11061946903')
if num1 == 929 and sign == '/' and num2 == 227:
print('929/227 = 4.09251101322')
if num1 == 929 and sign == '/' and num2 == 228:
print('929/228 = 4.07456140351')
if num1 == 929 and sign == '/' and num2 == 229:
print('929/229 = 4.05676855895')
if num1 == 929 and sign == '/' and num2 == 230:
print('929/230 = 4.03913043478')
if num1 == 929 and sign == '/' and num2 == 231:
print('929/231 = 4.02164502165')
if num1 == 929 and sign == '/' and num2 == 232:
print('929/232 = 4.00431034483')
if num1 == 929 and sign == '/' and num2 == 233:
print('929/233 = 3.98712446352')
if num1 == 929 and sign == '/' and num2 == 234:
print('929/234 = 3.97008547009')
if num1 == 929 and sign == '/' and num2 == 235:
print('929/235 = 3.95319148936')
if num1 == 929 and sign == '/' and num2 == 236:
print('929/236 = 3.93644067797')
if num1 == 929 and sign == '/' and num2 == 237:
print('929/237 = 3.91983122363')
if num1 == 929 and sign == '/' and num2 == 238:
print('929/238 = 3.90336134454')
if num1 == 929 and sign == '/' and num2 == 239:
print('929/239 = 3.8870292887')
if num1 == 929 and sign == '/' and num2 == 240:
print('929/240 = 3.87083333333')
if num1 == 929 and sign == '/' and num2 == 241:
print('929/241 = 3.85477178423')
if num1 == 929 and sign == '/' and num2 == 242:
print('929/242 = 3.83884297521')
if num1 == 929 and sign == '/' and num2 == 243:
print('929/243 = 3.82304526749')
if num1 == 929 and sign == '/' and num2 == 244:
print('929/244 = 3.80737704918')
if num1 == 929 and sign == '/' and num2 == 245:
print('929/245 = 3.79183673469')
if num1 == 929 and sign == '/' and num2 == 246:
print('929/246 = 3.77642276423')
if num1 == 929 and sign == '/' and num2 == 247:
print('929/247 = 3.76113360324')
if num1 == 929 and sign == '/' and num2 == 248:
print('929/248 = 3.74596774194')
if num1 == 929 and sign == '/' and num2 == 249:
print('929/249 = 3.73092369478')
if num1 == 930 and sign == '/' and num2 == 200:
print('930/200 = 4.65')
if num1 == 930 and sign == '/' and num2 == 201:
print('930/201 = 4.62686567164')
if num1 == 930 and sign == '/' and num2 == 202:
print('930/202 = 4.60396039604')
if num1 == 930 and sign == '/' and num2 == 203:
print('930/203 = 4.58128078818')
if num1 == 930 and sign == '/' and num2 == 204:
print('930/204 = 4.55882352941')
if num1 == 930 and sign == '/' and num2 == 205:
print('930/205 = 4.53658536585')
if num1 == 930 and sign == '/' and num2 == 206:
print('930/206 = 4.5145631068')
if num1 == 930 and sign == '/' and num2 == 207:
print('930/207 = 4.49275362319')
if num1 == 930 and sign == '/' and num2 == 208:
print('930/208 = 4.47115384615')
if num1 == 930 and sign == '/' and num2 == 209:
print('930/209 = 4.44976076555')
if num1 == 930 and sign == '/' and num2 == 210:
print('930/210 = 4.42857142857')
if num1 == 930 and sign == '/' and num2 == 211:
print('930/211 = 4.40758293839')
if num1 == 930 and sign == '/' and num2 == 212:
print('930/212 = 4.38679245283')
if num1 == 930 and sign == '/' and num2 == 213:
print('930/213 = 4.3661971831')
if num1 == 930 and sign == '/' and num2 == 214:
print('930/214 = 4.34579439252')
if num1 == 930 and sign == '/' and num2 == 215:
print('930/215 = 4.32558139535')
if num1 == 930 and sign == '/' and num2 == 216:
print('930/216 = 4.30555555556')
if num1 == 930 and sign == '/' and num2 == 217:
print('930/217 = 4.28571428571')
if num1 == 930 and sign == '/' and num2 == 218:
print('930/218 = 4.26605504587')
if num1 == 930 and sign == '/' and num2 == 219:
print('930/219 = 4.24657534247')
if num1 == 930 and sign == '/' and num2 == 220:
print('930/220 = 4.22727272727')
if num1 == 930 and sign == '/' and num2 == 221:
print('930/221 = 4.20814479638')
if num1 == 930 and sign == '/' and num2 == 222:
print('930/222 = 4.18918918919')
if num1 == 930 and sign == '/' and num2 == 223:
print('930/223 = 4.17040358744')
if num1 == 930 and sign == '/' and num2 == 224:
print('930/224 = 4.15178571429')
if num1 == 930 and sign == '/' and num2 == 225:
print('930/225 = 4.13333333333')
if num1 == 930 and sign == '/' and num2 == 226:
print('930/226 = 4.11504424779')
if num1 == 930 and sign == '/' and num2 == 227:
print('930/227 = 4.09691629956')
if num1 == 930 and sign == '/' and num2 == 228:
print('930/228 = 4.07894736842')
if num1 == 930 and sign == '/' and num2 == 229:
print('930/229 = 4.06113537118')
if num1 == 930 and sign == '/' and num2 == 230:
print('930/230 = 4.04347826087')
if num1 == 930 and sign == '/' and num2 == 231:
print('930/231 = 4.02597402597')
if num1 == 930 and sign == '/' and num2 == 232:
print('930/232 = 4.00862068966')
if num1 == 930 and sign == '/' and num2 == 233:
print('930/233 = 3.99141630901')
if num1 == 930 and sign == '/' and num2 == 234:
print('930/234 = 3.97435897436')
if num1 == 930 and sign == '/' and num2 == 235:
print('930/235 = 3.95744680851')
if num1 == 930 and sign == '/' and num2 == 236:
print('930/236 = 3.9406779661')
if num1 == 930 and sign == '/' and num2 == 237:
print('930/237 = 3.92405063291')
if num1 == 930 and sign == '/' and num2 == 238:
print('930/238 = 3.90756302521')
if num1 == 930 and sign == '/' and num2 == 239:
print('930/239 = 3.89121338912')
if num1 == 930 and sign == '/' and num2 == 240:
print('930/240 = 3.875')
if num1 == 930 and sign == '/' and num2 == 241:
print('930/241 = 3.85892116183')
if num1 == 930 and sign == '/' and num2 == 242:
print('930/242 = 3.84297520661')
if num1 == 930 and sign == '/' and num2 == 243:
print('930/243 = 3.82716049383')
if num1 == 930 and sign == '/' and num2 == 244:
print('930/244 = 3.81147540984')
if num1 == 930 and sign == '/' and num2 == 245:
print('930/245 = 3.79591836735')
if num1 == 930 and sign == '/' and num2 == 246:
print('930/246 = 3.78048780488')
if num1 == 930 and sign == '/' and num2 == 247:
print('930/247 = 3.76518218623')
if num1 == 930 and sign == '/' and num2 == 248:
print('930/248 = 3.75')
if num1 == 930 and sign == '/' and num2 == 249:
print('930/249 = 3.73493975904')
if num1 == 931 and sign == '/' and num2 == 200:
print('931/200 = 4.655')
if num1 == 931 and sign == '/' and num2 == 201:
print('931/201 = 4.63184079602')
if num1 == 931 and sign == '/' and num2 == 202:
print('931/202 = 4.60891089109')
if num1 == 931 and sign == '/' and num2 == 203:
print('931/203 = 4.58620689655')
if num1 == 931 and sign == '/' and num2 == 204:
print('931/204 = 4.5637254902')
if num1 == 931 and sign == '/' and num2 == 205:
print('931/205 = 4.54146341463')
if num1 == 931 and sign == '/' and num2 == 206:
print('931/206 = 4.51941747573')
if num1 == 931 and sign == '/' and num2 == 207:
print('931/207 = 4.49758454106')
if num1 == 931 and sign == '/' and num2 == 208:
print('931/208 = 4.47596153846')
if num1 == 931 and sign == '/' and num2 == 209:
print('931/209 = 4.45454545455')
if num1 == 931 and sign == '/' and num2 == 210:
print('931/210 = 4.43333333333')
if num1 == 931 and sign == '/' and num2 == 211:
print('931/211 = 4.41232227488')
if num1 == 931 and sign == '/' and num2 == 212:
print('931/212 = 4.39150943396')
if num1 == 931 and sign == '/' and num2 == 213:
print('931/213 = 4.37089201878')
if num1 == 931 and sign == '/' and num2 == 214:
print('931/214 = 4.35046728972')
if num1 == 931 and sign == '/' and num2 == 215:
print('931/215 = 4.33023255814')
if num1 == 931 and sign == '/' and num2 == 216:
print('931/216 = 4.31018518519')
if num1 == 931 and sign == '/' and num2 == 217:
print('931/217 = 4.29032258065')
if num1 == 931 and sign == '/' and num2 == 218:
print('931/218 = 4.27064220183')
if num1 == 931 and sign == '/' and num2 == 219:
print('931/219 = 4.25114155251')
if num1 == 931 and sign == '/' and num2 == 220:
print('931/220 = 4.23181818182')
if num1 == 931 and sign == '/' and num2 == 221:
print('931/221 = 4.21266968326')
if num1 == 931 and sign == '/' and num2 == 222:
print('931/222 = 4.19369369369')
if num1 == 931 and sign == '/' and num2 == 223:
print('931/223 = 4.17488789238')
if num1 == 931 and sign == '/' and num2 == 224:
print('931/224 = 4.15625')
if num1 == 931 and sign == '/' and num2 == 225:
print('931/225 = 4.13777777778')
if num1 == 931 and sign == '/' and num2 == 226:
print('931/226 = 4.11946902655')
if num1 == 931 and sign == '/' and num2 == 227:
print('931/227 = 4.1013215859')
if num1 == 931 and sign == '/' and num2 == 228:
print('931/228 = 4.08333333333')
if num1 == 931 and sign == '/' and num2 == 229:
print('931/229 = 4.06550218341')
if num1 == 931 and sign == '/' and num2 == 230:
print('931/230 = 4.04782608696')
if num1 == 931 and sign == '/' and num2 == 231:
print('931/231 = 4.0303030303')
if num1 == 931 and sign == '/' and num2 == 232:
print('931/232 = 4.01293103448')
if num1 == 931 and sign == '/' and num2 == 233:
print('931/233 = 3.99570815451')
if num1 == 931 and sign == '/' and num2 == 234:
print('931/234 = 3.97863247863')
if num1 == 931 and sign == '/' and num2 == 235:
print('931/235 = 3.96170212766')
if num1 == 931 and sign == '/' and num2 == 236:
print('931/236 = 3.94491525424')
if num1 == 931 and sign == '/' and num2 == 237:
print('931/237 = 3.92827004219')
if num1 == 931 and sign == '/' and num2 == 238:
print('931/238 = 3.91176470588')
if num1 == 931 and sign == '/' and num2 == 239:
print('931/239 = 3.89539748954')
if num1 == 931 and sign == '/' and num2 == 240:
print('931/240 = 3.87916666667')
if num1 == 931 and sign == '/' and num2 == 241:
print('931/241 = 3.86307053942')
if num1 == 931 and sign == '/' and num2 == 242:
print('931/242 = 3.84710743802')
if num1 == 931 and sign == '/' and num2 == 243:
print('931/243 = 3.83127572016')
if num1 == 931 and sign == '/' and num2 == 244:
print('931/244 = 3.81557377049')
if num1 == 931 and sign == '/' and num2 == 245:
print('931/245 = 3.8')
if num1 == 931 and sign == '/' and num2 == 246:
print('931/246 = 3.78455284553')
if num1 == 931 and sign == '/' and num2 == 247:
print('931/247 = 3.76923076923')
if num1 == 931 and sign == '/' and num2 == 248:
print('931/248 = 3.75403225806')
if num1 == 931 and sign == '/' and num2 == 249:
print('931/249 = 3.73895582329')
if num1 == 932 and sign == '/' and num2 == 200:
print('932/200 = 4.66')
if num1 == 932 and sign == '/' and num2 == 201:
print('932/201 = 4.6368159204')
if num1 == 932 and sign == '/' and num2 == 202:
print('932/202 = 4.61386138614')
if num1 == 932 and sign == '/' and num2 == 203:
print('932/203 = 4.59113300493')
if num1 == 932 and sign == '/' and num2 == 204:
print('932/204 = 4.56862745098')
if num1 == 932 and sign == '/' and num2 == 205:
print('932/205 = 4.54634146341')
if num1 == 932 and sign == '/' and num2 == 206:
print('932/206 = 4.52427184466')
if num1 == 932 and sign == '/' and num2 == 207:
print('932/207 = 4.50241545894')
if num1 == 932 and sign == '/' and num2 == 208:
print('932/208 = 4.48076923077')
if num1 == 932 and sign == '/' and num2 == 209:
print('932/209 = 4.45933014354')
if num1 == 932 and sign == '/' and num2 == 210:
print('932/210 = 4.4380952381')
if num1 == 932 and sign == '/' and num2 == 211:
print('932/211 = 4.41706161137')
if num1 == 932 and sign == '/' and num2 == 212:
print('932/212 = 4.39622641509')
if num1 == 932 and sign == '/' and num2 == 213:
print('932/213 = 4.37558685446')
if num1 == 932 and sign == '/' and num2 == 214:
print('932/214 = 4.35514018692')
if num1 == 932 and sign == '/' and num2 == 215:
print('932/215 = 4.33488372093')
if num1 == 932 and sign == '/' and num2 == 216:
print('932/216 = 4.31481481481')
if num1 == 932 and sign == '/' and num2 == 217:
print('932/217 = 4.29493087558')
if num1 == 932 and sign == '/' and num2 == 218:
print('932/218 = 4.2752293578')
if num1 == 932 and sign == '/' and num2 == 219:
print('932/219 = 4.25570776256')
if num1 == 932 and sign == '/' and num2 == 220:
print('932/220 = 4.23636363636')
if num1 == 932 and sign == '/' and num2 == 221:
print('932/221 = 4.21719457014')
if num1 == 932 and sign == '/' and num2 == 222:
print('932/222 = 4.1981981982')
if num1 == 932 and sign == '/' and num2 == 223:
print('932/223 = 4.17937219731')
if num1 == 932 and sign == '/' and num2 == 224:
print('932/224 = 4.16071428571')
if num1 == 932 and sign == '/' and num2 == 225:
print('932/225 = 4.14222222222')
if num1 == 932 and sign == '/' and num2 == 226:
print('932/226 = 4.12389380531')
if num1 == 932 and sign == '/' and num2 == 227:
print('932/227 = 4.10572687225')
if num1 == 932 and sign == '/' and num2 == 228:
print('932/228 = 4.08771929825')
if num1 == 932 and sign == '/' and num2 == 229:
print('932/229 = 4.06986899563')
if num1 == 932 and sign == '/' and num2 == 230:
print('932/230 = 4.05217391304')
if num1 == 932 and sign == '/' and num2 == 231:
print('932/231 = 4.03463203463')
if num1 == 932 and sign == '/' and num2 == 232:
print('932/232 = 4.01724137931')
if num1 == 932 and sign == '/' and num2 == 233:
print('932/233 = 4.0')
if num1 == 932 and sign == '/' and num2 == 234:
print('932/234 = 3.98290598291')
if num1 == 932 and sign == '/' and num2 == 235:
print('932/235 = 3.96595744681')
if num1 == 932 and sign == '/' and num2 == 236:
print('932/236 = 3.94915254237')
if num1 == 932 and sign == '/' and num2 == 237:
print('932/237 = 3.93248945148')
if num1 == 932 and sign == '/' and num2 == 238:
print('932/238 = 3.91596638655')
if num1 == 932 and sign == '/' and num2 == 239:
print('932/239 = 3.89958158996')
if num1 == 932 and sign == '/' and num2 == 240:
print('932/240 = 3.88333333333')
if num1 == 932 and sign == '/' and num2 == 241:
print('932/241 = 3.86721991701')
if num1 == 932 and sign == '/' and num2 == 242:
print('932/242 = 3.85123966942')
if num1 == 932 and sign == '/' and num2 == 243:
print('932/243 = 3.8353909465')
if num1 == 932 and sign == '/' and num2 == 244:
print('932/244 = 3.81967213115')
if num1 == 932 and sign == '/' and num2 == 245:
print('932/245 = 3.80408163265')
if num1 == 932 and sign == '/' and num2 == 246:
print('932/246 = 3.78861788618')
if num1 == 932 and sign == '/' and num2 == 247:
print('932/247 = 3.77327935223')
if num1 == 932 and sign == '/' and num2 == 248:
print('932/248 = 3.75806451613')
if num1 == 932 and sign == '/' and num2 == 249:
print('932/249 = 3.74297188755')
if num1 == 933 and sign == '/' and num2 == 200:
print('933/200 = 4.665')
if num1 == 933 and sign == '/' and num2 == 201:
print('933/201 = 4.64179104478')
if num1 == 933 and sign == '/' and num2 == 202:
print('933/202 = 4.61881188119')
if num1 == 933 and sign == '/' and num2 == 203:
print('933/203 = 4.5960591133')
if num1 == 933 and sign == '/' and num2 == 204:
print('933/204 = 4.57352941176')
if num1 == 933 and sign == '/' and num2 == 205:
print('933/205 = 4.5512195122')
if num1 == 933 and sign == '/' and num2 == 206:
print('933/206 = 4.52912621359')
if num1 == 933 and sign == '/' and num2 == 207:
print('933/207 = 4.50724637681')
if num1 == 933 and sign == '/' and num2 == 208:
print('933/208 = 4.48557692308')
if num1 == 933 and sign == '/' and num2 == 209:
print('933/209 = 4.46411483254')
if num1 == 933 and sign == '/' and num2 == 210:
print('933/210 = 4.44285714286')
if num1 == 933 and sign == '/' and num2 == 211:
print('933/211 = 4.42180094787')
if num1 == 933 and sign == '/' and num2 == 212:
print('933/212 = 4.40094339623')
if num1 == 933 and sign == '/' and num2 == 213:
print('933/213 = 4.38028169014')
if num1 == 933 and sign == '/' and num2 == 214:
print('933/214 = 4.35981308411')
if num1 == 933 and sign == '/' and num2 == 215:
print('933/215 = 4.33953488372')
if num1 == 933 and sign == '/' and num2 == 216:
print('933/216 = 4.31944444444')
if num1 == 933 and sign == '/' and num2 == 217:
print('933/217 = 4.29953917051')
if num1 == 933 and sign == '/' and num2 == 218:
print('933/218 = 4.27981651376')
if num1 == 933 and sign == '/' and num2 == 219:
print('933/219 = 4.2602739726')
if num1 == 933 and sign == '/' and num2 == 220:
print('933/220 = 4.24090909091')
if num1 == 933 and sign == '/' and num2 == 221:
print('933/221 = 4.22171945701')
if num1 == 933 and sign == '/' and num2 == 222:
print('933/222 = 4.2027027027')
if num1 == 933 and sign == '/' and num2 == 223:
print('933/223 = 4.18385650224')
if num1 == 933 and sign == '/' and num2 == 224:
print('933/224 = 4.16517857143')
if num1 == 933 and sign == '/' and num2 == 225:
print('933/225 = 4.14666666667')
if num1 == 933 and sign == '/' and num2 == 226:
print('933/226 = 4.12831858407')
if num1 == 933 and sign == '/' and num2 == 227:
print('933/227 = 4.11013215859')
if num1 == 933 and sign == '/' and num2 == 228:
print('933/228 = 4.09210526316')
if num1 == 933 and sign == '/' and num2 == 229:
print('933/229 = 4.07423580786')
if num1 == 933 and sign == '/' and num2 == 230:
print('933/230 = 4.05652173913')
if num1 == 933 and sign == '/' and num2 == 231:
print('933/231 = 4.03896103896')
if num1 == 933 and sign == '/' and num2 == 232:
print('933/232 = 4.02155172414')
if num1 == 933 and sign == '/' and num2 == 233:
print('933/233 = 4.00429184549')
if num1 == 933 and sign == '/' and num2 == 234:
print('933/234 = 3.98717948718')
if num1 == 933 and sign == '/' and num2 == 235:
print('933/235 = 3.97021276596')
if num1 == 933 and sign == '/' and num2 == 236:
print('933/236 = 3.95338983051')
if num1 == 933 and sign == '/' and num2 == 237:
print('933/237 = 3.93670886076')
if num1 == 933 and sign == '/' and num2 == 238:
print('933/238 = 3.92016806723')
if num1 == 933 and sign == '/' and num2 == 239:
print('933/239 = 3.90376569038')
if num1 == 933 and sign == '/' and num2 == 240:
print('933/240 = 3.8875')
if num1 == 933 and sign == '/' and num2 == 241:
print('933/241 = 3.87136929461')
if num1 == 933 and sign == '/' and num2 == 242:
print('933/242 = 3.85537190083')
if num1 == 933 and sign == '/' and num2 == 243:
print('933/243 = 3.83950617284')
if num1 == 933 and sign == '/' and num2 == 244:
print('933/244 = 3.8237704918')
if num1 == 933 and sign == '/' and num2 == 245:
print('933/245 = 3.80816326531')
if num1 == 933 and sign == '/' and num2 == 246:
print('933/246 = 3.79268292683')
if num1 == 933 and sign == '/' and num2 == 247:
print('933/247 = 3.77732793522')
if num1 == 933 and sign == '/' and num2 == 248:
print('933/248 = 3.76209677419')
if num1 == 933 and sign == '/' and num2 == 249:
print('933/249 = 3.74698795181')
if num1 == 934 and sign == '/' and num2 == 200:
print('934/200 = 4.67')
if num1 == 934 and sign == '/' and num2 == 201:
print('934/201 = 4.64676616915')
if num1 == 934 and sign == '/' and num2 == 202:
print('934/202 = 4.62376237624')
if num1 == 934 and sign == '/' and num2 == 203:
print('934/203 = 4.60098522167')
if num1 == 934 and sign == '/' and num2 == 204:
print('934/204 = 4.57843137255')
if num1 == 934 and sign == '/' and num2 == 205:
print('934/205 = 4.55609756098')
if num1 == 934 and sign == '/' and num2 == 206:
print('934/206 = 4.53398058252')
if num1 == 934 and sign == '/' and num2 == 207:
print('934/207 = 4.51207729469')
if num1 == 934 and sign == '/' and num2 == 208:
print('934/208 = 4.49038461538')
if num1 == 934 and sign == '/' and num2 == 209:
print('934/209 = 4.46889952153')
if num1 == 934 and sign == '/' and num2 == 210:
print('934/210 = 4.44761904762')
if num1 == 934 and sign == '/' and num2 == 211:
print('934/211 = 4.42654028436')
if num1 == 934 and sign == '/' and num2 == 212:
print('934/212 = 4.40566037736')
if num1 == 934 and sign == '/' and num2 == 213:
print('934/213 = 4.38497652582')
if num1 == 934 and sign == '/' and num2 == 214:
print('934/214 = 4.36448598131')
if num1 == 934 and sign == '/' and num2 == 215:
print('934/215 = 4.34418604651')
if num1 == 934 and sign == '/' and num2 == 216:
print('934/216 = 4.32407407407')
if num1 == 934 and sign == '/' and num2 == 217:
print('934/217 = 4.30414746544')
if num1 == 934 and sign == '/' and num2 == 218:
print('934/218 = 4.28440366972')
if num1 == 934 and sign == '/' and num2 == 219:
print('934/219 = 4.26484018265')
if num1 == 934 and sign == '/' and num2 == 220:
print('934/220 = 4.24545454545')
if num1 == 934 and sign == '/' and num2 == 221:
print('934/221 = 4.22624434389')
if num1 == 934 and sign == '/' and num2 == 222:
print('934/222 = 4.20720720721')
if num1 == 934 and sign == '/' and num2 == 223:
print('934/223 = 4.18834080717')
if num1 == 934 and sign == '/' and num2 == 224:
print('934/224 = 4.16964285714')
if num1 == 934 and sign == '/' and num2 == 225:
print('934/225 = 4.15111111111')
if num1 == 934 and sign == '/' and num2 == 226:
print('934/226 = 4.13274336283')
if num1 == 934 and sign == '/' and num2 == 227:
print('934/227 = 4.11453744493')
if num1 == 934 and sign == '/' and num2 == 228:
print('934/228 = 4.09649122807')
if num1 == 934 and sign == '/' and num2 == 229:
print('934/229 = 4.07860262009')
if num1 == 934 and sign == '/' and num2 == 230:
print('934/230 = 4.06086956522')
if num1 == 934 and sign == '/' and num2 == 231:
print('934/231 = 4.04329004329')
if num1 == 934 and sign == '/' and num2 == 232:
print('934/232 = 4.02586206897')
if num1 == 934 and sign == '/' and num2 == 233:
print('934/233 = 4.00858369099')
if num1 == 934 and sign == '/' and num2 == 234:
print('934/234 = 3.99145299145')
if num1 == 934 and sign == '/' and num2 == 235:
print('934/235 = 3.97446808511')
if num1 == 934 and sign == '/' and num2 == 236:
print('934/236 = 3.95762711864')
if num1 == 934 and sign == '/' and num2 == 237:
print('934/237 = 3.94092827004')
if num1 == 934 and sign == '/' and num2 == 238:
print('934/238 = 3.9243697479')
if num1 == 934 and sign == '/' and num2 == 239:
print('934/239 = 3.90794979079')
if num1 == 934 and sign == '/' and num2 == 240:
print('934/240 = 3.89166666667')
if num1 == 934 and sign == '/' and num2 == 241:
print('934/241 = 3.8755186722')
if num1 == 934 and sign == '/' and num2 == 242:
print('934/242 = 3.85950413223')
if num1 == 934 and sign == '/' and num2 == 243:
print('934/243 = 3.84362139918')
if num1 == 934 and sign == '/' and num2 == 244:
print('934/244 = 3.82786885246')
if num1 == 934 and sign == '/' and num2 == 245:
print('934/245 = 3.81224489796')
if num1 == 934 and sign == '/' and num2 == 246:
print('934/246 = 3.79674796748')
if num1 == 934 and sign == '/' and num2 == 247:
print('934/247 = 3.78137651822')
if num1 == 934 and sign == '/' and num2 == 248:
print('934/248 = 3.76612903226')
if num1 == 934 and sign == '/' and num2 == 249:
print('934/249 = 3.75100401606')
if num1 == 935 and sign == '/' and num2 == 200:
print('935/200 = 4.675')
if num1 == 935 and sign == '/' and num2 == 201:
print('935/201 = 4.65174129353')
if num1 == 935 and sign == '/' and num2 == 202:
print('935/202 = 4.62871287129')
if num1 == 935 and sign == '/' and num2 == 203:
print('935/203 = 4.60591133005')
if num1 == 935 and sign == '/' and num2 == 204:
print('935/204 = 4.58333333333')
if num1 == 935 and sign == '/' and num2 == 205:
print('935/205 = 4.56097560976')
if num1 == 935 and sign == '/' and num2 == 206:
print('935/206 = 4.53883495146')
if num1 == 935 and sign == '/' and num2 == 207:
print('935/207 = 4.51690821256')
if num1 == 935 and sign == '/' and num2 == 208:
print('935/208 = 4.49519230769')
if num1 == 935 and sign == '/' and num2 == 209:
print('935/209 = 4.47368421053')
if num1 == 935 and sign == '/' and num2 == 210:
print('935/210 = 4.45238095238')
if num1 == 935 and sign == '/' and num2 == 211:
print('935/211 = 4.43127962085')
if num1 == 935 and sign == '/' and num2 == 212:
print('935/212 = 4.41037735849')
if num1 == 935 and sign == '/' and num2 == 213:
print('935/213 = 4.3896713615')
if num1 == 935 and sign == '/' and num2 == 214:
print('935/214 = 4.3691588785')
if num1 == 935 and sign == '/' and num2 == 215:
print('935/215 = 4.3488372093')
if num1 == 935 and sign == '/' and num2 == 216:
print('935/216 = 4.3287037037')
if num1 == 935 and sign == '/' and num2 == 217:
print('935/217 = 4.30875576037')
if num1 == 935 and sign == '/' and num2 == 218:
print('935/218 = 4.28899082569')
if num1 == 935 and sign == '/' and num2 == 219:
print('935/219 = 4.26940639269')
if num1 == 935 and sign == '/' and num2 == 220:
print('935/220 = 4.25')
if num1 == 935 and sign == '/' and num2 == 221:
print('935/221 = 4.23076923077')
if num1 == 935 and sign == '/' and num2 == 222:
print('935/222 = 4.21171171171')
if num1 == 935 and sign == '/' and num2 == 223:
print('935/223 = 4.19282511211')
if num1 == 935 and sign == '/' and num2 == 224:
print('935/224 = 4.17410714286')
if num1 == 935 and sign == '/' and num2 == 225:
print('935/225 = 4.15555555556')
if num1 == 935 and sign == '/' and num2 == 226:
print('935/226 = 4.13716814159')
if num1 == 935 and sign == '/' and num2 == 227:
print('935/227 = 4.11894273128')
if num1 == 935 and sign == '/' and num2 == 228:
print('935/228 = 4.10087719298')
if num1 == 935 and sign == '/' and num2 == 229:
print('935/229 = 4.08296943231')
if num1 == 935 and sign == '/' and num2 == 230:
print('935/230 = 4.0652173913')
if num1 == 935 and sign == '/' and num2 == 231:
print('935/231 = 4.04761904762')
if num1 == 935 and sign == '/' and num2 == 232:
print('935/232 = 4.03017241379')
if num1 == 935 and sign == '/' and num2 == 233:
print('935/233 = 4.01287553648')
if num1 == 935 and sign == '/' and num2 == 234:
print('935/234 = 3.99572649573')
if num1 == 935 and sign == '/' and num2 == 235:
print('935/235 = 3.97872340426')
if num1 == 935 and sign == '/' and num2 == 236:
print('935/236 = 3.96186440678')
if num1 == 935 and sign == '/' and num2 == 237:
print('935/237 = 3.94514767932')
if num1 == 935 and sign == '/' and num2 == 238:
print('935/238 = 3.92857142857')
if num1 == 935 and sign == '/' and num2 == 239:
print('935/239 = 3.91213389121')
if num1 == 935 and sign == '/' and num2 == 240:
print('935/240 = 3.89583333333')
if num1 == 935 and sign == '/' and num2 == 241:
print('935/241 = 3.87966804979')
if num1 == 935 and sign == '/' and num2 == 242:
print('935/242 = 3.86363636364')
if num1 == 935 and sign == '/' and num2 == 243:
print('935/243 = 3.84773662551')
if num1 == 935 and sign == '/' and num2 == 244:
print('935/244 = 3.83196721311')
if num1 == 935 and sign == '/' and num2 == 245:
print('935/245 = 3.81632653061')
if num1 == 935 and sign == '/' and num2 == 246:
print('935/246 = 3.80081300813')
if num1 == 935 and sign == '/' and num2 == 247:
print('935/247 = 3.78542510121')
if num1 == 935 and sign == '/' and num2 == 248:
print('935/248 = 3.77016129032')
if num1 == 935 and sign == '/' and num2 == 249:
print('935/249 = 3.75502008032')
if num1 == 936 and sign == '/' and num2 == 200:
print('936/200 = 4.68')
if num1 == 936 and sign == '/' and num2 == 201:
print('936/201 = 4.65671641791')
if num1 == 936 and sign == '/' and num2 == 202:
print('936/202 = 4.63366336634')
if num1 == 936 and sign == '/' and num2 == 203:
print('936/203 = 4.61083743842')
if num1 == 936 and sign == '/' and num2 == 204:
print('936/204 = 4.58823529412')
if num1 == 936 and sign == '/' and num2 == 205:
print('936/205 = 4.56585365854')
if num1 == 936 and sign == '/' and num2 == 206:
print('936/206 = 4.54368932039')
if num1 == 936 and sign == '/' and num2 == 207:
print('936/207 = 4.52173913043')
if num1 == 936 and sign == '/' and num2 == 208:
print('936/208 = 4.5')
if num1 == 936 and sign == '/' and num2 == 209:
print('936/209 = 4.47846889952')
if num1 == 936 and sign == '/' and num2 == 210:
print('936/210 = 4.45714285714')
if num1 == 936 and sign == '/' and num2 == 211:
print('936/211 = 4.43601895735')
if num1 == 936 and sign == '/' and num2 == 212:
print('936/212 = 4.41509433962')
if num1 == 936 and sign == '/' and num2 == 213:
print('936/213 = 4.39436619718')
if num1 == 936 and sign == '/' and num2 == 214:
print('936/214 = 4.3738317757')
if num1 == 936 and sign == '/' and num2 == 215:
print('936/215 = 4.35348837209')
if num1 == 936 and sign == '/' and num2 == 216:
print('936/216 = 4.33333333333')
if num1 == 936 and sign == '/' and num2 == 217:
print('936/217 = 4.3133640553')
if num1 == 936 and sign == '/' and num2 == 218:
print('936/218 = 4.29357798165')
if num1 == 936 and sign == '/' and num2 == 219:
print('936/219 = 4.27397260274')
if num1 == 936 and sign == '/' and num2 == 220:
print('936/220 = 4.25454545455')
if num1 == 936 and sign == '/' and num2 == 221:
print('936/221 = 4.23529411765')
if num1 == 936 and sign == '/' and num2 == 222:
print('936/222 = 4.21621621622')
if num1 == 936 and sign == '/' and num2 == 223:
print('936/223 = 4.19730941704')
if num1 == 936 and sign == '/' and num2 == 224:
print('936/224 = 4.17857142857')
if num1 == 936 and sign == '/' and num2 == 225:
print('936/225 = 4.16')
if num1 == 936 and sign == '/' and num2 == 226:
print('936/226 = 4.14159292035')
if num1 == 936 and sign == '/' and num2 == 227:
print('936/227 = 4.12334801762')
if num1 == 936 and sign == '/' and num2 == 228:
print('936/228 = 4.10526315789')
if num1 == 936 and sign == '/' and num2 == 229:
print('936/229 = 4.08733624454')
if num1 == 936 and sign == '/' and num2 == 230:
print('936/230 = 4.06956521739')
if num1 == 936 and sign == '/' and num2 == 231:
print('936/231 = 4.05194805195')
if num1 == 936 and sign == '/' and num2 == 232:
print('936/232 = 4.03448275862')
if num1 == 936 and sign == '/' and num2 == 233:
print('936/233 = 4.01716738197')
if num1 == 936 and sign == '/' and num2 == 234:
print('936/234 = 4.0')
if num1 == 936 and sign == '/' and num2 == 235:
print('936/235 = 3.9829787234')
if num1 == 936 and sign == '/' and num2 == 236:
print('936/236 = 3.96610169492')
if num1 == 936 and sign == '/' and num2 == 237:
print('936/237 = 3.94936708861')
if num1 == 936 and sign == '/' and num2 == 238:
print('936/238 = 3.93277310924')
if num1 == 936 and sign == '/' and num2 == 239:
print('936/239 = 3.91631799163')
if num1 == 936 and sign == '/' and num2 == 240:
print('936/240 = 3.9')
if num1 == 936 and sign == '/' and num2 == 241:
print('936/241 = 3.88381742739')
if num1 == 936 and sign == '/' and num2 == 242:
print('936/242 = 3.86776859504')
if num1 == 936 and sign == '/' and num2 == 243:
print('936/243 = 3.85185185185')
if num1 == 936 and sign == '/' and num2 == 244:
print('936/244 = 3.83606557377')
if num1 == 936 and sign == '/' and num2 == 245:
print('936/245 = 3.82040816327')
if num1 == 936 and sign == '/' and num2 == 246:
print('936/246 = 3.80487804878')
if num1 == 936 and sign == '/' and num2 == 247:
print('936/247 = 3.78947368421')
if num1 == 936 and sign == '/' and num2 == 248:
print('936/248 = 3.77419354839')
if num1 == 936 and sign == '/' and num2 == 249:
print('936/249 = 3.75903614458')
if num1 == 937 and sign == '/' and num2 == 200:
print('937/200 = 4.685')
if num1 == 937 and sign == '/' and num2 == 201:
print('937/201 = 4.66169154229')
if num1 == 937 and sign == '/' and num2 == 202:
print('937/202 = 4.63861386139')
if num1 == 937 and sign == '/' and num2 == 203:
print('937/203 = 4.6157635468')
if num1 == 937 and sign == '/' and num2 == 204:
print('937/204 = 4.5931372549')
if num1 == 937 and sign == '/' and num2 == 205:
print('937/205 = 4.57073170732')
if num1 == 937 and sign == '/' and num2 == 206:
print('937/206 = 4.54854368932')
if num1 == 937 and sign == '/' and num2 == 207:
print('937/207 = 4.52657004831')
if num1 == 937 and sign == '/' and num2 == 208:
print('937/208 = 4.50480769231')
if num1 == 937 and sign == '/' and num2 == 209:
print('937/209 = 4.48325358852')
if num1 == 937 and sign == '/' and num2 == 210:
print('937/210 = 4.4619047619')
if num1 == 937 and sign == '/' and num2 == 211:
print('937/211 = 4.44075829384')
if num1 == 937 and sign == '/' and num2 == 212:
print('937/212 = 4.41981132075')
if num1 == 937 and sign == '/' and num2 == 213:
print('937/213 = 4.39906103286')
if num1 == 937 and sign == '/' and num2 == 214:
print('937/214 = 4.3785046729')
if num1 == 937 and sign == '/' and num2 == 215:
print('937/215 = 4.35813953488')
if num1 == 937 and sign == '/' and num2 == 216:
print('937/216 = 4.33796296296')
if num1 == 937 and sign == '/' and num2 == 217:
print('937/217 = 4.31797235023')
if num1 == 937 and sign == '/' and num2 == 218:
print('937/218 = 4.29816513761')
if num1 == 937 and sign == '/' and num2 == 219:
print('937/219 = 4.27853881279')
if num1 == 937 and sign == '/' and num2 == 220:
print('937/220 = 4.25909090909')
if num1 == 937 and sign == '/' and num2 == 221:
print('937/221 = 4.23981900452')
if num1 == 937 and sign == '/' and num2 == 222:
print('937/222 = 4.22072072072')
if num1 == 937 and sign == '/' and num2 == 223:
print('937/223 = 4.20179372197')
if num1 == 937 and sign == '/' and num2 == 224:
print('937/224 = 4.18303571429')
if num1 == 937 and sign == '/' and num2 == 225:
print('937/225 = 4.16444444444')
if num1 == 937 and sign == '/' and num2 == 226:
print('937/226 = 4.14601769912')
if num1 == 937 and sign == '/' and num2 == 227:
print('937/227 = 4.12775330396')
if num1 == 937 and sign == '/' and num2 == 228:
print('937/228 = 4.10964912281')
if num1 == 937 and sign == '/' and num2 == 229:
print('937/229 = 4.09170305677')
if num1 == 937 and sign == '/' and num2 == 230:
print('937/230 = 4.07391304348')
if num1 == 937 and sign == '/' and num2 == 231:
print('937/231 = 4.05627705628')
if num1 == 937 and sign == '/' and num2 == 232:
print('937/232 = 4.03879310345')
if num1 == 937 and sign == '/' and num2 == 233:
print('937/233 = 4.02145922747')
if num1 == 937 and sign == '/' and num2 == 234:
print('937/234 = 4.00427350427')
if num1 == 937 and sign == '/' and num2 == 235:
print('937/235 = 3.98723404255')
if num1 == 937 and sign == '/' and num2 == 236:
print('937/236 = 3.97033898305')
if num1 == 937 and sign == '/' and num2 == 237:
print('937/237 = 3.95358649789')
if num1 == 937 and sign == '/' and num2 == 238:
print('937/238 = 3.93697478992')
if num1 == 937 and sign == '/' and num2 == 239:
print('937/239 = 3.92050209205')
if num1 == 937 and sign == '/' and num2 == 240:
print('937/240 = 3.90416666667')
if num1 == 937 and sign == '/' and num2 == 241:
print('937/241 = 3.88796680498')
if num1 == 937 and sign == '/' and num2 == 242:
print('937/242 = 3.87190082645')
if num1 == 937 and sign == '/' and num2 == 243:
print('937/243 = 3.85596707819')
if num1 == 937 and sign == '/' and num2 == 244:
print('937/244 = 3.84016393443')
if num1 == 937 and sign == '/' and num2 == 245:
print('937/245 = 3.82448979592')
if num1 == 937 and sign == '/' and num2 == 246:
print('937/246 = 3.80894308943')
if num1 == 937 and sign == '/' and num2 == 247:
print('937/247 = 3.79352226721')
if num1 == 937 and sign == '/' and num2 == 248:
print('937/248 = 3.77822580645')
if num1 == 937 and sign == '/' and num2 == 249:
print('937/249 = 3.76305220884')
if num1 == 938 and sign == '/' and num2 == 200:
print('938/200 = 4.69')
if num1 == 938 and sign == '/' and num2 == 201:
print('938/201 = 4.66666666667')
if num1 == 938 and sign == '/' and num2 == 202:
print('938/202 = 4.64356435644')
if num1 == 938 and sign == '/' and num2 == 203:
print('938/203 = 4.62068965517')
if num1 == 938 and sign == '/' and num2 == 204:
print('938/204 = 4.59803921569')
if num1 == 938 and sign == '/' and num2 == 205:
print('938/205 = 4.5756097561')
if num1 == 938 and sign == '/' and num2 == 206:
print('938/206 = 4.55339805825')
if num1 == 938 and sign == '/' and num2 == 207:
print('938/207 = 4.53140096618')
if num1 == 938 and sign == '/' and num2 == 208:
print('938/208 = 4.50961538462')
if num1 == 938 and sign == '/' and num2 == 209:
print('938/209 = 4.48803827751')
if num1 == 938 and sign == '/' and num2 == 210:
print('938/210 = 4.46666666667')
if num1 == 938 and sign == '/' and num2 == 211:
print('938/211 = 4.44549763033')
if num1 == 938 and sign == '/' and num2 == 212:
print('938/212 = 4.42452830189')
if num1 == 938 and sign == '/' and num2 == 213:
print('938/213 = 4.40375586854')
if num1 == 938 and sign == '/' and num2 == 214:
print('938/214 = 4.38317757009')
if num1 == 938 and sign == '/' and num2 == 215:
print('938/215 = 4.36279069767')
if num1 == 938 and sign == '/' and num2 == 216:
print('938/216 = 4.34259259259')
if num1 == 938 and sign == '/' and num2 == 217:
print('938/217 = 4.32258064516')
if num1 == 938 and sign == '/' and num2 == 218:
print('938/218 = 4.30275229358')
if num1 == 938 and sign == '/' and num2 == 219:
print('938/219 = 4.28310502283')
if num1 == 938 and sign == '/' and num2 == 220:
print('938/220 = 4.26363636364')
if num1 == 938 and sign == '/' and num2 == 221:
print('938/221 = 4.2443438914')
if num1 == 938 and sign == '/' and num2 == 222:
print('938/222 = 4.22522522523')
if num1 == 938 and sign == '/' and num2 == 223:
print('938/223 = 4.20627802691')
if num1 == 938 and sign == '/' and num2 == 224:
print('938/224 = 4.1875')
if num1 == 938 and sign == '/' and num2 == 225:
print('938/225 = 4.16888888889')
if num1 == 938 and sign == '/' and num2 == 226:
print('938/226 = 4.15044247788')
if num1 == 938 and sign == '/' and num2 == 227:
print('938/227 = 4.13215859031')
if num1 == 938 and sign == '/' and num2 == 228:
print('938/228 = 4.11403508772')
if num1 == 938 and sign == '/' and num2 == 229:
print('938/229 = 4.096069869')
if num1 == 938 and sign == '/' and num2 == 230:
print('938/230 = 4.07826086957')
if num1 == 938 and sign == '/' and num2 == 231:
print('938/231 = 4.06060606061')
if num1 == 938 and sign == '/' and num2 == 232:
print('938/232 = 4.04310344828')
if num1 == 938 and sign == '/' and num2 == 233:
print('938/233 = 4.02575107296')
if num1 == 938 and sign == '/' and num2 == 234:
print('938/234 = 4.00854700855')
if num1 == 938 and sign == '/' and num2 == 235:
print('938/235 = 3.9914893617')
if num1 == 938 and sign == '/' and num2 == 236:
print('938/236 = 3.97457627119')
if num1 == 938 and sign == '/' and num2 == 237:
print('938/237 = 3.95780590717')
if num1 == 938 and sign == '/' and num2 == 238:
print('938/238 = 3.94117647059')
if num1 == 938 and sign == '/' and num2 == 239:
print('938/239 = 3.92468619247')
if num1 == 938 and sign == '/' and num2 == 240:
print('938/240 = 3.90833333333')
if num1 == 938 and sign == '/' and num2 == 241:
print('938/241 = 3.89211618257')
if num1 == 938 and sign == '/' and num2 == 242:
print('938/242 = 3.87603305785')
if num1 == 938 and sign == '/' and num2 == 243:
print('938/243 = 3.86008230453')
if num1 == 938 and sign == '/' and num2 == 244:
print('938/244 = 3.84426229508')
if num1 == 938 and sign == '/' and num2 == 245:
print('938/245 = 3.82857142857')
if num1 == 938 and sign == '/' and num2 == 246:
print('938/246 = 3.81300813008')
if num1 == 938 and sign == '/' and num2 == 247:
print('938/247 = 3.7975708502')
if num1 == 938 and sign == '/' and num2 == 248:
print('938/248 = 3.78225806452')
if num1 == 938 and sign == '/' and num2 == 249:
print('938/249 = 3.76706827309')
if num1 == 939 and sign == '/' and num2 == 200:
print('939/200 = 4.695')
if num1 == 939 and sign == '/' and num2 == 201:
print('939/201 = 4.67164179104')
if num1 == 939 and sign == '/' and num2 == 202:
print('939/202 = 4.64851485149')
if num1 == 939 and sign == '/' and num2 == 203:
print('939/203 = 4.62561576355')
if num1 == 939 and sign == '/' and num2 == 204:
print('939/204 = 4.60294117647')
if num1 == 939 and sign == '/' and num2 == 205:
print('939/205 = 4.58048780488')
if num1 == 939 and sign == '/' and num2 == 206:
print('939/206 = 4.55825242718')
if num1 == 939 and sign == '/' and num2 == 207:
print('939/207 = 4.53623188406')
if num1 == 939 and sign == '/' and num2 == 208:
print('939/208 = 4.51442307692')
if num1 == 939 and sign == '/' and num2 == 209:
print('939/209 = 4.49282296651')
if num1 == 939 and sign == '/' and num2 == 210:
print('939/210 = 4.47142857143')
if num1 == 939 and sign == '/' and num2 == 211:
print('939/211 = 4.45023696682')
if num1 == 939 and sign == '/' and num2 == 212:
print('939/212 = 4.42924528302')
if num1 == 939 and sign == '/' and num2 == 213:
print('939/213 = 4.40845070423')
if num1 == 939 and sign == '/' and num2 == 214:
print('939/214 = 4.38785046729')
if num1 == 939 and sign == '/' and num2 == 215:
print('939/215 = 4.36744186047')
if num1 == 939 and sign == '/' and num2 == 216:
print('939/216 = 4.34722222222')
if num1 == 939 and sign == '/' and num2 == 217:
print('939/217 = 4.32718894009')
if num1 == 939 and sign == '/' and num2 == 218:
print('939/218 = 4.30733944954')
if num1 == 939 and sign == '/' and num2 == 219:
print('939/219 = 4.28767123288')
if num1 == 939 and sign == '/' and num2 == 220:
print('939/220 = 4.26818181818')
if num1 == 939 and sign == '/' and num2 == 221:
print('939/221 = 4.24886877828')
if num1 == 939 and sign == '/' and num2 == 222:
print('939/222 = 4.22972972973')
if num1 == 939 and sign == '/' and num2 == 223:
print('939/223 = 4.21076233184')
if num1 == 939 and sign == '/' and num2 == 224:
print('939/224 = 4.19196428571')
if num1 == 939 and sign == '/' and num2 == 225:
print('939/225 = 4.17333333333')
if num1 == 939 and sign == '/' and num2 == 226:
print('939/226 = 4.15486725664')
if num1 == 939 and sign == '/' and num2 == 227:
print('939/227 = 4.13656387665')
if num1 == 939 and sign == '/' and num2 == 228:
print('939/228 = 4.11842105263')
if num1 == 939 and sign == '/' and num2 == 229:
print('939/229 = 4.10043668122')
if num1 == 939 and sign == '/' and num2 == 230:
print('939/230 = 4.08260869565')
if num1 == 939 and sign == '/' and num2 == 231:
print('939/231 = 4.06493506494')
if num1 == 939 and sign == '/' and num2 == 232:
print('939/232 = 4.0474137931')
if num1 == 939 and sign == '/' and num2 == 233:
print('939/233 = 4.03004291845')
if num1 == 939 and sign == '/' and num2 == 234:
print('939/234 = 4.01282051282')
if num1 == 939 and sign == '/' and num2 == 235:
print('939/235 = 3.99574468085')
if num1 == 939 and sign == '/' and num2 == 236:
print('939/236 = 3.97881355932')
if num1 == 939 and sign == '/' and num2 == 237:
print('939/237 = 3.96202531646')
if num1 == 939 and sign == '/' and num2 == 238:
print('939/238 = 3.94537815126')
if num1 == 939 and sign == '/' and num2 == 239:
print('939/239 = 3.92887029289')
if num1 == 939 and sign == '/' and num2 == 240:
print('939/240 = 3.9125')
if num1 == 939 and sign == '/' and num2 == 241:
print('939/241 = 3.89626556017')
if num1 == 939 and sign == '/' and num2 == 242:
print('939/242 = 3.88016528926')
if num1 == 939 and sign == '/' and num2 == 243:
print('939/243 = 3.86419753086')
if num1 == 939 and sign == '/' and num2 == 244:
print('939/244 = 3.84836065574')
if num1 == 939 and sign == '/' and num2 == 245:
print('939/245 = 3.83265306122')
if num1 == 939 and sign == '/' and num2 == 246:
print('939/246 = 3.81707317073')
if num1 == 939 and sign == '/' and num2 == 247:
print('939/247 = 3.8016194332')
if num1 == 939 and sign == '/' and num2 == 248:
print('939/248 = 3.78629032258')
if num1 == 939 and sign == '/' and num2 == 249:
print('939/249 = 3.77108433735')
if num1 == 940 and sign == '/' and num2 == 200:
print('940/200 = 4.7')
if num1 == 940 and sign == '/' and num2 == 201:
print('940/201 = 4.67661691542')
if num1 == 940 and sign == '/' and num2 == 202:
print('940/202 = 4.65346534653')
if num1 == 940 and sign == '/' and num2 == 203:
print('940/203 = 4.63054187192')
if num1 == 940 and sign == '/' and num2 == 204:
print('940/204 = 4.60784313725')
if num1 == 940 and sign == '/' and num2 == 205:
print('940/205 = 4.58536585366')
if num1 == 940 and sign == '/' and num2 == 206:
print('940/206 = 4.56310679612')
if num1 == 940 and sign == '/' and num2 == 207:
print('940/207 = 4.54106280193')
if num1 == 940 and sign == '/' and num2 == 208:
print('940/208 = 4.51923076923')
if num1 == 940 and sign == '/' and num2 == 209:
print('940/209 = 4.4976076555')
if num1 == 940 and sign == '/' and num2 == 210:
print('940/210 = 4.47619047619')
if num1 == 940 and sign == '/' and num2 == 211:
print('940/211 = 4.45497630332')
if num1 == 940 and sign == '/' and num2 == 212:
print('940/212 = 4.43396226415')
if num1 == 940 and sign == '/' and num2 == 213:
print('940/213 = 4.41314553991')
if num1 == 940 and sign == '/' and num2 == 214:
print('940/214 = 4.39252336449')
if num1 == 940 and sign == '/' and num2 == 215:
print('940/215 = 4.37209302326')
if num1 == 940 and sign == '/' and num2 == 216:
print('940/216 = 4.35185185185')
if num1 == 940 and sign == '/' and num2 == 217:
print('940/217 = 4.33179723502')
if num1 == 940 and sign == '/' and num2 == 218:
print('940/218 = 4.3119266055')
if num1 == 940 and sign == '/' and num2 == 219:
print('940/219 = 4.29223744292')
if num1 == 940 and sign == '/' and num2 == 220:
print('940/220 = 4.27272727273')
if num1 == 940 and sign == '/' and num2 == 221:
print('940/221 = 4.25339366516')
if num1 == 940 and sign == '/' and num2 == 222:
print('940/222 = 4.23423423423')
if num1 == 940 and sign == '/' and num2 == 223:
print('940/223 = 4.21524663677')
if num1 == 940 and sign == '/' and num2 == 224:
print('940/224 = 4.19642857143')
if num1 == 940 and sign == '/' and num2 == 225:
print('940/225 = 4.17777777778')
if num1 == 940 and sign == '/' and num2 == 226:
print('940/226 = 4.1592920354')
if num1 == 940 and sign == '/' and num2 == 227:
print('940/227 = 4.140969163')
if num1 == 940 and sign == '/' and num2 == 228:
print('940/228 = 4.12280701754')
if num1 == 940 and sign == '/' and num2 == 229:
print('940/229 = 4.10480349345')
if num1 == 940 and sign == '/' and num2 == 230:
print('940/230 = 4.08695652174')
if num1 == 940 and sign == '/' and num2 == 231:
print('940/231 = 4.06926406926')
if num1 == 940 and sign == '/' and num2 == 232:
print('940/232 = 4.05172413793')
if num1 == 940 and sign == '/' and num2 == 233:
print('940/233 = 4.03433476395')
if num1 == 940 and sign == '/' and num2 == 234:
print('940/234 = 4.01709401709')
if num1 == 940 and sign == '/' and num2 == 235:
print('940/235 = 4.0')
if num1 == 940 and sign == '/' and num2 == 236:
print('940/236 = 3.98305084746')
if num1 == 940 and sign == '/' and num2 == 237:
print('940/237 = 3.96624472574')
if num1 == 940 and sign == '/' and num2 == 238:
print('940/238 = 3.94957983193')
if num1 == 940 and sign == '/' and num2 == 239:
print('940/239 = 3.93305439331')
if num1 == 940 and sign == '/' and num2 == 240:
print('940/240 = 3.91666666667')
if num1 == 940 and sign == '/' and num2 == 241:
print('940/241 = 3.90041493776')
if num1 == 940 and sign == '/' and num2 == 242:
print('940/242 = 3.88429752066')
if num1 == 940 and sign == '/' and num2 == 243:
print('940/243 = 3.8683127572')
if num1 == 940 and sign == '/' and num2 == 244:
print('940/244 = 3.85245901639')
if num1 == 940 and sign == '/' and num2 == 245:
print('940/245 = 3.83673469388')
if num1 == 940 and sign == '/' and num2 == 246:
print('940/246 = 3.82113821138')
if num1 == 940 and sign == '/' and num2 == 247:
print('940/247 = 3.80566801619')
if num1 == 940 and sign == '/' and num2 == 248:
print('940/248 = 3.79032258065')
if num1 == 940 and sign == '/' and num2 == 249:
print('940/249 = 3.77510040161')
if num1 == 941 and sign == '/' and num2 == 200:
print('941/200 = 4.705')
if num1 == 941 and sign == '/' and num2 == 201:
print('941/201 = 4.6815920398')
if num1 == 941 and sign == '/' and num2 == 202:
print('941/202 = 4.65841584158')
if num1 == 941 and sign == '/' and num2 == 203:
print('941/203 = 4.6354679803')
if num1 == 941 and sign == '/' and num2 == 204:
print('941/204 = 4.61274509804')
if num1 == 941 and sign == '/' and num2 == 205:
print('941/205 = 4.59024390244')
if num1 == 941 and sign == '/' and num2 == 206:
print('941/206 = 4.56796116505')
if num1 == 941 and sign == '/' and num2 == 207:
print('941/207 = 4.54589371981')
if num1 == 941 and sign == '/' and num2 == 208:
print('941/208 = 4.52403846154')
if num1 == 941 and sign == '/' and num2 == 209:
print('941/209 = 4.5023923445')
if num1 == 941 and sign == '/' and num2 == 210:
print('941/210 = 4.48095238095')
if num1 == 941 and sign == '/' and num2 == 211:
print('941/211 = 4.45971563981')
if num1 == 941 and sign == '/' and num2 == 212:
print('941/212 = 4.43867924528')
if num1 == 941 and sign == '/' and num2 == 213:
print('941/213 = 4.41784037559')
if num1 == 941 and sign == '/' and num2 == 214:
print('941/214 = 4.39719626168')
if num1 == 941 and sign == '/' and num2 == 215:
print('941/215 = 4.37674418605')
if num1 == 941 and sign == '/' and num2 == 216:
print('941/216 = 4.35648148148')
if num1 == 941 and sign == '/' and num2 == 217:
print('941/217 = 4.33640552995')
if num1 == 941 and sign == '/' and num2 == 218:
print('941/218 = 4.31651376147')
if num1 == 941 and sign == '/' and num2 == 219:
print('941/219 = 4.29680365297')
if num1 == 941 and sign == '/' and num2 == 220:
print('941/220 = 4.27727272727')
if num1 == 941 and sign == '/' and num2 == 221:
print('941/221 = 4.25791855204')
if num1 == 941 and sign == '/' and num2 == 222:
print('941/222 = 4.23873873874')
if num1 == 941 and sign == '/' and num2 == 223:
print('941/223 = 4.2197309417')
if num1 == 941 and sign == '/' and num2 == 224:
print('941/224 = 4.20089285714')
if num1 == 941 and sign == '/' and num2 == 225:
print('941/225 = 4.18222222222')
if num1 == 941 and sign == '/' and num2 == 226:
print('941/226 = 4.16371681416')
if num1 == 941 and sign == '/' and num2 == 227:
print('941/227 = 4.14537444934')
if num1 == 941 and sign == '/' and num2 == 228:
print('941/228 = 4.12719298246')
if num1 == 941 and sign == '/' and num2 == 229:
print('941/229 = 4.10917030568')
if num1 == 941 and sign == '/' and num2 == 230:
print('941/230 = 4.09130434783')
if num1 == 941 and sign == '/' and num2 == 231:
print('941/231 = 4.07359307359')
if num1 == 941 and sign == '/' and num2 == 232:
print('941/232 = 4.05603448276')
if num1 == 941 and sign == '/' and num2 == 233:
print('941/233 = 4.03862660944')
if num1 == 941 and sign == '/' and num2 == 234:
print('941/234 = 4.02136752137')
if num1 == 941 and sign == '/' and num2 == 235:
print('941/235 = 4.00425531915')
if num1 == 941 and sign == '/' and num2 == 236:
print('941/236 = 3.98728813559')
if num1 == 941 and sign == '/' and num2 == 237:
print('941/237 = 3.97046413502')
if num1 == 941 and sign == '/' and num2 == 238:
print('941/238 = 3.95378151261')
if num1 == 941 and sign == '/' and num2 == 239:
print('941/239 = 3.93723849372')
if num1 == 941 and sign == '/' and num2 == 240:
print('941/240 = 3.92083333333')
if num1 == 941 and sign == '/' and num2 == 241:
print('941/241 = 3.90456431535')
if num1 == 941 and sign == '/' and num2 == 242:
print('941/242 = 3.88842975207')
if num1 == 941 and sign == '/' and num2 == 243:
print('941/243 = 3.87242798354')
if num1 == 941 and sign == '/' and num2 == 244:
print('941/244 = 3.85655737705')
if num1 == 941 and sign == '/' and num2 == 245:
print('941/245 = 3.84081632653')
if num1 == 941 and sign == '/' and num2 == 246:
print('941/246 = 3.82520325203')
if num1 == 941 and sign == '/' and num2 == 247:
print('941/247 = 3.80971659919')
if num1 == 941 and sign == '/' and num2 == 248:
print('941/248 = 3.79435483871')
if num1 == 941 and sign == '/' and num2 == 249:
print('941/249 = 3.77911646586')
if num1 == 942 and sign == '/' and num2 == 200:
print('942/200 = 4.71')
if num1 == 942 and sign == '/' and num2 == 201:
print('942/201 = 4.68656716418')
if num1 == 942 and sign == '/' and num2 == 202:
print('942/202 = 4.66336633663')
if num1 == 942 and sign == '/' and num2 == 203:
print('942/203 = 4.64039408867')
if num1 == 942 and sign == '/' and num2 == 204:
print('942/204 = 4.61764705882')
if num1 == 942 and sign == '/' and num2 == 205:
print('942/205 = 4.59512195122')
if num1 == 942 and sign == '/' and num2 == 206:
print('942/206 = 4.57281553398')
if num1 == 942 and sign == '/' and num2 == 207:
print('942/207 = 4.55072463768')
if num1 == 942 and sign == '/' and num2 == 208:
print('942/208 = 4.52884615385')
if num1 == 942 and sign == '/' and num2 == 209:
print('942/209 = 4.50717703349')
if num1 == 942 and sign == '/' and num2 == 210:
print('942/210 = 4.48571428571')
if num1 == 942 and sign == '/' and num2 == 211:
print('942/211 = 4.4644549763')
if num1 == 942 and sign == '/' and num2 == 212:
print('942/212 = 4.44339622642')
if num1 == 942 and sign == '/' and num2 == 213:
print('942/213 = 4.42253521127')
if num1 == 942 and sign == '/' and num2 == 214:
print('942/214 = 4.40186915888')
if num1 == 942 and sign == '/' and num2 == 215:
print('942/215 = 4.38139534884')
if num1 == 942 and sign == '/' and num2 == 216:
print('942/216 = 4.36111111111')
if num1 == 942 and sign == '/' and num2 == 217:
print('942/217 = 4.34101382488')
if num1 == 942 and sign == '/' and num2 == 218:
print('942/218 = 4.32110091743')
if num1 == 942 and sign == '/' and num2 == 219:
print('942/219 = 4.30136986301')
if num1 == 942 and sign == '/' and num2 == 220:
print('942/220 = 4.28181818182')
if num1 == 942 and sign == '/' and num2 == 221:
print('942/221 = 4.26244343891')
if num1 == 942 and sign == '/' and num2 == 222:
print('942/222 = 4.24324324324')
if num1 == 942 and sign == '/' and num2 == 223:
print('942/223 = 4.22421524664')
if num1 == 942 and sign == '/' and num2 == 224:
print('942/224 = 4.20535714286')
if num1 == 942 and sign == '/' and num2 == 225:
print('942/225 = 4.18666666667')
if num1 == 942 and sign == '/' and num2 == 226:
print('942/226 = 4.16814159292')
if num1 == 942 and sign == '/' and num2 == 227:
print('942/227 = 4.14977973568')
if num1 == 942 and sign == '/' and num2 == 228:
print('942/228 = 4.13157894737')
if num1 == 942 and sign == '/' and num2 == 229:
print('942/229 = 4.1135371179')
if num1 == 942 and sign == '/' and num2 == 230:
print('942/230 = 4.09565217391')
if num1 == 942 and sign == '/' and num2 == 231:
print('942/231 = 4.07792207792')
if num1 == 942 and sign == '/' and num2 == 232:
print('942/232 = 4.06034482759')
if num1 == 942 and sign == '/' and num2 == 233:
print('942/233 = 4.04291845494')
if num1 == 942 and sign == '/' and num2 == 234:
print('942/234 = 4.02564102564')
if num1 == 942 and sign == '/' and num2 == 235:
print('942/235 = 4.0085106383')
if num1 == 942 and sign == '/' and num2 == 236:
print('942/236 = 3.99152542373')
if num1 == 942 and sign == '/' and num2 == 237:
print('942/237 = 3.9746835443')
if num1 == 942 and sign == '/' and num2 == 238:
print('942/238 = 3.95798319328')
if num1 == 942 and sign == '/' and num2 == 239:
print('942/239 = 3.94142259414')
if num1 == 942 and sign == '/' and num2 == 240:
print('942/240 = 3.925')
if num1 == 942 and sign == '/' and num2 == 241:
print('942/241 = 3.90871369295')
if num1 == 942 and sign == '/' and num2 == 242:
print('942/242 = 3.89256198347')
if num1 == 942 and sign == '/' and num2 == 243:
print('942/243 = 3.87654320988')
if num1 == 942 and sign == '/' and num2 == 244:
print('942/244 = 3.8606557377')
if num1 == 942 and sign == '/' and num2 == 245:
print('942/245 = 3.84489795918')
if num1 == 942 and sign == '/' and num2 == 246:
print('942/246 = 3.82926829268')
if num1 == 942 and sign == '/' and num2 == 247:
print('942/247 = 3.81376518219')
if num1 == 942 and sign == '/' and num2 == 248:
print('942/248 = 3.79838709677')
if num1 == 942 and sign == '/' and num2 == 249:
print('942/249 = 3.78313253012')
if num1 == 943 and sign == '/' and num2 == 200:
print('943/200 = 4.715')
if num1 == 943 and sign == '/' and num2 == 201:
print('943/201 = 4.69154228856')
if num1 == 943 and sign == '/' and num2 == 202:
print('943/202 = 4.66831683168')
if num1 == 943 and sign == '/' and num2 == 203:
print('943/203 = 4.64532019704')
if num1 == 943 and sign == '/' and num2 == 204:
print('943/204 = 4.62254901961')
if num1 == 943 and sign == '/' and num2 == 205:
print('943/205 = 4.6')
if num1 == 943 and sign == '/' and num2 == 206:
print('943/206 = 4.57766990291')
if num1 == 943 and sign == '/' and num2 == 207:
print('943/207 = 4.55555555556')
if num1 == 943 and sign == '/' and num2 == 208:
print('943/208 = 4.53365384615')
if num1 == 943 and sign == '/' and num2 == 209:
print('943/209 = 4.51196172249')
if num1 == 943 and sign == '/' and num2 == 210:
print('943/210 = 4.49047619048')
if num1 == 943 and sign == '/' and num2 == 211:
print('943/211 = 4.4691943128')
if num1 == 943 and sign == '/' and num2 == 212:
print('943/212 = 4.44811320755')
if num1 == 943 and sign == '/' and num2 == 213:
print('943/213 = 4.42723004695')
if num1 == 943 and sign == '/' and num2 == 214:
print('943/214 = 4.40654205607')
if num1 == 943 and sign == '/' and num2 == 215:
print('943/215 = 4.38604651163')
if num1 == 943 and sign == '/' and num2 == 216:
print('943/216 = 4.36574074074')
if num1 == 943 and sign == '/' and num2 == 217:
print('943/217 = 4.34562211982')
if num1 == 943 and sign == '/' and num2 == 218:
print('943/218 = 4.32568807339')
if num1 == 943 and sign == '/' and num2 == 219:
print('943/219 = 4.30593607306')
if num1 == 943 and sign == '/' and num2 == 220:
print('943/220 = 4.28636363636')
if num1 == 943 and sign == '/' and num2 == 221:
print('943/221 = 4.26696832579')
if num1 == 943 and sign == '/' and num2 == 222:
print('943/222 = 4.24774774775')
if num1 == 943 and sign == '/' and num2 == 223:
print('943/223 = 4.22869955157')
if num1 == 943 and sign == '/' and num2 == 224:
print('943/224 = 4.20982142857')
if num1 == 943 and sign == '/' and num2 == 225:
print('943/225 = 4.19111111111')
if num1 == 943 and sign == '/' and num2 == 226:
print('943/226 = 4.17256637168')
if num1 == 943 and sign == '/' and num2 == 227:
print('943/227 = 4.15418502203')
if num1 == 943 and sign == '/' and num2 == 228:
print('943/228 = 4.13596491228')
if num1 == 943 and sign == '/' and num2 == 229:
print('943/229 = 4.11790393013')
if num1 == 943 and sign == '/' and num2 == 230:
print('943/230 = 4.1')
if num1 == 943 and sign == '/' and num2 == 231:
print('943/231 = 4.08225108225')
if num1 == 943 and sign == '/' and num2 == 232:
print('943/232 = 4.06465517241')
if num1 == 943 and sign == '/' and num2 == 233:
print('943/233 = 4.04721030043')
if num1 == 943 and sign == '/' and num2 == 234:
print('943/234 = 4.02991452991')
if num1 == 943 and sign == '/' and num2 == 235:
print('943/235 = 4.01276595745')
if num1 == 943 and sign == '/' and num2 == 236:
print('943/236 = 3.99576271186')
if num1 == 943 and sign == '/' and num2 == 237:
print('943/237 = 3.97890295359')
if num1 == 943 and sign == '/' and num2 == 238:
print('943/238 = 3.96218487395')
if num1 == 943 and sign == '/' and num2 == 239:
print('943/239 = 3.94560669456')
if num1 == 943 and sign == '/' and num2 == 240:
print('943/240 = 3.92916666667')
if num1 == 943 and sign == '/' and num2 == 241:
print('943/241 = 3.91286307054')
if num1 == 943 and sign == '/' and num2 == 242:
print('943/242 = 3.89669421488')
if num1 == 943 and sign == '/' and num2 == 243:
print('943/243 = 3.88065843621')
if num1 == 943 and sign == '/' and num2 == 244:
print('943/244 = 3.86475409836')
if num1 == 943 and sign == '/' and num2 == 245:
print('943/245 = 3.84897959184')
if num1 == 943 and sign == '/' and num2 == 246:
print('943/246 = 3.83333333333')
if num1 == 943 and sign == '/' and num2 == 247:
print('943/247 = 3.81781376518')
if num1 == 943 and sign == '/' and num2 == 248:
print('943/248 = 3.80241935484')
if num1 == 943 and sign == '/' and num2 == 249:
print('943/249 = 3.78714859438')
if num1 == 944 and sign == '/' and num2 == 200:
print('944/200 = 4.72')
if num1 == 944 and sign == '/' and num2 == 201:
print('944/201 = 4.69651741294')
if num1 == 944 and sign == '/' and num2 == 202:
print('944/202 = 4.67326732673')
if num1 == 944 and sign == '/' and num2 == 203:
print('944/203 = 4.65024630542')
if num1 == 944 and sign == '/' and num2 == 204:
print('944/204 = 4.62745098039')
if num1 == 944 and sign == '/' and num2 == 205:
print('944/205 = 4.60487804878')
if num1 == 944 and sign == '/' and num2 == 206:
print('944/206 = 4.58252427184')
if num1 == 944 and sign == '/' and num2 == 207:
print('944/207 = 4.56038647343')
if num1 == 944 and sign == '/' and num2 == 208:
print('944/208 = 4.53846153846')
if num1 == 944 and sign == '/' and num2 == 209:
print('944/209 = 4.51674641148')
if num1 == 944 and sign == '/' and num2 == 210:
print('944/210 = 4.49523809524')
if num1 == 944 and sign == '/' and num2 == 211:
print('944/211 = 4.47393364929')
if num1 == 944 and sign == '/' and num2 == 212:
print('944/212 = 4.45283018868')
if num1 == 944 and sign == '/' and num2 == 213:
print('944/213 = 4.43192488263')
if num1 == 944 and sign == '/' and num2 == 214:
print('944/214 = 4.41121495327')
if num1 == 944 and sign == '/' and num2 == 215:
print('944/215 = 4.39069767442')
if num1 == 944 and sign == '/' and num2 == 216:
print('944/216 = 4.37037037037')
if num1 == 944 and sign == '/' and num2 == 217:
print('944/217 = 4.35023041475')
if num1 == 944 and sign == '/' and num2 == 218:
print('944/218 = 4.33027522936')
if num1 == 944 and sign == '/' and num2 == 219:
print('944/219 = 4.31050228311')
if num1 == 944 and sign == '/' and num2 == 220:
print('944/220 = 4.29090909091')
if num1 == 944 and sign == '/' and num2 == 221:
print('944/221 = 4.27149321267')
if num1 == 944 and sign == '/' and num2 == 222:
print('944/222 = 4.25225225225')
if num1 == 944 and sign == '/' and num2 == 223:
print('944/223 = 4.2331838565')
if num1 == 944 and sign == '/' and num2 == 224:
print('944/224 = 4.21428571429')
if num1 == 944 and sign == '/' and num2 == 225:
print('944/225 = 4.19555555556')
if num1 == 944 and sign == '/' and num2 == 226:
print('944/226 = 4.17699115044')
if num1 == 944 and sign == '/' and num2 == 227:
print('944/227 = 4.15859030837')
if num1 == 944 and sign == '/' and num2 == 228:
print('944/228 = 4.14035087719')
if num1 == 944 and sign == '/' and num2 == 229:
print('944/229 = 4.12227074236')
if num1 == 944 and sign == '/' and num2 == 230:
print('944/230 = 4.10434782609')
if num1 == 944 and sign == '/' and num2 == 231:
print('944/231 = 4.08658008658')
if num1 == 944 and sign == '/' and num2 == 232:
print('944/232 = 4.06896551724')
if num1 == 944 and sign == '/' and num2 == 233:
print('944/233 = 4.05150214592')
if num1 == 944 and sign == '/' and num2 == 234:
print('944/234 = 4.03418803419')
if num1 == 944 and sign == '/' and num2 == 235:
print('944/235 = 4.0170212766')
if num1 == 944 and sign == '/' and num2 == 236:
print('944/236 = 4.0')
if num1 == 944 and sign == '/' and num2 == 237:
print('944/237 = 3.98312236287')
if num1 == 944 and sign == '/' and num2 == 238:
print('944/238 = 3.96638655462')
if num1 == 944 and sign == '/' and num2 == 239:
print('944/239 = 3.94979079498')
if num1 == 944 and sign == '/' and num2 == 240:
print('944/240 = 3.93333333333')
if num1 == 944 and sign == '/' and num2 == 241:
print('944/241 = 3.91701244813')
if num1 == 944 and sign == '/' and num2 == 242:
print('944/242 = 3.90082644628')
if num1 == 944 and sign == '/' and num2 == 243:
print('944/243 = 3.88477366255')
if num1 == 944 and sign == '/' and num2 == 244:
print('944/244 = 3.86885245902')
if num1 == 944 and sign == '/' and num2 == 245:
print('944/245 = 3.85306122449')
if num1 == 944 and sign == '/' and num2 == 246:
print('944/246 = 3.83739837398')
if num1 == 944 and sign == '/' and num2 == 247:
print('944/247 = 3.82186234818')
if num1 == 944 and sign == '/' and num2 == 248:
print('944/248 = 3.8064516129')
if num1 == 944 and sign == '/' and num2 == 249:
print('944/249 = 3.79116465863')
if num1 == 945 and sign == '/' and num2 == 200:
print('945/200 = 4.725')
if num1 == 945 and sign == '/' and num2 == 201:
print('945/201 = 4.70149253731')
if num1 == 945 and sign == '/' and num2 == 202:
print('945/202 = 4.67821782178')
if num1 == 945 and sign == '/' and num2 == 203:
print('945/203 = 4.65517241379')
if num1 == 945 and sign == '/' and num2 == 204:
print('945/204 = 4.63235294118')
if num1 == 945 and sign == '/' and num2 == 205:
print('945/205 = 4.60975609756')
if num1 == 945 and sign == '/' and num2 == 206:
print('945/206 = 4.58737864078')
if num1 == 945 and sign == '/' and num2 == 207:
print('945/207 = 4.5652173913')
if num1 == 945 and sign == '/' and num2 == 208:
print('945/208 = 4.54326923077')
if num1 == 945 and sign == '/' and num2 == 209:
print('945/209 = 4.52153110048')
if num1 == 945 and sign == '/' and num2 == 210:
print('945/210 = 4.5')
if num1 == 945 and sign == '/' and num2 == 211:
print('945/211 = 4.47867298578')
if num1 == 945 and sign == '/' and num2 == 212:
print('945/212 = 4.45754716981')
if num1 == 945 and sign == '/' and num2 == 213:
print('945/213 = 4.43661971831')
if num1 == 945 and sign == '/' and num2 == 214:
print('945/214 = 4.41588785047')
if num1 == 945 and sign == '/' and num2 == 215:
print('945/215 = 4.39534883721')
if num1 == 945 and sign == '/' and num2 == 216:
print('945/216 = 4.375')
if num1 == 945 and sign == '/' and num2 == 217:
print('945/217 = 4.35483870968')
if num1 == 945 and sign == '/' and num2 == 218:
print('945/218 = 4.33486238532')
if num1 == 945 and sign == '/' and num2 == 219:
print('945/219 = 4.31506849315')
if num1 == 945 and sign == '/' and num2 == 220:
print('945/220 = 4.29545454545')
if num1 == 945 and sign == '/' and num2 == 221:
print('945/221 = 4.27601809955')
if num1 == 945 and sign == '/' and num2 == 222:
print('945/222 = 4.25675675676')
if num1 == 945 and sign == '/' and num2 == 223:
print('945/223 = 4.23766816143')
if num1 == 945 and sign == '/' and num2 == 224:
print('945/224 = 4.21875')
if num1 == 945 and sign == '/' and num2 == 225:
print('945/225 = 4.2')
if num1 == 945 and sign == '/' and num2 == 226:
print('945/226 = 4.1814159292')
if num1 == 945 and sign == '/' and num2 == 227:
print('945/227 = 4.16299559471')
if num1 == 945 and sign == '/' and num2 == 228:
print('945/228 = 4.14473684211')
if num1 == 945 and sign == '/' and num2 == 229:
print('945/229 = 4.12663755459')
if num1 == 945 and sign == '/' and num2 == 230:
print('945/230 = 4.10869565217')
if num1 == 945 and sign == '/' and num2 == 231:
print('945/231 = 4.09090909091')
if num1 == 945 and sign == '/' and num2 == 232:
print('945/232 = 4.07327586207')
if num1 == 945 and sign == '/' and num2 == 233:
print('945/233 = 4.05579399142')
if num1 == 945 and sign == '/' and num2 == 234:
print('945/234 = 4.03846153846')
if num1 == 945 and sign == '/' and num2 == 235:
print('945/235 = 4.02127659574')
if num1 == 945 and sign == '/' and num2 == 236:
print('945/236 = 4.00423728814')
if num1 == 945 and sign == '/' and num2 == 237:
print('945/237 = 3.98734177215')
if num1 == 945 and sign == '/' and num2 == 238:
print('945/238 = 3.97058823529')
if num1 == 945 and sign == '/' and num2 == 239:
print('945/239 = 3.9539748954')
if num1 == 945 and sign == '/' and num2 == 240:
print('945/240 = 3.9375')
if num1 == 945 and sign == '/' and num2 == 241:
print('945/241 = 3.92116182573')
if num1 == 945 and sign == '/' and num2 == 242:
print('945/242 = 3.90495867769')
if num1 == 945 and sign == '/' and num2 == 243:
print('945/243 = 3.88888888889')
if num1 == 945 and sign == '/' and num2 == 244:
print('945/244 = 3.87295081967')
if num1 == 945 and sign == '/' and num2 == 245:
print('945/245 = 3.85714285714')
if num1 == 945 and sign == '/' and num2 == 246:
print('945/246 = 3.84146341463')
if num1 == 945 and sign == '/' and num2 == 247:
print('945/247 = 3.82591093117')
if num1 == 945 and sign == '/' and num2 == 248:
print('945/248 = 3.81048387097')
if num1 == 945 and sign == '/' and num2 == 249:
print('945/249 = 3.79518072289')
if num1 == 946 and sign == '/' and num2 == 200:
print('946/200 = 4.73')
if num1 == 946 and sign == '/' and num2 == 201:
print('946/201 = 4.70646766169')
if num1 == 946 and sign == '/' and num2 == 202:
print('946/202 = 4.68316831683')
if num1 == 946 and sign == '/' and num2 == 203:
print('946/203 = 4.66009852217')
if num1 == 946 and sign == '/' and num2 == 204:
print('946/204 = 4.63725490196')
if num1 == 946 and sign == '/' and num2 == 205:
print('946/205 = 4.61463414634')
if num1 == 946 and sign == '/' and num2 == 206:
print('946/206 = 4.59223300971')
if num1 == 946 and sign == '/' and num2 == 207:
print('946/207 = 4.57004830918')
if num1 == 946 and sign == '/' and num2 == 208:
print('946/208 = 4.54807692308')
if num1 == 946 and sign == '/' and num2 == 209:
print('946/209 = 4.52631578947')
if num1 == 946 and sign == '/' and num2 == 210:
print('946/210 = 4.50476190476')
if num1 == 946 and sign == '/' and num2 == 211:
print('946/211 = 4.48341232227')
if num1 == 946 and sign == '/' and num2 == 212:
print('946/212 = 4.46226415094')
if num1 == 946 and sign == '/' and num2 == 213:
print('946/213 = 4.44131455399')
if num1 == 946 and sign == '/' and num2 == 214:
print('946/214 = 4.42056074766')
if num1 == 946 and sign == '/' and num2 == 215:
print('946/215 = 4.4')
if num1 == 946 and sign == '/' and num2 == 216:
print('946/216 = 4.37962962963')
if num1 == 946 and sign == '/' and num2 == 217:
print('946/217 = 4.35944700461')
if num1 == 946 and sign == '/' and num2 == 218:
print('946/218 = 4.33944954128')
if num1 == 946 and sign == '/' and num2 == 219:
print('946/219 = 4.3196347032')
if num1 == 946 and sign == '/' and num2 == 220:
print('946/220 = 4.3')
if num1 == 946 and sign == '/' and num2 == 221:
print('946/221 = 4.28054298643')
if num1 == 946 and sign == '/' and num2 == 222:
print('946/222 = 4.26126126126')
if num1 == 946 and sign == '/' and num2 == 223:
print('946/223 = 4.24215246637')
if num1 == 946 and sign == '/' and num2 == 224:
print('946/224 = 4.22321428571')
if num1 == 946 and sign == '/' and num2 == 225:
print('946/225 = 4.20444444444')
if num1 == 946 and sign == '/' and num2 == 226:
print('946/226 = 4.18584070796')
if num1 == 946 and sign == '/' and num2 == 227:
print('946/227 = 4.16740088106')
if num1 == 946 and sign == '/' and num2 == 228:
print('946/228 = 4.14912280702')
if num1 == 946 and sign == '/' and num2 == 229:
print('946/229 = 4.13100436681')
if num1 == 946 and sign == '/' and num2 == 230:
print('946/230 = 4.11304347826')
if num1 == 946 and sign == '/' and num2 == 231:
print('946/231 = 4.09523809524')
if num1 == 946 and sign == '/' and num2 == 232:
print('946/232 = 4.0775862069')
if num1 == 946 and sign == '/' and num2 == 233:
print('946/233 = 4.06008583691')
if num1 == 946 and sign == '/' and num2 == 234:
print('946/234 = 4.04273504274')
if num1 == 946 and sign == '/' and num2 == 235:
print('946/235 = 4.02553191489')
if num1 == 946 and sign == '/' and num2 == 236:
print('946/236 = 4.00847457627')
if num1 == 946 and sign == '/' and num2 == 237:
print('946/237 = 3.99156118143')
if num1 == 946 and sign == '/' and num2 == 238:
print('946/238 = 3.97478991597')
if num1 == 946 and sign == '/' and num2 == 239:
print('946/239 = 3.95815899582')
if num1 == 946 and sign == '/' and num2 == 240:
print('946/240 = 3.94166666667')
if num1 == 946 and sign == '/' and num2 == 241:
print('946/241 = 3.92531120332')
if num1 == 946 and sign == '/' and num2 == 242:
print('946/242 = 3.90909090909')
if num1 == 946 and sign == '/' and num2 == 243:
print('946/243 = 3.89300411523')
if num1 == 946 and sign == '/' and num2 == 244:
print('946/244 = 3.87704918033')
if num1 == 946 and sign == '/' and num2 == 245:
print('946/245 = 3.8612244898')
if num1 == 946 and sign == '/' and num2 == 246:
print('946/246 = 3.84552845528')
if num1 == 946 and sign == '/' and num2 == 247:
print('946/247 = 3.82995951417')
if num1 == 946 and sign == '/' and num2 == 248:
print('946/248 = 3.81451612903')
if num1 == 946 and sign == '/' and num2 == 249:
print('946/249 = 3.79919678715')
if num1 == 947 and sign == '/' and num2 == 200:
print('947/200 = 4.735')
if num1 == 947 and sign == '/' and num2 == 201:
print('947/201 = 4.71144278607')
if num1 == 947 and sign == '/' and num2 == 202:
print('947/202 = 4.68811881188')
if num1 == 947 and sign == '/' and num2 == 203:
print('947/203 = 4.66502463054')
if num1 == 947 and sign == '/' and num2 == 204:
print('947/204 = 4.64215686275')
if num1 == 947 and sign == '/' and num2 == 205:
print('947/205 = 4.61951219512')
if num1 == 947 and sign == '/' and num2 == 206:
print('947/206 = 4.59708737864')
if num1 == 947 and sign == '/' and num2 == 207:
print('947/207 = 4.57487922705')
if num1 == 947 and sign == '/' and num2 == 208:
print('947/208 = 4.55288461538')
if num1 == 947 and sign == '/' and num2 == 209:
print('947/209 = 4.53110047847')
if num1 == 947 and sign == '/' and num2 == 210:
print('947/210 = 4.50952380952')
if num1 == 947 and sign == '/' and num2 == 211:
print('947/211 = 4.48815165877')
if num1 == 947 and sign == '/' and num2 == 212:
print('947/212 = 4.46698113208')
if num1 == 947 and sign == '/' and num2 == 213:
print('947/213 = 4.44600938967')
if num1 == 947 and sign == '/' and num2 == 214:
print('947/214 = 4.42523364486')
if num1 == 947 and sign == '/' and num2 == 215:
print('947/215 = 4.40465116279')
if num1 == 947 and sign == '/' and num2 == 216:
print('947/216 = 4.38425925926')
if num1 == 947 and sign == '/' and num2 == 217:
print('947/217 = 4.36405529954')
if num1 == 947 and sign == '/' and num2 == 218:
print('947/218 = 4.34403669725')
if num1 == 947 and sign == '/' and num2 == 219:
print('947/219 = 4.32420091324')
if num1 == 947 and sign == '/' and num2 == 220:
print('947/220 = 4.30454545455')
if num1 == 947 and sign == '/' and num2 == 221:
print('947/221 = 4.2850678733')
if num1 == 947 and sign == '/' and num2 == 222:
print('947/222 = 4.26576576577')
if num1 == 947 and sign == '/' and num2 == 223:
print('947/223 = 4.2466367713')
if num1 == 947 and sign == '/' and num2 == 224:
print('947/224 = 4.22767857143')
if num1 == 947 and sign == '/' and num2 == 225:
print('947/225 = 4.20888888889')
if num1 == 947 and sign == '/' and num2 == 226:
print('947/226 = 4.19026548673')
if num1 == 947 and sign == '/' and num2 == 227:
print('947/227 = 4.1718061674')
if num1 == 947 and sign == '/' and num2 == 228:
print('947/228 = 4.15350877193')
if num1 == 947 and sign == '/' and num2 == 229:
print('947/229 = 4.13537117904')
if num1 == 947 and sign == '/' and num2 == 230:
print('947/230 = 4.11739130435')
if num1 == 947 and sign == '/' and num2 == 231:
print('947/231 = 4.09956709957')
if num1 == 947 and sign == '/' and num2 == 232:
print('947/232 = 4.08189655172')
if num1 == 947 and sign == '/' and num2 == 233:
print('947/233 = 4.0643776824')
if num1 == 947 and sign == '/' and num2 == 234:
print('947/234 = 4.04700854701')
if num1 == 947 and sign == '/' and num2 == 235:
print('947/235 = 4.02978723404')
if num1 == 947 and sign == '/' and num2 == 236:
print('947/236 = 4.01271186441')
if num1 == 947 and sign == '/' and num2 == 237:
print('947/237 = 3.99578059072')
if num1 == 947 and sign == '/' and num2 == 238:
print('947/238 = 3.97899159664')
if num1 == 947 and sign == '/' and num2 == 239:
print('947/239 = 3.96234309623')
if num1 == 947 and sign == '/' and num2 == 240:
print('947/240 = 3.94583333333')
if num1 == 947 and sign == '/' and num2 == 241:
print('947/241 = 3.92946058091')
if num1 == 947 and sign == '/' and num2 == 242:
print('947/242 = 3.9132231405')
if num1 == 947 and sign == '/' and num2 == 243:
print('947/243 = 3.89711934156')
if num1 == 947 and sign == '/' and num2 == 244:
print('947/244 = 3.88114754098')
if num1 == 947 and sign == '/' and num2 == 245:
print('947/245 = 3.86530612245')
if num1 == 947 and sign == '/' and num2 == 246:
print('947/246 = 3.84959349593')
if num1 == 947 and sign == '/' and num2 == 247:
print('947/247 = 3.83400809717')
if num1 == 947 and sign == '/' and num2 == 248:
print('947/248 = 3.8185483871')
if num1 == 947 and sign == '/' and num2 == 249:
print('947/249 = 3.80321285141')
if num1 == 948 and sign == '/' and num2 == 200:
print('948/200 = 4.74')
if num1 == 948 and sign == '/' and num2 == 201:
print('948/201 = 4.71641791045')
if num1 == 948 and sign == '/' and num2 == 202:
print('948/202 = 4.69306930693')
if num1 == 948 and sign == '/' and num2 == 203:
print('948/203 = 4.66995073892')
if num1 == 948 and sign == '/' and num2 == 204:
print('948/204 = 4.64705882353')
if num1 == 948 and sign == '/' and num2 == 205:
print('948/205 = 4.6243902439')
if num1 == 948 and sign == '/' and num2 == 206:
print('948/206 = 4.60194174757')
if num1 == 948 and sign == '/' and num2 == 207:
print('948/207 = 4.57971014493')
if num1 == 948 and sign == '/' and num2 == 208:
print('948/208 = 4.55769230769')
if num1 == 948 and sign == '/' and num2 == 209:
print('948/209 = 4.53588516746')
if num1 == 948 and sign == '/' and num2 == 210:
print('948/210 = 4.51428571429')
if num1 == 948 and sign == '/' and num2 == 211:
print('948/211 = 4.49289099526')
if num1 == 948 and sign == '/' and num2 == 212:
print('948/212 = 4.47169811321')
if num1 == 948 and sign == '/' and num2 == 213:
print('948/213 = 4.45070422535')
if num1 == 948 and sign == '/' and num2 == 214:
print('948/214 = 4.42990654206')
if num1 == 948 and sign == '/' and num2 == 215:
print('948/215 = 4.40930232558')
if num1 == 948 and sign == '/' and num2 == 216:
print('948/216 = 4.38888888889')
if num1 == 948 and sign == '/' and num2 == 217:
print('948/217 = 4.36866359447')
if num1 == 948 and sign == '/' and num2 == 218:
print('948/218 = 4.34862385321')
if num1 == 948 and sign == '/' and num2 == 219:
print('948/219 = 4.32876712329')
if num1 == 948 and sign == '/' and num2 == 220:
print('948/220 = 4.30909090909')
if num1 == 948 and sign == '/' and num2 == 221:
print('948/221 = 4.28959276018')
if num1 == 948 and sign == '/' and num2 == 222:
print('948/222 = 4.27027027027')
if num1 == 948 and sign == '/' and num2 == 223:
print('948/223 = 4.25112107623')
if num1 == 948 and sign == '/' and num2 == 224:
print('948/224 = 4.23214285714')
if num1 == 948 and sign == '/' and num2 == 225:
print('948/225 = 4.21333333333')
if num1 == 948 and sign == '/' and num2 == 226:
print('948/226 = 4.19469026549')
if num1 == 948 and sign == '/' and num2 == 227:
print('948/227 = 4.17621145374')
if num1 == 948 and sign == '/' and num2 == 228:
print('948/228 = 4.15789473684')
if num1 == 948 and sign == '/' and num2 == 229:
print('948/229 = 4.13973799127')
if num1 == 948 and sign == '/' and num2 == 230:
print('948/230 = 4.12173913043')
if num1 == 948 and sign == '/' and num2 == 231:
print('948/231 = 4.1038961039')
if num1 == 948 and sign == '/' and num2 == 232:
print('948/232 = 4.08620689655')
if num1 == 948 and sign == '/' and num2 == 233:
print('948/233 = 4.0686695279')
if num1 == 948 and sign == '/' and num2 == 234:
print('948/234 = 4.05128205128')
if num1 == 948 and sign == '/' and num2 == 235:
print('948/235 = 4.03404255319')
if num1 == 948 and sign == '/' and num2 == 236:
print('948/236 = 4.01694915254')
if num1 == 948 and sign == '/' and num2 == 237:
print('948/237 = 4.0')
if num1 == 948 and sign == '/' and num2 == 238:
print('948/238 = 3.98319327731')
if num1 == 948 and sign == '/' and num2 == 239:
print('948/239 = 3.96652719665')
if num1 == 948 and sign == '/' and num2 == 240:
print('948/240 = 3.95')
if num1 == 948 and sign == '/' and num2 == 241:
print('948/241 = 3.93360995851')
if num1 == 948 and sign == '/' and num2 == 242:
print('948/242 = 3.9173553719')
if num1 == 948 and sign == '/' and num2 == 243:
print('948/243 = 3.9012345679')
if num1 == 948 and sign == '/' and num2 == 244:
print('948/244 = 3.88524590164')
if num1 == 948 and sign == '/' and num2 == 245:
print('948/245 = 3.8693877551')
if num1 == 948 and sign == '/' and num2 == 246:
print('948/246 = 3.85365853659')
if num1 == 948 and sign == '/' and num2 == 247:
print('948/247 = 3.83805668016')
if num1 == 948 and sign == '/' and num2 == 248:
print('948/248 = 3.82258064516')
if num1 == 948 and sign == '/' and num2 == 249:
print('948/249 = 3.80722891566')
if num1 == 949 and sign == '/' and num2 == 200:
print('949/200 = 4.745')
if num1 == 949 and sign == '/' and num2 == 201:
print('949/201 = 4.72139303483')
if num1 == 949 and sign == '/' and num2 == 202:
print('949/202 = 4.69801980198')
if num1 == 949 and sign == '/' and num2 == 203:
print('949/203 = 4.67487684729')
if num1 == 949 and sign == '/' and num2 == 204:
print('949/204 = 4.65196078431')
if num1 == 949 and sign == '/' and num2 == 205:
print('949/205 = 4.62926829268')
if num1 == 949 and sign == '/' and num2 == 206:
print('949/206 = 4.6067961165')
if num1 == 949 and sign == '/' and num2 == 207:
print('949/207 = 4.5845410628')
if num1 == 949 and sign == '/' and num2 == 208:
print('949/208 = 4.5625')
if num1 == 949 and sign == '/' and num2 == 209:
print('949/209 = 4.54066985646')
if num1 == 949 and sign == '/' and num2 == 210:
print('949/210 = 4.51904761905')
if num1 == 949 and sign == '/' and num2 == 211:
print('949/211 = 4.49763033175')
if num1 == 949 and sign == '/' and num2 == 212:
print('949/212 = 4.47641509434')
if num1 == 949 and sign == '/' and num2 == 213:
print('949/213 = 4.45539906103')
if num1 == 949 and sign == '/' and num2 == 214:
print('949/214 = 4.43457943925')
if num1 == 949 and sign == '/' and num2 == 215:
print('949/215 = 4.41395348837')
if num1 == 949 and sign == '/' and num2 == 216:
print('949/216 = 4.39351851852')
if num1 == 949 and sign == '/' and num2 == 217:
print('949/217 = 4.3732718894')
if num1 == 949 and sign == '/' and num2 == 218:
print('949/218 = 4.35321100917')
if num1 == 949 and sign == '/' and num2 == 219:
print('949/219 = 4.33333333333')
if num1 == 949 and sign == '/' and num2 == 220:
print('949/220 = 4.31363636364')
if num1 == 949 and sign == '/' and num2 == 221:
print('949/221 = 4.29411764706')
if num1 == 949 and sign == '/' and num2 == 222:
print('949/222 = 4.27477477477')
if num1 == 949 and sign == '/' and num2 == 223:
print('949/223 = 4.25560538117')
if num1 == 949 and sign == '/' and num2 == 224:
print('949/224 = 4.23660714286')
if num1 == 949 and sign == '/' and num2 == 225:
print('949/225 = 4.21777777778')
if num1 == 949 and sign == '/' and num2 == 226:
print('949/226 = 4.19911504425')
if num1 == 949 and sign == '/' and num2 == 227:
print('949/227 = 4.18061674009')
if num1 == 949 and sign == '/' and num2 == 228:
print('949/228 = 4.16228070175')
if num1 == 949 and sign == '/' and num2 == 229:
print('949/229 = 4.14410480349')
if num1 == 949 and sign == '/' and num2 == 230:
print('949/230 = 4.12608695652')
if num1 == 949 and sign == '/' and num2 == 231:
print('949/231 = 4.10822510823')
if num1 == 949 and sign == '/' and num2 == 232:
print('949/232 = 4.09051724138')
if num1 == 949 and sign == '/' and num2 == 233:
print('949/233 = 4.07296137339')
if num1 == 949 and sign == '/' and num2 == 234:
print('949/234 = 4.05555555556')
if num1 == 949 and sign == '/' and num2 == 235:
print('949/235 = 4.03829787234')
if num1 == 949 and sign == '/' and num2 == 236:
print('949/236 = 4.02118644068')
if num1 == 949 and sign == '/' and num2 == 237:
print('949/237 = 4.00421940928')
if num1 == 949 and sign == '/' and num2 == 238:
print('949/238 = 3.98739495798')
if num1 == 949 and sign == '/' and num2 == 239:
print('949/239 = 3.97071129707')
if num1 == 949 and sign == '/' and num2 == 240:
print('949/240 = 3.95416666667')
if num1 == 949 and sign == '/' and num2 == 241:
print('949/241 = 3.9377593361')
if num1 == 949 and sign == '/' and num2 == 242:
print('949/242 = 3.92148760331')
if num1 == 949 and sign == '/' and num2 == 243:
print('949/243 = 3.90534979424')
if num1 == 949 and sign == '/' and num2 == 244:
print('949/244 = 3.8893442623')
if num1 == 949 and sign == '/' and num2 == 245:
print('949/245 = 3.87346938776')
if num1 == 949 and sign == '/' and num2 == 246:
print('949/246 = 3.85772357724')
if num1 == 949 and sign == '/' and num2 == 247:
print('949/247 = 3.84210526316')
if num1 == 949 and sign == '/' and num2 == 248:
print('949/248 = 3.82661290323')
if num1 == 949 and sign == '/' and num2 == 249:
print('949/249 = 3.81124497992')
if num1 == 900 and sign == '*' and num2 == 200:
print('900*200 = 180000')
if num1 == 900 and sign == '*' and num2 == 201:
print('900*201 = 180900')
if num1 == 900 and sign == '*' and num2 == 202:
print('900*202 = 181800')
if num1 == 900 and sign == '*' and num2 == 203:
print('900*203 = 182700')
if num1 == 900 and sign == '*' and num2 == 204:
print('900*204 = 183600')
if num1 == 900 and sign == '*' and num2 == 205:
print('900*205 = 184500')
if num1 == 900 and sign == '*' and num2 == 206:
print('900*206 = 185400')
if num1 == 900 and sign == '*' and num2 == 207:
print('900*207 = 186300')
if num1 == 900 and sign == '*' and num2 == 208:
print('900*208 = 187200')
if num1 == 900 and sign == '*' and num2 == 209:
print('900*209 = 188100')
if num1 == 900 and sign == '*' and num2 == 210:
print('900*210 = 189000')
if num1 == 900 and sign == '*' and num2 == 211:
print('900*211 = 189900')
if num1 == 900 and sign == '*' and num2 == 212:
print('900*212 = 190800')
if num1 == 900 and sign == '*' and num2 == 213:
print('900*213 = 191700')
if num1 == 900 and sign == '*' and num2 == 214:
print('900*214 = 192600')
if num1 == 900 and sign == '*' and num2 == 215:
print('900*215 = 193500')
if num1 == 900 and sign == '*' and num2 == 216:
print('900*216 = 194400')
if num1 == 900 and sign == '*' and num2 == 217:
print('900*217 = 195300')
if num1 == 900 and sign == '*' and num2 == 218:
print('900*218 = 196200')
if num1 == 900 and sign == '*' and num2 == 219:
print('900*219 = 197100')
if num1 == 900 and sign == '*' and num2 == 220:
print('900*220 = 198000')
if num1 == 900 and sign == '*' and num2 == 221:
print('900*221 = 198900')
if num1 == 900 and sign == '*' and num2 == 222:
print('900*222 = 199800')
if num1 == 900 and sign == '*' and num2 == 223:
print('900*223 = 200700')
if num1 == 900 and sign == '*' and num2 == 224:
print('900*224 = 201600')
if num1 == 900 and sign == '*' and num2 == 225:
print('900*225 = 202500')
if num1 == 900 and sign == '*' and num2 == 226:
print('900*226 = 203400')
if num1 == 900 and sign == '*' and num2 == 227:
print('900*227 = 204300')
if num1 == 900 and sign == '*' and num2 == 228:
print('900*228 = 205200')
if num1 == 900 and sign == '*' and num2 == 229:
print('900*229 = 206100')
if num1 == 900 and sign == '*' and num2 == 230:
print('900*230 = 207000')
if num1 == 900 and sign == '*' and num2 == 231:
print('900*231 = 207900')
if num1 == 900 and sign == '*' and num2 == 232:
print('900*232 = 208800')
if num1 == 900 and sign == '*' and num2 == 233:
print('900*233 = 209700')
if num1 == 900 and sign == '*' and num2 == 234:
print('900*234 = 210600')
if num1 == 900 and sign == '*' and num2 == 235:
print('900*235 = 211500')
if num1 == 900 and sign == '*' and num2 == 236:
print('900*236 = 212400')
if num1 == 900 and sign == '*' and num2 == 237:
print('900*237 = 213300')
if num1 == 900 and sign == '*' and num2 == 238:
print('900*238 = 214200')
if num1 == 900 and sign == '*' and num2 == 239:
print('900*239 = 215100')
if num1 == 900 and sign == '*' and num2 == 240:
print('900*240 = 216000')
if num1 == 900 and sign == '*' and num2 == 241:
print('900*241 = 216900')
if num1 == 900 and sign == '*' and num2 == 242:
print('900*242 = 217800')
if num1 == 900 and sign == '*' and num2 == 243:
print('900*243 = 218700')
if num1 == 900 and sign == '*' and num2 == 244:
print('900*244 = 219600')
if num1 == 900 and sign == '*' and num2 == 245:
print('900*245 = 220500')
if num1 == 900 and sign == '*' and num2 == 246:
print('900*246 = 221400')
if num1 == 900 and sign == '*' and num2 == 247:
print('900*247 = 222300')
if num1 == 900 and sign == '*' and num2 == 248:
print('900*248 = 223200')
if num1 == 900 and sign == '*' and num2 == 249:
print('900*249 = 224100')
if num1 == 901 and sign == '*' and num2 == 200:
print('901*200 = 180200')
if num1 == 901 and sign == '*' and num2 == 201:
print('901*201 = 181101')
if num1 == 901 and sign == '*' and num2 == 202:
print('901*202 = 182002')
if num1 == 901 and sign == '*' and num2 == 203:
print('901*203 = 182903')
if num1 == 901 and sign == '*' and num2 == 204:
print('901*204 = 183804')
if num1 == 901 and sign == '*' and num2 == 205:
print('901*205 = 184705')
if num1 == 901 and sign == '*' and num2 == 206:
print('901*206 = 185606')
if num1 == 901 and sign == '*' and num2 == 207:
print('901*207 = 186507')
if num1 == 901 and sign == '*' and num2 == 208:
print('901*208 = 187408')
if num1 == 901 and sign == '*' and num2 == 209:
print('901*209 = 188309')
if num1 == 901 and sign == '*' and num2 == 210:
print('901*210 = 189210')
if num1 == 901 and sign == '*' and num2 == 211:
print('901*211 = 190111')
if num1 == 901 and sign == '*' and num2 == 212:
print('901*212 = 191012')
if num1 == 901 and sign == '*' and num2 == 213:
print('901*213 = 191913')
if num1 == 901 and sign == '*' and num2 == 214:
print('901*214 = 192814')
if num1 == 901 and sign == '*' and num2 == 215:
print('901*215 = 193715')
if num1 == 901 and sign == '*' and num2 == 216:
print('901*216 = 194616')
if num1 == 901 and sign == '*' and num2 == 217:
print('901*217 = 195517')
if num1 == 901 and sign == '*' and num2 == 218:
print('901*218 = 196418')
if num1 == 901 and sign == '*' and num2 == 219:
print('901*219 = 197319')
if num1 == 901 and sign == '*' and num2 == 220:
print('901*220 = 198220')
if num1 == 901 and sign == '*' and num2 == 221:
print('901*221 = 199121')
if num1 == 901 and sign == '*' and num2 == 222:
print('901*222 = 200022')
if num1 == 901 and sign == '*' and num2 == 223:
print('901*223 = 200923')
if num1 == 901 and sign == '*' and num2 == 224:
print('901*224 = 201824')
if num1 == 901 and sign == '*' and num2 == 225:
print('901*225 = 202725')
if num1 == 901 and sign == '*' and num2 == 226:
print('901*226 = 203626')
if num1 == 901 and sign == '*' and num2 == 227:
print('901*227 = 204527')
if num1 == 901 and sign == '*' and num2 == 228:
print('901*228 = 205428')
if num1 == 901 and sign == '*' and num2 == 229:
print('901*229 = 206329')
if num1 == 901 and sign == '*' and num2 == 230:
print('901*230 = 207230')
if num1 == 901 and sign == '*' and num2 == 231:
print('901*231 = 208131')
if num1 == 901 and sign == '*' and num2 == 232:
print('901*232 = 209032')
if num1 == 901 and sign == '*' and num2 == 233:
print('901*233 = 209933')
if num1 == 901 and sign == '*' and num2 == 234:
print('901*234 = 210834')
if num1 == 901 and sign == '*' and num2 == 235:
print('901*235 = 211735')
if num1 == 901 and sign == '*' and num2 == 236:
print('901*236 = 212636')
if num1 == 901 and sign == '*' and num2 == 237:
print('901*237 = 213537')
if num1 == 901 and sign == '*' and num2 == 238:
print('901*238 = 214438')
if num1 == 901 and sign == '*' and num2 == 239:
print('901*239 = 215339')
if num1 == 901 and sign == '*' and num2 == 240:
print('901*240 = 216240')
if num1 == 901 and sign == '*' and num2 == 241:
print('901*241 = 217141')
if num1 == 901 and sign == '*' and num2 == 242:
print('901*242 = 218042')
if num1 == 901 and sign == '*' and num2 == 243:
print('901*243 = 218943')
if num1 == 901 and sign == '*' and num2 == 244:
print('901*244 = 219844')
if num1 == 901 and sign == '*' and num2 == 245:
print('901*245 = 220745')
if num1 == 901 and sign == '*' and num2 == 246:
print('901*246 = 221646')
if num1 == 901 and sign == '*' and num2 == 247:
print('901*247 = 222547')
if num1 == 901 and sign == '*' and num2 == 248:
print('901*248 = 223448')
if num1 == 901 and sign == '*' and num2 == 249:
print('901*249 = 224349')
if num1 == 902 and sign == '*' and num2 == 200:
print('902*200 = 180400')
if num1 == 902 and sign == '*' and num2 == 201:
print('902*201 = 181302')
if num1 == 902 and sign == '*' and num2 == 202:
print('902*202 = 182204')
if num1 == 902 and sign == '*' and num2 == 203:
print('902*203 = 183106')
if num1 == 902 and sign == '*' and num2 == 204:
print('902*204 = 184008')
if num1 == 902 and sign == '*' and num2 == 205:
print('902*205 = 184910')
if num1 == 902 and sign == '*' and num2 == 206:
print('902*206 = 185812')
if num1 == 902 and sign == '*' and num2 == 207:
print('902*207 = 186714')
if num1 == 902 and sign == '*' and num2 == 208:
print('902*208 = 187616')
if num1 == 902 and sign == '*' and num2 == 209:
print('902*209 = 188518')
if num1 == 902 and sign == '*' and num2 == 210:
print('902*210 = 189420')
if num1 == 902 and sign == '*' and num2 == 211:
print('902*211 = 190322')
if num1 == 902 and sign == '*' and num2 == 212:
print('902*212 = 191224')
if num1 == 902 and sign == '*' and num2 == 213:
print('902*213 = 192126')
if num1 == 902 and sign == '*' and num2 == 214:
print('902*214 = 193028')
if num1 == 902 and sign == '*' and num2 == 215:
print('902*215 = 193930')
if num1 == 902 and sign == '*' and num2 == 216:
print('902*216 = 194832')
if num1 == 902 and sign == '*' and num2 == 217:
print('902*217 = 195734')
if num1 == 902 and sign == '*' and num2 == 218:
print('902*218 = 196636')
if num1 == 902 and sign == '*' and num2 == 219:
print('902*219 = 197538')
if num1 == 902 and sign == '*' and num2 == 220:
print('902*220 = 198440')
if num1 == 902 and sign == '*' and num2 == 221:
print('902*221 = 199342')
if num1 == 902 and sign == '*' and num2 == 222:
print('902*222 = 200244')
if num1 == 902 and sign == '*' and num2 == 223:
print('902*223 = 201146')
if num1 == 902 and sign == '*' and num2 == 224:
print('902*224 = 202048')
if num1 == 902 and sign == '*' and num2 == 225:
print('902*225 = 202950')
if num1 == 902 and sign == '*' and num2 == 226:
print('902*226 = 203852')
if num1 == 902 and sign == '*' and num2 == 227:
print('902*227 = 204754')
if num1 == 902 and sign == '*' and num2 == 228:
print('902*228 = 205656')
if num1 == 902 and sign == '*' and num2 == 229:
print('902*229 = 206558')
if num1 == 902 and sign == '*' and num2 == 230:
print('902*230 = 207460')
if num1 == 902 and sign == '*' and num2 == 231:
print('902*231 = 208362')
if num1 == 902 and sign == '*' and num2 == 232:
print('902*232 = 209264')
if num1 == 902 and sign == '*' and num2 == 233:
print('902*233 = 210166')
if num1 == 902 and sign == '*' and num2 == 234:
print('902*234 = 211068')
if num1 == 902 and sign == '*' and num2 == 235:
print('902*235 = 211970')
if num1 == 902 and sign == '*' and num2 == 236:
print('902*236 = 212872')
if num1 == 902 and sign == '*' and num2 == 237:
print('902*237 = 213774')
if num1 == 902 and sign == '*' and num2 == 238:
print('902*238 = 214676')
if num1 == 902 and sign == '*' and num2 == 239:
print('902*239 = 215578')
if num1 == 902 and sign == '*' and num2 == 240:
print('902*240 = 216480')
if num1 == 902 and sign == '*' and num2 == 241:
print('902*241 = 217382')
if num1 == 902 and sign == '*' and num2 == 242:
print('902*242 = 218284')
if num1 == 902 and sign == '*' and num2 == 243:
print('902*243 = 219186')
if num1 == 902 and sign == '*' and num2 == 244:
print('902*244 = 220088')
if num1 == 902 and sign == '*' and num2 == 245:
print('902*245 = 220990')
if num1 == 902 and sign == '*' and num2 == 246:
print('902*246 = 221892')
if num1 == 902 and sign == '*' and num2 == 247:
print('902*247 = 222794')
if num1 == 902 and sign == '*' and num2 == 248:
print('902*248 = 223696')
if num1 == 902 and sign == '*' and num2 == 249:
print('902*249 = 224598')
if num1 == 903 and sign == '*' and num2 == 200:
print('903*200 = 180600')
if num1 == 903 and sign == '*' and num2 == 201:
print('903*201 = 181503')
if num1 == 903 and sign == '*' and num2 == 202:
print('903*202 = 182406')
if num1 == 903 and sign == '*' and num2 == 203:
print('903*203 = 183309')
if num1 == 903 and sign == '*' and num2 == 204:
print('903*204 = 184212')
if num1 == 903 and sign == '*' and num2 == 205:
print('903*205 = 185115')
if num1 == 903 and sign == '*' and num2 == 206:
print('903*206 = 186018')
if num1 == 903 and sign == '*' and num2 == 207:
print('903*207 = 186921')
if num1 == 903 and sign == '*' and num2 == 208:
print('903*208 = 187824')
if num1 == 903 and sign == '*' and num2 == 209:
print('903*209 = 188727')
if num1 == 903 and sign == '*' and num2 == 210:
print('903*210 = 189630')
if num1 == 903 and sign == '*' and num2 == 211:
print('903*211 = 190533')
if num1 == 903 and sign == '*' and num2 == 212:
print('903*212 = 191436')
if num1 == 903 and sign == '*' and num2 == 213:
print('903*213 = 192339')
if num1 == 903 and sign == '*' and num2 == 214:
print('903*214 = 193242')
if num1 == 903 and sign == '*' and num2 == 215:
print('903*215 = 194145')
if num1 == 903 and sign == '*' and num2 == 216:
print('903*216 = 195048')
if num1 == 903 and sign == '*' and num2 == 217:
print('903*217 = 195951')
if num1 == 903 and sign == '*' and num2 == 218:
print('903*218 = 196854')
if num1 == 903 and sign == '*' and num2 == 219:
print('903*219 = 197757')
if num1 == 903 and sign == '*' and num2 == 220:
print('903*220 = 198660')
if num1 == 903 and sign == '*' and num2 == 221:
print('903*221 = 199563')
if num1 == 903 and sign == '*' and num2 == 222:
print('903*222 = 200466')
if num1 == 903 and sign == '*' and num2 == 223:
print('903*223 = 201369')
if num1 == 903 and sign == '*' and num2 == 224:
print('903*224 = 202272')
if num1 == 903 and sign == '*' and num2 == 225:
print('903*225 = 203175')
if num1 == 903 and sign == '*' and num2 == 226:
print('903*226 = 204078')
if num1 == 903 and sign == '*' and num2 == 227:
print('903*227 = 204981')
if num1 == 903 and sign == '*' and num2 == 228:
print('903*228 = 205884')
if num1 == 903 and sign == '*' and num2 == 229:
print('903*229 = 206787')
if num1 == 903 and sign == '*' and num2 == 230:
print('903*230 = 207690')
if num1 == 903 and sign == '*' and num2 == 231:
print('903*231 = 208593')
if num1 == 903 and sign == '*' and num2 == 232:
print('903*232 = 209496')
if num1 == 903 and sign == '*' and num2 == 233:
print('903*233 = 210399')
if num1 == 903 and sign == '*' and num2 == 234:
print('903*234 = 211302')
if num1 == 903 and sign == '*' and num2 == 235:
print('903*235 = 212205')
if num1 == 903 and sign == '*' and num2 == 236:
print('903*236 = 213108')
if num1 == 903 and sign == '*' and num2 == 237:
print('903*237 = 214011')
if num1 == 903 and sign == '*' and num2 == 238:
print('903*238 = 214914')
if num1 == 903 and sign == '*' and num2 == 239:
print('903*239 = 215817')
if num1 == 903 and sign == '*' and num2 == 240:
print('903*240 = 216720')
if num1 == 903 and sign == '*' and num2 == 241:
print('903*241 = 217623')
if num1 == 903 and sign == '*' and num2 == 242:
print('903*242 = 218526')
if num1 == 903 and sign == '*' and num2 == 243:
print('903*243 = 219429')
if num1 == 903 and sign == '*' and num2 == 244:
print('903*244 = 220332')
if num1 == 903 and sign == '*' and num2 == 245:
print('903*245 = 221235')
if num1 == 903 and sign == '*' and num2 == 246:
print('903*246 = 222138')
if num1 == 903 and sign == '*' and num2 == 247:
print('903*247 = 223041')
if num1 == 903 and sign == '*' and num2 == 248:
print('903*248 = 223944')
if num1 == 903 and sign == '*' and num2 == 249:
print('903*249 = 224847')
if num1 == 904 and sign == '*' and num2 == 200:
print('904*200 = 180800')
if num1 == 904 and sign == '*' and num2 == 201:
print('904*201 = 181704')
if num1 == 904 and sign == '*' and num2 == 202:
print('904*202 = 182608')
if num1 == 904 and sign == '*' and num2 == 203:
print('904*203 = 183512')
if num1 == 904 and sign == '*' and num2 == 204:
print('904*204 = 184416')
if num1 == 904 and sign == '*' and num2 == 205:
print('904*205 = 185320')
if num1 == 904 and sign == '*' and num2 == 206:
print('904*206 = 186224')
if num1 == 904 and sign == '*' and num2 == 207:
print('904*207 = 187128')
if num1 == 904 and sign == '*' and num2 == 208:
print('904*208 = 188032')
if num1 == 904 and sign == '*' and num2 == 209:
print('904*209 = 188936')
if num1 == 904 and sign == '*' and num2 == 210:
print('904*210 = 189840')
if num1 == 904 and sign == '*' and num2 == 211:
print('904*211 = 190744')
if num1 == 904 and sign == '*' and num2 == 212:
print('904*212 = 191648')
if num1 == 904 and sign == '*' and num2 == 213:
print('904*213 = 192552')
if num1 == 904 and sign == '*' and num2 == 214:
print('904*214 = 193456')
if num1 == 904 and sign == '*' and num2 == 215:
print('904*215 = 194360')
if num1 == 904 and sign == '*' and num2 == 216:
print('904*216 = 195264')
if num1 == 904 and sign == '*' and num2 == 217:
print('904*217 = 196168')
if num1 == 904 and sign == '*' and num2 == 218:
print('904*218 = 197072')
if num1 == 904 and sign == '*' and num2 == 219:
print('904*219 = 197976')
if num1 == 904 and sign == '*' and num2 == 220:
print('904*220 = 198880')
if num1 == 904 and sign == '*' and num2 == 221:
print('904*221 = 199784')
if num1 == 904 and sign == '*' and num2 == 222:
print('904*222 = 200688')
if num1 == 904 and sign == '*' and num2 == 223:
print('904*223 = 201592')
if num1 == 904 and sign == '*' and num2 == 224:
print('904*224 = 202496')
if num1 == 904 and sign == '*' and num2 == 225:
print('904*225 = 203400')
if num1 == 904 and sign == '*' and num2 == 226:
print('904*226 = 204304')
if num1 == 904 and sign == '*' and num2 == 227:
print('904*227 = 205208')
if num1 == 904 and sign == '*' and num2 == 228:
print('904*228 = 206112')
if num1 == 904 and sign == '*' and num2 == 229:
print('904*229 = 207016')
if num1 == 904 and sign == '*' and num2 == 230:
print('904*230 = 207920')
if num1 == 904 and sign == '*' and num2 == 231:
print('904*231 = 208824')
if num1 == 904 and sign == '*' and num2 == 232:
print('904*232 = 209728')
if num1 == 904 and sign == '*' and num2 == 233:
print('904*233 = 210632')
if num1 == 904 and sign == '*' and num2 == 234:
print('904*234 = 211536')
if num1 == 904 and sign == '*' and num2 == 235:
print('904*235 = 212440')
if num1 == 904 and sign == '*' and num2 == 236:
print('904*236 = 213344')
if num1 == 904 and sign == '*' and num2 == 237:
print('904*237 = 214248')
if num1 == 904 and sign == '*' and num2 == 238:
print('904*238 = 215152')
if num1 == 904 and sign == '*' and num2 == 239:
print('904*239 = 216056')
if num1 == 904 and sign == '*' and num2 == 240:
print('904*240 = 216960')
if num1 == 904 and sign == '*' and num2 == 241:
print('904*241 = 217864')
if num1 == 904 and sign == '*' and num2 == 242:
print('904*242 = 218768')
if num1 == 904 and sign == '*' and num2 == 243:
print('904*243 = 219672')
if num1 == 904 and sign == '*' and num2 == 244:
print('904*244 = 220576')
if num1 == 904 and sign == '*' and num2 == 245:
print('904*245 = 221480')
if num1 == 904 and sign == '*' and num2 == 246:
print('904*246 = 222384')
if num1 == 904 and sign == '*' and num2 == 247:
print('904*247 = 223288')
if num1 == 904 and sign == '*' and num2 == 248:
print('904*248 = 224192')
if num1 == 904 and sign == '*' and num2 == 249:
print('904*249 = 225096')
if num1 == 905 and sign == '*' and num2 == 200:
print('905*200 = 181000')
if num1 == 905 and sign == '*' and num2 == 201:
print('905*201 = 181905')
if num1 == 905 and sign == '*' and num2 == 202:
print('905*202 = 182810')
if num1 == 905 and sign == '*' and num2 == 203:
print('905*203 = 183715')
if num1 == 905 and sign == '*' and num2 == 204:
print('905*204 = 184620')
if num1 == 905 and sign == '*' and num2 == 205:
print('905*205 = 185525')
if num1 == 905 and sign == '*' and num2 == 206:
print('905*206 = 186430')
if num1 == 905 and sign == '*' and num2 == 207:
print('905*207 = 187335')
if num1 == 905 and sign == '*' and num2 == 208:
print('905*208 = 188240')
if num1 == 905 and sign == '*' and num2 == 209:
print('905*209 = 189145')
if num1 == 905 and sign == '*' and num2 == 210:
print('905*210 = 190050')
if num1 == 905 and sign == '*' and num2 == 211:
print('905*211 = 190955')
if num1 == 905 and sign == '*' and num2 == 212:
print('905*212 = 191860')
if num1 == 905 and sign == '*' and num2 == 213:
print('905*213 = 192765')
if num1 == 905 and sign == '*' and num2 == 214:
print('905*214 = 193670')
if num1 == 905 and sign == '*' and num2 == 215:
print('905*215 = 194575')
if num1 == 905 and sign == '*' and num2 == 216:
print('905*216 = 195480')
if num1 == 905 and sign == '*' and num2 == 217:
print('905*217 = 196385')
if num1 == 905 and sign == '*' and num2 == 218:
print('905*218 = 197290')
if num1 == 905 and sign == '*' and num2 == 219:
print('905*219 = 198195')
if num1 == 905 and sign == '*' and num2 == 220:
print('905*220 = 199100')
if num1 == 905 and sign == '*' and num2 == 221:
print('905*221 = 200005')
if num1 == 905 and sign == '*' and num2 == 222:
print('905*222 = 200910')
if num1 == 905 and sign == '*' and num2 == 223:
print('905*223 = 201815')
if num1 == 905 and sign == '*' and num2 == 224:
print('905*224 = 202720')
if num1 == 905 and sign == '*' and num2 == 225:
print('905*225 = 203625')
if num1 == 905 and sign == '*' and num2 == 226:
print('905*226 = 204530')
if num1 == 905 and sign == '*' and num2 == 227:
print('905*227 = 205435')
if num1 == 905 and sign == '*' and num2 == 228:
print('905*228 = 206340')
if num1 == 905 and sign == '*' and num2 == 229:
print('905*229 = 207245')
if num1 == 905 and sign == '*' and num2 == 230:
print('905*230 = 208150')
if num1 == 905 and sign == '*' and num2 == 231:
print('905*231 = 209055')
if num1 == 905 and sign == '*' and num2 == 232:
print('905*232 = 209960')
if num1 == 905 and sign == '*' and num2 == 233:
print('905*233 = 210865')
if num1 == 905 and sign == '*' and num2 == 234:
print('905*234 = 211770')
if num1 == 905 and sign == '*' and num2 == 235:
print('905*235 = 212675')
if num1 == 905 and sign == '*' and num2 == 236:
print('905*236 = 213580')
if num1 == 905 and sign == '*' and num2 == 237:
print('905*237 = 214485')
if num1 == 905 and sign == '*' and num2 == 238:
print('905*238 = 215390')
if num1 == 905 and sign == '*' and num2 == 239:
print('905*239 = 216295')
if num1 == 905 and sign == '*' and num2 == 240:
print('905*240 = 217200')
if num1 == 905 and sign == '*' and num2 == 241:
print('905*241 = 218105')
if num1 == 905 and sign == '*' and num2 == 242:
print('905*242 = 219010')
if num1 == 905 and sign == '*' and num2 == 243:
print('905*243 = 219915')
if num1 == 905 and sign == '*' and num2 == 244:
print('905*244 = 220820')
if num1 == 905 and sign == '*' and num2 == 245:
print('905*245 = 221725')
if num1 == 905 and sign == '*' and num2 == 246:
print('905*246 = 222630')
if num1 == 905 and sign == '*' and num2 == 247:
print('905*247 = 223535')
if num1 == 905 and sign == '*' and num2 == 248:
print('905*248 = 224440')
if num1 == 905 and sign == '*' and num2 == 249:
print('905*249 = 225345')
if num1 == 906 and sign == '*' and num2 == 200:
print('906*200 = 181200')
if num1 == 906 and sign == '*' and num2 == 201:
print('906*201 = 182106')
if num1 == 906 and sign == '*' and num2 == 202:
print('906*202 = 183012')
if num1 == 906 and sign == '*' and num2 == 203:
print('906*203 = 183918')
if num1 == 906 and sign == '*' and num2 == 204:
print('906*204 = 184824')
if num1 == 906 and sign == '*' and num2 == 205:
print('906*205 = 185730')
if num1 == 906 and sign == '*' and num2 == 206:
print('906*206 = 186636')
if num1 == 906 and sign == '*' and num2 == 207:
print('906*207 = 187542')
if num1 == 906 and sign == '*' and num2 == 208:
print('906*208 = 188448')
if num1 == 906 and sign == '*' and num2 == 209:
print('906*209 = 189354')
if num1 == 906 and sign == '*' and num2 == 210:
print('906*210 = 190260')
if num1 == 906 and sign == '*' and num2 == 211:
print('906*211 = 191166')
if num1 == 906 and sign == '*' and num2 == 212:
print('906*212 = 192072')
if num1 == 906 and sign == '*' and num2 == 213:
print('906*213 = 192978')
if num1 == 906 and sign == '*' and num2 == 214:
print('906*214 = 193884')
if num1 == 906 and sign == '*' and num2 == 215:
print('906*215 = 194790')
if num1 == 906 and sign == '*' and num2 == 216:
print('906*216 = 195696')
if num1 == 906 and sign == '*' and num2 == 217:
print('906*217 = 196602')
if num1 == 906 and sign == '*' and num2 == 218:
print('906*218 = 197508')
if num1 == 906 and sign == '*' and num2 == 219:
print('906*219 = 198414')
if num1 == 906 and sign == '*' and num2 == 220:
print('906*220 = 199320')
if num1 == 906 and sign == '*' and num2 == 221:
print('906*221 = 200226')
if num1 == 906 and sign == '*' and num2 == 222:
print('906*222 = 201132')
if num1 == 906 and sign == '*' and num2 == 223:
print('906*223 = 202038')
if num1 == 906 and sign == '*' and num2 == 224:
print('906*224 = 202944')
if num1 == 906 and sign == '*' and num2 == 225:
print('906*225 = 203850')
if num1 == 906 and sign == '*' and num2 == 226:
print('906*226 = 204756')
if num1 == 906 and sign == '*' and num2 == 227:
print('906*227 = 205662')
if num1 == 906 and sign == '*' and num2 == 228:
print('906*228 = 206568')
if num1 == 906 and sign == '*' and num2 == 229:
print('906*229 = 207474')
if num1 == 906 and sign == '*' and num2 == 230:
print('906*230 = 208380')
if num1 == 906 and sign == '*' and num2 == 231:
print('906*231 = 209286')
if num1 == 906 and sign == '*' and num2 == 232:
print('906*232 = 210192')
if num1 == 906 and sign == '*' and num2 == 233:
print('906*233 = 211098')
if num1 == 906 and sign == '*' and num2 == 234:
print('906*234 = 212004')
if num1 == 906 and sign == '*' and num2 == 235:
print('906*235 = 212910')
if num1 == 906 and sign == '*' and num2 == 236:
print('906*236 = 213816')
if num1 == 906 and sign == '*' and num2 == 237:
print('906*237 = 214722')
if num1 == 906 and sign == '*' and num2 == 238:
print('906*238 = 215628')
if num1 == 906 and sign == '*' and num2 == 239:
print('906*239 = 216534')
if num1 == 906 and sign == '*' and num2 == 240:
print('906*240 = 217440')
if num1 == 906 and sign == '*' and num2 == 241:
print('906*241 = 218346')
if num1 == 906 and sign == '*' and num2 == 242:
print('906*242 = 219252')
if num1 == 906 and sign == '*' and num2 == 243:
print('906*243 = 220158')
if num1 == 906 and sign == '*' and num2 == 244:
print('906*244 = 221064')
if num1 == 906 and sign == '*' and num2 == 245:
print('906*245 = 221970')
if num1 == 906 and sign == '*' and num2 == 246:
print('906*246 = 222876')
if num1 == 906 and sign == '*' and num2 == 247:
print('906*247 = 223782')
if num1 == 906 and sign == '*' and num2 == 248:
print('906*248 = 224688')
if num1 == 906 and sign == '*' and num2 == 249:
print('906*249 = 225594')
if num1 == 907 and sign == '*' and num2 == 200:
print('907*200 = 181400')
if num1 == 907 and sign == '*' and num2 == 201:
print('907*201 = 182307')
if num1 == 907 and sign == '*' and num2 == 202:
print('907*202 = 183214')
if num1 == 907 and sign == '*' and num2 == 203:
print('907*203 = 184121')
if num1 == 907 and sign == '*' and num2 == 204:
print('907*204 = 185028')
if num1 == 907 and sign == '*' and num2 == 205:
print('907*205 = 185935')
if num1 == 907 and sign == '*' and num2 == 206:
print('907*206 = 186842')
if num1 == 907 and sign == '*' and num2 == 207:
print('907*207 = 187749')
if num1 == 907 and sign == '*' and num2 == 208:
print('907*208 = 188656')
if num1 == 907 and sign == '*' and num2 == 209:
print('907*209 = 189563')
if num1 == 907 and sign == '*' and num2 == 210:
print('907*210 = 190470')
if num1 == 907 and sign == '*' and num2 == 211:
print('907*211 = 191377')
if num1 == 907 and sign == '*' and num2 == 212:
print('907*212 = 192284')
if num1 == 907 and sign == '*' and num2 == 213:
print('907*213 = 193191')
if num1 == 907 and sign == '*' and num2 == 214:
print('907*214 = 194098')
if num1 == 907 and sign == '*' and num2 == 215:
print('907*215 = 195005')
if num1 == 907 and sign == '*' and num2 == 216:
print('907*216 = 195912')
if num1 == 907 and sign == '*' and num2 == 217:
print('907*217 = 196819')
if num1 == 907 and sign == '*' and num2 == 218:
print('907*218 = 197726')
if num1 == 907 and sign == '*' and num2 == 219:
print('907*219 = 198633')
if num1 == 907 and sign == '*' and num2 == 220:
print('907*220 = 199540')
if num1 == 907 and sign == '*' and num2 == 221:
print('907*221 = 200447')
if num1 == 907 and sign == '*' and num2 == 222:
print('907*222 = 201354')
if num1 == 907 and sign == '*' and num2 == 223:
print('907*223 = 202261')
if num1 == 907 and sign == '*' and num2 == 224:
print('907*224 = 203168')
if num1 == 907 and sign == '*' and num2 == 225:
print('907*225 = 204075')
if num1 == 907 and sign == '*' and num2 == 226:
print('907*226 = 204982')
if num1 == 907 and sign == '*' and num2 == 227:
print('907*227 = 205889')
if num1 == 907 and sign == '*' and num2 == 228:
print('907*228 = 206796')
if num1 == 907 and sign == '*' and num2 == 229:
print('907*229 = 207703')
if num1 == 907 and sign == '*' and num2 == 230:
print('907*230 = 208610')
if num1 == 907 and sign == '*' and num2 == 231:
print('907*231 = 209517')
if num1 == 907 and sign == '*' and num2 == 232:
print('907*232 = 210424')
if num1 == 907 and sign == '*' and num2 == 233:
print('907*233 = 211331')
if num1 == 907 and sign == '*' and num2 == 234:
print('907*234 = 212238')
if num1 == 907 and sign == '*' and num2 == 235:
print('907*235 = 213145')
if num1 == 907 and sign == '*' and num2 == 236:
print('907*236 = 214052')
if num1 == 907 and sign == '*' and num2 == 237:
print('907*237 = 214959')
if num1 == 907 and sign == '*' and num2 == 238:
print('907*238 = 215866')
if num1 == 907 and sign == '*' and num2 == 239:
print('907*239 = 216773')
if num1 == 907 and sign == '*' and num2 == 240:
print('907*240 = 217680')
if num1 == 907 and sign == '*' and num2 == 241:
print('907*241 = 218587')
if num1 == 907 and sign == '*' and num2 == 242:
print('907*242 = 219494')
if num1 == 907 and sign == '*' and num2 == 243:
print('907*243 = 220401')
if num1 == 907 and sign == '*' and num2 == 244:
print('907*244 = 221308')
if num1 == 907 and sign == '*' and num2 == 245:
print('907*245 = 222215')
if num1 == 907 and sign == '*' and num2 == 246:
print('907*246 = 223122')
if num1 == 907 and sign == '*' and num2 == 247:
print('907*247 = 224029')
if num1 == 907 and sign == '*' and num2 == 248:
print('907*248 = 224936')
if num1 == 907 and sign == '*' and num2 == 249:
print('907*249 = 225843')
if num1 == 908 and sign == '*' and num2 == 200:
print('908*200 = 181600')
if num1 == 908 and sign == '*' and num2 == 201:
print('908*201 = 182508')
if num1 == 908 and sign == '*' and num2 == 202:
print('908*202 = 183416')
if num1 == 908 and sign == '*' and num2 == 203:
print('908*203 = 184324')
if num1 == 908 and sign == '*' and num2 == 204:
print('908*204 = 185232')
if num1 == 908 and sign == '*' and num2 == 205:
print('908*205 = 186140')
if num1 == 908 and sign == '*' and num2 == 206:
print('908*206 = 187048')
if num1 == 908 and sign == '*' and num2 == 207:
print('908*207 = 187956')
if num1 == 908 and sign == '*' and num2 == 208:
print('908*208 = 188864')
if num1 == 908 and sign == '*' and num2 == 209:
print('908*209 = 189772')
if num1 == 908 and sign == '*' and num2 == 210:
print('908*210 = 190680')
if num1 == 908 and sign == '*' and num2 == 211:
print('908*211 = 191588')
if num1 == 908 and sign == '*' and num2 == 212:
print('908*212 = 192496')
if num1 == 908 and sign == '*' and num2 == 213:
print('908*213 = 193404')
if num1 == 908 and sign == '*' and num2 == 214:
print('908*214 = 194312')
if num1 == 908 and sign == '*' and num2 == 215:
print('908*215 = 195220')
if num1 == 908 and sign == '*' and num2 == 216:
print('908*216 = 196128')
if num1 == 908 and sign == '*' and num2 == 217:
print('908*217 = 197036')
if num1 == 908 and sign == '*' and num2 == 218:
print('908*218 = 197944')
if num1 == 908 and sign == '*' and num2 == 219:
print('908*219 = 198852')
if num1 == 908 and sign == '*' and num2 == 220:
print('908*220 = 199760')
if num1 == 908 and sign == '*' and num2 == 221:
print('908*221 = 200668')
if num1 == 908 and sign == '*' and num2 == 222:
print('908*222 = 201576')
if num1 == 908 and sign == '*' and num2 == 223:
print('908*223 = 202484')
if num1 == 908 and sign == '*' and num2 == 224:
print('908*224 = 203392')
if num1 == 908 and sign == '*' and num2 == 225:
print('908*225 = 204300')
if num1 == 908 and sign == '*' and num2 == 226:
print('908*226 = 205208')
if num1 == 908 and sign == '*' and num2 == 227:
print('908*227 = 206116')
if num1 == 908 and sign == '*' and num2 == 228:
print('908*228 = 207024')
if num1 == 908 and sign == '*' and num2 == 229:
print('908*229 = 207932')
if num1 == 908 and sign == '*' and num2 == 230:
print('908*230 = 208840')
if num1 == 908 and sign == '*' and num2 == 231:
print('908*231 = 209748')
if num1 == 908 and sign == '*' and num2 == 232:
print('908*232 = 210656')
if num1 == 908 and sign == '*' and num2 == 233:
print('908*233 = 211564')
if num1 == 908 and sign == '*' and num2 == 234:
print('908*234 = 212472')
if num1 == 908 and sign == '*' and num2 == 235:
print('908*235 = 213380')
if num1 == 908 and sign == '*' and num2 == 236:
print('908*236 = 214288')
if num1 == 908 and sign == '*' and num2 == 237:
print('908*237 = 215196')
if num1 == 908 and sign == '*' and num2 == 238:
print('908*238 = 216104')
if num1 == 908 and sign == '*' and num2 == 239:
print('908*239 = 217012')
if num1 == 908 and sign == '*' and num2 == 240:
print('908*240 = 217920')
if num1 == 908 and sign == '*' and num2 == 241:
print('908*241 = 218828')
if num1 == 908 and sign == '*' and num2 == 242:
print('908*242 = 219736')
if num1 == 908 and sign == '*' and num2 == 243:
print('908*243 = 220644')
if num1 == 908 and sign == '*' and num2 == 244:
print('908*244 = 221552')
if num1 == 908 and sign == '*' and num2 == 245:
print('908*245 = 222460')
if num1 == 908 and sign == '*' and num2 == 246:
print('908*246 = 223368')
if num1 == 908 and sign == '*' and num2 == 247:
print('908*247 = 224276')
if num1 == 908 and sign == '*' and num2 == 248:
print('908*248 = 225184')
if num1 == 908 and sign == '*' and num2 == 249:
print('908*249 = 226092')
if num1 == 909 and sign == '*' and num2 == 200:
print('909*200 = 181800')
if num1 == 909 and sign == '*' and num2 == 201:
print('909*201 = 182709')
if num1 == 909 and sign == '*' and num2 == 202:
print('909*202 = 183618')
if num1 == 909 and sign == '*' and num2 == 203:
print('909*203 = 184527')
if num1 == 909 and sign == '*' and num2 == 204:
print('909*204 = 185436')
if num1 == 909 and sign == '*' and num2 == 205:
print('909*205 = 186345')
if num1 == 909 and sign == '*' and num2 == 206:
print('909*206 = 187254')
if num1 == 909 and sign == '*' and num2 == 207:
print('909*207 = 188163')
if num1 == 909 and sign == '*' and num2 == 208:
print('909*208 = 189072')
if num1 == 909 and sign == '*' and num2 == 209:
print('909*209 = 189981')
if num1 == 909 and sign == '*' and num2 == 210:
print('909*210 = 190890')
if num1 == 909 and sign == '*' and num2 == 211:
print('909*211 = 191799')
if num1 == 909 and sign == '*' and num2 == 212:
print('909*212 = 192708')
if num1 == 909 and sign == '*' and num2 == 213:
print('909*213 = 193617')
if num1 == 909 and sign == '*' and num2 == 214:
print('909*214 = 194526')
if num1 == 909 and sign == '*' and num2 == 215:
print('909*215 = 195435')
if num1 == 909 and sign == '*' and num2 == 216:
print('909*216 = 196344')
if num1 == 909 and sign == '*' and num2 == 217:
print('909*217 = 197253')
if num1 == 909 and sign == '*' and num2 == 218:
print('909*218 = 198162')
if num1 == 909 and sign == '*' and num2 == 219:
print('909*219 = 199071')
if num1 == 909 and sign == '*' and num2 == 220:
print('909*220 = 199980')
if num1 == 909 and sign == '*' and num2 == 221:
print('909*221 = 200889')
if num1 == 909 and sign == '*' and num2 == 222:
print('909*222 = 201798')
if num1 == 909 and sign == '*' and num2 == 223:
print('909*223 = 202707')
if num1 == 909 and sign == '*' and num2 == 224:
print('909*224 = 203616')
if num1 == 909 and sign == '*' and num2 == 225:
print('909*225 = 204525')
if num1 == 909 and sign == '*' and num2 == 226:
print('909*226 = 205434')
if num1 == 909 and sign == '*' and num2 == 227:
print('909*227 = 206343')
if num1 == 909 and sign == '*' and num2 == 228:
print('909*228 = 207252')
if num1 == 909 and sign == '*' and num2 == 229:
print('909*229 = 208161')
if num1 == 909 and sign == '*' and num2 == 230:
print('909*230 = 209070')
if num1 == 909 and sign == '*' and num2 == 231:
print('909*231 = 209979')
if num1 == 909 and sign == '*' and num2 == 232:
print('909*232 = 210888')
if num1 == 909 and sign == '*' and num2 == 233:
print('909*233 = 211797')
if num1 == 909 and sign == '*' and num2 == 234:
print('909*234 = 212706')
if num1 == 909 and sign == '*' and num2 == 235:
print('909*235 = 213615')
if num1 == 909 and sign == '*' and num2 == 236:
print('909*236 = 214524')
if num1 == 909 and sign == '*' and num2 == 237:
print('909*237 = 215433')
if num1 == 909 and sign == '*' and num2 == 238:
print('909*238 = 216342')
if num1 == 909 and sign == '*' and num2 == 239:
print('909*239 = 217251')
if num1 == 909 and sign == '*' and num2 == 240:
print('909*240 = 218160')
if num1 == 909 and sign == '*' and num2 == 241:
print('909*241 = 219069')
if num1 == 909 and sign == '*' and num2 == 242:
print('909*242 = 219978')
if num1 == 909 and sign == '*' and num2 == 243:
print('909*243 = 220887')
if num1 == 909 and sign == '*' and num2 == 244:
print('909*244 = 221796')
if num1 == 909 and sign == '*' and num2 == 245:
print('909*245 = 222705')
if num1 == 909 and sign == '*' and num2 == 246:
print('909*246 = 223614')
if num1 == 909 and sign == '*' and num2 == 247:
print('909*247 = 224523')
if num1 == 909 and sign == '*' and num2 == 248:
print('909*248 = 225432')
if num1 == 909 and sign == '*' and num2 == 249:
print('909*249 = 226341')
if num1 == 910 and sign == '*' and num2 == 200:
print('910*200 = 182000')
if num1 == 910 and sign == '*' and num2 == 201:
print('910*201 = 182910')
if num1 == 910 and sign == '*' and num2 == 202:
print('910*202 = 183820')
if num1 == 910 and sign == '*' and num2 == 203:
print('910*203 = 184730')
if num1 == 910 and sign == '*' and num2 == 204:
print('910*204 = 185640')
if num1 == 910 and sign == '*' and num2 == 205:
print('910*205 = 186550')
if num1 == 910 and sign == '*' and num2 == 206:
print('910*206 = 187460')
if num1 == 910 and sign == '*' and num2 == 207:
print('910*207 = 188370')
if num1 == 910 and sign == '*' and num2 == 208:
print('910*208 = 189280')
if num1 == 910 and sign == '*' and num2 == 209:
print('910*209 = 190190')
if num1 == 910 and sign == '*' and num2 == 210:
print('910*210 = 191100')
if num1 == 910 and sign == '*' and num2 == 211:
print('910*211 = 192010')
if num1 == 910 and sign == '*' and num2 == 212:
print('910*212 = 192920')
if num1 == 910 and sign == '*' and num2 == 213:
print('910*213 = 193830')
if num1 == 910 and sign == '*' and num2 == 214:
print('910*214 = 194740')
if num1 == 910 and sign == '*' and num2 == 215:
print('910*215 = 195650')
if num1 == 910 and sign == '*' and num2 == 216:
print('910*216 = 196560')
if num1 == 910 and sign == '*' and num2 == 217:
print('910*217 = 197470')
if num1 == 910 and sign == '*' and num2 == 218:
print('910*218 = 198380')
if num1 == 910 and sign == '*' and num2 == 219:
print('910*219 = 199290')
if num1 == 910 and sign == '*' and num2 == 220:
print('910*220 = 200200')
if num1 == 910 and sign == '*' and num2 == 221:
print('910*221 = 201110')
if num1 == 910 and sign == '*' and num2 == 222:
print('910*222 = 202020')
if num1 == 910 and sign == '*' and num2 == 223:
print('910*223 = 202930')
if num1 == 910 and sign == '*' and num2 == 224:
print('910*224 = 203840')
if num1 == 910 and sign == '*' and num2 == 225:
print('910*225 = 204750')
if num1 == 910 and sign == '*' and num2 == 226:
print('910*226 = 205660')
if num1 == 910 and sign == '*' and num2 == 227:
print('910*227 = 206570')
if num1 == 910 and sign == '*' and num2 == 228:
print('910*228 = 207480')
if num1 == 910 and sign == '*' and num2 == 229:
print('910*229 = 208390')
if num1 == 910 and sign == '*' and num2 == 230:
print('910*230 = 209300')
if num1 == 910 and sign == '*' and num2 == 231:
print('910*231 = 210210')
if num1 == 910 and sign == '*' and num2 == 232:
print('910*232 = 211120')
if num1 == 910 and sign == '*' and num2 == 233:
print('910*233 = 212030')
if num1 == 910 and sign == '*' and num2 == 234:
print('910*234 = 212940')
if num1 == 910 and sign == '*' and num2 == 235:
print('910*235 = 213850')
if num1 == 910 and sign == '*' and num2 == 236:
print('910*236 = 214760')
if num1 == 910 and sign == '*' and num2 == 237:
print('910*237 = 215670')
if num1 == 910 and sign == '*' and num2 == 238:
print('910*238 = 216580')
if num1 == 910 and sign == '*' and num2 == 239:
print('910*239 = 217490')
if num1 == 910 and sign == '*' and num2 == 240:
print('910*240 = 218400')
if num1 == 910 and sign == '*' and num2 == 241:
print('910*241 = 219310')
if num1 == 910 and sign == '*' and num2 == 242:
print('910*242 = 220220')
if num1 == 910 and sign == '*' and num2 == 243:
print('910*243 = 221130')
if num1 == 910 and sign == '*' and num2 == 244:
print('910*244 = 222040')
if num1 == 910 and sign == '*' and num2 == 245:
print('910*245 = 222950')
if num1 == 910 and sign == '*' and num2 == 246:
print('910*246 = 223860')
if num1 == 910 and sign == '*' and num2 == 247:
print('910*247 = 224770')
if num1 == 910 and sign == '*' and num2 == 248:
print('910*248 = 225680')
if num1 == 910 and sign == '*' and num2 == 249:
print('910*249 = 226590')
if num1 == 911 and sign == '*' and num2 == 200:
print('911*200 = 182200')
if num1 == 911 and sign == '*' and num2 == 201:
print('911*201 = 183111')
if num1 == 911 and sign == '*' and num2 == 202:
print('911*202 = 184022')
if num1 == 911 and sign == '*' and num2 == 203:
print('911*203 = 184933')
if num1 == 911 and sign == '*' and num2 == 204:
print('911*204 = 185844')
if num1 == 911 and sign == '*' and num2 == 205:
print('911*205 = 186755')
if num1 == 911 and sign == '*' and num2 == 206:
print('911*206 = 187666')
if num1 == 911 and sign == '*' and num2 == 207:
print('911*207 = 188577')
if num1 == 911 and sign == '*' and num2 == 208:
print('911*208 = 189488')
if num1 == 911 and sign == '*' and num2 == 209:
print('911*209 = 190399')
if num1 == 911 and sign == '*' and num2 == 210:
print('911*210 = 191310')
if num1 == 911 and sign == '*' and num2 == 211:
print('911*211 = 192221')
if num1 == 911 and sign == '*' and num2 == 212:
print('911*212 = 193132')
if num1 == 911 and sign == '*' and num2 == 213:
print('911*213 = 194043')
if num1 == 911 and sign == '*' and num2 == 214:
print('911*214 = 194954')
if num1 == 911 and sign == '*' and num2 == 215:
print('911*215 = 195865')
if num1 == 911 and sign == '*' and num2 == 216:
print('911*216 = 196776')
if num1 == 911 and sign == '*' and num2 == 217:
print('911*217 = 197687')
if num1 == 911 and sign == '*' and num2 == 218:
print('911*218 = 198598')
if num1 == 911 and sign == '*' and num2 == 219:
print('911*219 = 199509')
if num1 == 911 and sign == '*' and num2 == 220:
print('911*220 = 200420')
if num1 == 911 and sign == '*' and num2 == 221:
print('911*221 = 201331')
if num1 == 911 and sign == '*' and num2 == 222:
print('911*222 = 202242')
if num1 == 911 and sign == '*' and num2 == 223:
print('911*223 = 203153')
if num1 == 911 and sign == '*' and num2 == 224:
print('911*224 = 204064')
if num1 == 911 and sign == '*' and num2 == 225:
print('911*225 = 204975')
if num1 == 911 and sign == '*' and num2 == 226:
print('911*226 = 205886')
if num1 == 911 and sign == '*' and num2 == 227:
print('911*227 = 206797')
if num1 == 911 and sign == '*' and num2 == 228:
print('911*228 = 207708')
if num1 == 911 and sign == '*' and num2 == 229:
print('911*229 = 208619')
if num1 == 911 and sign == '*' and num2 == 230:
print('911*230 = 209530')
if num1 == 911 and sign == '*' and num2 == 231:
print('911*231 = 210441')
if num1 == 911 and sign == '*' and num2 == 232:
print('911*232 = 211352')
if num1 == 911 and sign == '*' and num2 == 233:
print('911*233 = 212263')
if num1 == 911 and sign == '*' and num2 == 234:
print('911*234 = 213174')
if num1 == 911 and sign == '*' and num2 == 235:
print('911*235 = 214085')
if num1 == 911 and sign == '*' and num2 == 236:
print('911*236 = 214996')
if num1 == 911 and sign == '*' and num2 == 237:
print('911*237 = 215907')
if num1 == 911 and sign == '*' and num2 == 238:
print('911*238 = 216818')
if num1 == 911 and sign == '*' and num2 == 239:
print('911*239 = 217729')
if num1 == 911 and sign == '*' and num2 == 240:
print('911*240 = 218640')
if num1 == 911 and sign == '*' and num2 == 241:
print('911*241 = 219551')
if num1 == 911 and sign == '*' and num2 == 242:
print('911*242 = 220462')
if num1 == 911 and sign == '*' and num2 == 243:
print('911*243 = 221373')
if num1 == 911 and sign == '*' and num2 == 244:
print('911*244 = 222284')
if num1 == 911 and sign == '*' and num2 == 245:
print('911*245 = 223195')
if num1 == 911 and sign == '*' and num2 == 246:
print('911*246 = 224106')
if num1 == 911 and sign == '*' and num2 == 247:
print('911*247 = 225017')
if num1 == 911 and sign == '*' and num2 == 248:
print('911*248 = 225928')
if num1 == 911 and sign == '*' and num2 == 249:
print('911*249 = 226839')
if num1 == 912 and sign == '*' and num2 == 200:
print('912*200 = 182400')
if num1 == 912 and sign == '*' and num2 == 201:
print('912*201 = 183312')
if num1 == 912 and sign == '*' and num2 == 202:
print('912*202 = 184224')
if num1 == 912 and sign == '*' and num2 == 203:
print('912*203 = 185136')
if num1 == 912 and sign == '*' and num2 == 204:
print('912*204 = 186048')
if num1 == 912 and sign == '*' and num2 == 205:
print('912*205 = 186960')
if num1 == 912 and sign == '*' and num2 == 206:
print('912*206 = 187872')
if num1 == 912 and sign == '*' and num2 == 207:
print('912*207 = 188784')
if num1 == 912 and sign == '*' and num2 == 208:
print('912*208 = 189696')
if num1 == 912 and sign == '*' and num2 == 209:
print('912*209 = 190608')
if num1 == 912 and sign == '*' and num2 == 210:
print('912*210 = 191520')
if num1 == 912 and sign == '*' and num2 == 211:
print('912*211 = 192432')
if num1 == 912 and sign == '*' and num2 == 212:
print('912*212 = 193344')
if num1 == 912 and sign == '*' and num2 == 213:
print('912*213 = 194256')
if num1 == 912 and sign == '*' and num2 == 214:
print('912*214 = 195168')
if num1 == 912 and sign == '*' and num2 == 215:
print('912*215 = 196080')
if num1 == 912 and sign == '*' and num2 == 216:
print('912*216 = 196992')
if num1 == 912 and sign == '*' and num2 == 217:
print('912*217 = 197904')
if num1 == 912 and sign == '*' and num2 == 218:
print('912*218 = 198816')
if num1 == 912 and sign == '*' and num2 == 219:
print('912*219 = 199728')
if num1 == 912 and sign == '*' and num2 == 220:
print('912*220 = 200640')
if num1 == 912 and sign == '*' and num2 == 221:
print('912*221 = 201552')
if num1 == 912 and sign == '*' and num2 == 222:
print('912*222 = 202464')
if num1 == 912 and sign == '*' and num2 == 223:
print('912*223 = 203376')
if num1 == 912 and sign == '*' and num2 == 224:
print('912*224 = 204288')
if num1 == 912 and sign == '*' and num2 == 225:
print('912*225 = 205200')
if num1 == 912 and sign == '*' and num2 == 226:
print('912*226 = 206112')
if num1 == 912 and sign == '*' and num2 == 227:
print('912*227 = 207024')
if num1 == 912 and sign == '*' and num2 == 228:
print('912*228 = 207936')
if num1 == 912 and sign == '*' and num2 == 229:
print('912*229 = 208848')
if num1 == 912 and sign == '*' and num2 == 230:
print('912*230 = 209760')
if num1 == 912 and sign == '*' and num2 == 231:
print('912*231 = 210672')
if num1 == 912 and sign == '*' and num2 == 232:
print('912*232 = 211584')
if num1 == 912 and sign == '*' and num2 == 233:
print('912*233 = 212496')
if num1 == 912 and sign == '*' and num2 == 234:
print('912*234 = 213408')
if num1 == 912 and sign == '*' and num2 == 235:
print('912*235 = 214320')
if num1 == 912 and sign == '*' and num2 == 236:
print('912*236 = 215232')
if num1 == 912 and sign == '*' and num2 == 237:
print('912*237 = 216144')
if num1 == 912 and sign == '*' and num2 == 238:
print('912*238 = 217056')
if num1 == 912 and sign == '*' and num2 == 239:
print('912*239 = 217968')
if num1 == 912 and sign == '*' and num2 == 240:
print('912*240 = 218880')
if num1 == 912 and sign == '*' and num2 == 241:
print('912*241 = 219792')
if num1 == 912 and sign == '*' and num2 == 242:
print('912*242 = 220704')
if num1 == 912 and sign == '*' and num2 == 243:
print('912*243 = 221616')
if num1 == 912 and sign == '*' and num2 == 244:
print('912*244 = 222528')
if num1 == 912 and sign == '*' and num2 == 245:
print('912*245 = 223440')
if num1 == 912 and sign == '*' and num2 == 246:
print('912*246 = 224352')
if num1 == 912 and sign == '*' and num2 == 247:
print('912*247 = 225264')
if num1 == 912 and sign == '*' and num2 == 248:
print('912*248 = 226176')
if num1 == 912 and sign == '*' and num2 == 249:
print('912*249 = 227088')
if num1 == 913 and sign == '*' and num2 == 200:
print('913*200 = 182600')
if num1 == 913 and sign == '*' and num2 == 201:
print('913*201 = 183513')
if num1 == 913 and sign == '*' and num2 == 202:
print('913*202 = 184426')
if num1 == 913 and sign == '*' and num2 == 203:
print('913*203 = 185339')
if num1 == 913 and sign == '*' and num2 == 204:
print('913*204 = 186252')
if num1 == 913 and sign == '*' and num2 == 205:
print('913*205 = 187165')
if num1 == 913 and sign == '*' and num2 == 206:
print('913*206 = 188078')
if num1 == 913 and sign == '*' and num2 == 207:
print('913*207 = 188991')
if num1 == 913 and sign == '*' and num2 == 208:
print('913*208 = 189904')
if num1 == 913 and sign == '*' and num2 == 209:
print('913*209 = 190817')
if num1 == 913 and sign == '*' and num2 == 210:
print('913*210 = 191730')
if num1 == 913 and sign == '*' and num2 == 211:
print('913*211 = 192643')
if num1 == 913 and sign == '*' and num2 == 212:
print('913*212 = 193556')
if num1 == 913 and sign == '*' and num2 == 213:
print('913*213 = 194469')
if num1 == 913 and sign == '*' and num2 == 214:
print('913*214 = 195382')
if num1 == 913 and sign == '*' and num2 == 215:
print('913*215 = 196295')
if num1 == 913 and sign == '*' and num2 == 216:
print('913*216 = 197208')
if num1 == 913 and sign == '*' and num2 == 217:
print('913*217 = 198121')
if num1 == 913 and sign == '*' and num2 == 218:
print('913*218 = 199034')
if num1 == 913 and sign == '*' and num2 == 219:
print('913*219 = 199947')
if num1 == 913 and sign == '*' and num2 == 220:
print('913*220 = 200860')
if num1 == 913 and sign == '*' and num2 == 221:
print('913*221 = 201773')
if num1 == 913 and sign == '*' and num2 == 222:
print('913*222 = 202686')
if num1 == 913 and sign == '*' and num2 == 223:
print('913*223 = 203599')
if num1 == 913 and sign == '*' and num2 == 224:
print('913*224 = 204512')
if num1 == 913 and sign == '*' and num2 == 225:
print('913*225 = 205425')
if num1 == 913 and sign == '*' and num2 == 226:
print('913*226 = 206338')
if num1 == 913 and sign == '*' and num2 == 227:
print('913*227 = 207251')
if num1 == 913 and sign == '*' and num2 == 228:
print('913*228 = 208164')
if num1 == 913 and sign == '*' and num2 == 229:
print('913*229 = 209077')
if num1 == 913 and sign == '*' and num2 == 230:
print('913*230 = 209990')
if num1 == 913 and sign == '*' and num2 == 231:
print('913*231 = 210903')
if num1 == 913 and sign == '*' and num2 == 232:
print('913*232 = 211816')
if num1 == 913 and sign == '*' and num2 == 233:
print('913*233 = 212729')
if num1 == 913 and sign == '*' and num2 == 234:
print('913*234 = 213642')
if num1 == 913 and sign == '*' and num2 == 235:
print('913*235 = 214555')
if num1 == 913 and sign == '*' and num2 == 236:
print('913*236 = 215468')
if num1 == 913 and sign == '*' and num2 == 237:
print('913*237 = 216381')
if num1 == 913 and sign == '*' and num2 == 238:
print('913*238 = 217294')
if num1 == 913 and sign == '*' and num2 == 239:
print('913*239 = 218207')
if num1 == 913 and sign == '*' and num2 == 240:
print('913*240 = 219120')
if num1 == 913 and sign == '*' and num2 == 241:
print('913*241 = 220033')
if num1 == 913 and sign == '*' and num2 == 242:
print('913*242 = 220946')
if num1 == 913 and sign == '*' and num2 == 243:
print('913*243 = 221859')
if num1 == 913 and sign == '*' and num2 == 244:
print('913*244 = 222772')
if num1 == 913 and sign == '*' and num2 == 245:
print('913*245 = 223685')
if num1 == 913 and sign == '*' and num2 == 246:
print('913*246 = 224598')
if num1 == 913 and sign == '*' and num2 == 247:
print('913*247 = 225511')
if num1 == 913 and sign == '*' and num2 == 248:
print('913*248 = 226424')
if num1 == 913 and sign == '*' and num2 == 249:
print('913*249 = 227337')
if num1 == 914 and sign == '*' and num2 == 200:
print('914*200 = 182800')
if num1 == 914 and sign == '*' and num2 == 201:
print('914*201 = 183714')
if num1 == 914 and sign == '*' and num2 == 202:
print('914*202 = 184628')
if num1 == 914 and sign == '*' and num2 == 203:
print('914*203 = 185542')
if num1 == 914 and sign == '*' and num2 == 204:
print('914*204 = 186456')
if num1 == 914 and sign == '*' and num2 == 205:
print('914*205 = 187370')
if num1 == 914 and sign == '*' and num2 == 206:
print('914*206 = 188284')
if num1 == 914 and sign == '*' and num2 == 207:
print('914*207 = 189198')
if num1 == 914 and sign == '*' and num2 == 208:
print('914*208 = 190112')
if num1 == 914 and sign == '*' and num2 == 209:
print('914*209 = 191026')
if num1 == 914 and sign == '*' and num2 == 210:
print('914*210 = 191940')
if num1 == 914 and sign == '*' and num2 == 211:
print('914*211 = 192854')
if num1 == 914 and sign == '*' and num2 == 212:
print('914*212 = 193768')
if num1 == 914 and sign == '*' and num2 == 213:
print('914*213 = 194682')
if num1 == 914 and sign == '*' and num2 == 214:
print('914*214 = 195596')
if num1 == 914 and sign == '*' and num2 == 215:
print('914*215 = 196510')
if num1 == 914 and sign == '*' and num2 == 216:
print('914*216 = 197424')
if num1 == 914 and sign == '*' and num2 == 217:
print('914*217 = 198338')
if num1 == 914 and sign == '*' and num2 == 218:
print('914*218 = 199252')
if num1 == 914 and sign == '*' and num2 == 219:
print('914*219 = 200166')
if num1 == 914 and sign == '*' and num2 == 220:
print('914*220 = 201080')
if num1 == 914 and sign == '*' and num2 == 221:
print('914*221 = 201994')
if num1 == 914 and sign == '*' and num2 == 222:
print('914*222 = 202908')
if num1 == 914 and sign == '*' and num2 == 223:
print('914*223 = 203822')
if num1 == 914 and sign == '*' and num2 == 224:
print('914*224 = 204736')
if num1 == 914 and sign == '*' and num2 == 225:
print('914*225 = 205650')
if num1 == 914 and sign == '*' and num2 == 226:
print('914*226 = 206564')
if num1 == 914 and sign == '*' and num2 == 227:
print('914*227 = 207478')
if num1 == 914 and sign == '*' and num2 == 228:
print('914*228 = 208392')
if num1 == 914 and sign == '*' and num2 == 229:
print('914*229 = 209306')
if num1 == 914 and sign == '*' and num2 == 230:
print('914*230 = 210220')
if num1 == 914 and sign == '*' and num2 == 231:
print('914*231 = 211134')
if num1 == 914 and sign == '*' and num2 == 232:
print('914*232 = 212048')
if num1 == 914 and sign == '*' and num2 == 233:
print('914*233 = 212962')
if num1 == 914 and sign == '*' and num2 == 234:
print('914*234 = 213876')
if num1 == 914 and sign == '*' and num2 == 235:
print('914*235 = 214790')
if num1 == 914 and sign == '*' and num2 == 236:
print('914*236 = 215704')
if num1 == 914 and sign == '*' and num2 == 237:
print('914*237 = 216618')
if num1 == 914 and sign == '*' and num2 == 238:
print('914*238 = 217532')
if num1 == 914 and sign == '*' and num2 == 239:
print('914*239 = 218446')
if num1 == 914 and sign == '*' and num2 == 240:
print('914*240 = 219360')
if num1 == 914 and sign == '*' and num2 == 241:
print('914*241 = 220274')
if num1 == 914 and sign == '*' and num2 == 242:
print('914*242 = 221188')
if num1 == 914 and sign == '*' and num2 == 243:
print('914*243 = 222102')
if num1 == 914 and sign == '*' and num2 == 244:
print('914*244 = 223016')
if num1 == 914 and sign == '*' and num2 == 245:
print('914*245 = 223930')
if num1 == 914 and sign == '*' and num2 == 246:
print('914*246 = 224844')
if num1 == 914 and sign == '*' and num2 == 247:
print('914*247 = 225758')
if num1 == 914 and sign == '*' and num2 == 248:
print('914*248 = 226672')
if num1 == 914 and sign == '*' and num2 == 249:
print('914*249 = 227586')
if num1 == 915 and sign == '*' and num2 == 200:
print('915*200 = 183000')
if num1 == 915 and sign == '*' and num2 == 201:
print('915*201 = 183915')
if num1 == 915 and sign == '*' and num2 == 202:
print('915*202 = 184830')
if num1 == 915 and sign == '*' and num2 == 203:
print('915*203 = 185745')
if num1 == 915 and sign == '*' and num2 == 204:
print('915*204 = 186660')
if num1 == 915 and sign == '*' and num2 == 205:
print('915*205 = 187575')
if num1 == 915 and sign == '*' and num2 == 206:
print('915*206 = 188490')
if num1 == 915 and sign == '*' and num2 == 207:
print('915*207 = 189405')
if num1 == 915 and sign == '*' and num2 == 208:
print('915*208 = 190320')
if num1 == 915 and sign == '*' and num2 == 209:
print('915*209 = 191235')
if num1 == 915 and sign == '*' and num2 == 210:
print('915*210 = 192150')
if num1 == 915 and sign == '*' and num2 == 211:
print('915*211 = 193065')
if num1 == 915 and sign == '*' and num2 == 212:
print('915*212 = 193980')
if num1 == 915 and sign == '*' and num2 == 213:
print('915*213 = 194895')
if num1 == 915 and sign == '*' and num2 == 214:
print('915*214 = 195810')
if num1 == 915 and sign == '*' and num2 == 215:
print('915*215 = 196725')
if num1 == 915 and sign == '*' and num2 == 216:
print('915*216 = 197640')
if num1 == 915 and sign == '*' and num2 == 217:
print('915*217 = 198555')
if num1 == 915 and sign == '*' and num2 == 218:
print('915*218 = 199470')
if num1 == 915 and sign == '*' and num2 == 219:
print('915*219 = 200385')
if num1 == 915 and sign == '*' and num2 == 220:
print('915*220 = 201300')
if num1 == 915 and sign == '*' and num2 == 221:
print('915*221 = 202215')
if num1 == 915 and sign == '*' and num2 == 222:
print('915*222 = 203130')
if num1 == 915 and sign == '*' and num2 == 223:
print('915*223 = 204045')
if num1 == 915 and sign == '*' and num2 == 224:
print('915*224 = 204960')
if num1 == 915 and sign == '*' and num2 == 225:
print('915*225 = 205875')
if num1 == 915 and sign == '*' and num2 == 226:
print('915*226 = 206790')
if num1 == 915 and sign == '*' and num2 == 227:
print('915*227 = 207705')
if num1 == 915 and sign == '*' and num2 == 228:
print('915*228 = 208620')
if num1 == 915 and sign == '*' and num2 == 229:
print('915*229 = 209535')
if num1 == 915 and sign == '*' and num2 == 230:
print('915*230 = 210450')
if num1 == 915 and sign == '*' and num2 == 231:
print('915*231 = 211365')
if num1 == 915 and sign == '*' and num2 == 232:
print('915*232 = 212280')
if num1 == 915 and sign == '*' and num2 == 233:
print('915*233 = 213195')
if num1 == 915 and sign == '*' and num2 == 234:
print('915*234 = 214110')
if num1 == 915 and sign == '*' and num2 == 235:
print('915*235 = 215025')
if num1 == 915 and sign == '*' and num2 == 236:
print('915*236 = 215940')
if num1 == 915 and sign == '*' and num2 == 237:
print('915*237 = 216855')
if num1 == 915 and sign == '*' and num2 == 238:
print('915*238 = 217770')
if num1 == 915 and sign == '*' and num2 == 239:
print('915*239 = 218685')
if num1 == 915 and sign == '*' and num2 == 240:
print('915*240 = 219600')
if num1 == 915 and sign == '*' and num2 == 241:
print('915*241 = 220515')
if num1 == 915 and sign == '*' and num2 == 242:
print('915*242 = 221430')
if num1 == 915 and sign == '*' and num2 == 243:
print('915*243 = 222345')
if num1 == 915 and sign == '*' and num2 == 244:
print('915*244 = 223260')
if num1 == 915 and sign == '*' and num2 == 245:
print('915*245 = 224175')
if num1 == 915 and sign == '*' and num2 == 246:
print('915*246 = 225090')
if num1 == 915 and sign == '*' and num2 == 247:
print('915*247 = 226005')
if num1 == 915 and sign == '*' and num2 == 248:
print('915*248 = 226920')
if num1 == 915 and sign == '*' and num2 == 249:
print('915*249 = 227835')
if num1 == 916 and sign == '*' and num2 == 200:
print('916*200 = 183200')
if num1 == 916 and sign == '*' and num2 == 201:
print('916*201 = 184116')
if num1 == 916 and sign == '*' and num2 == 202:
print('916*202 = 185032')
if num1 == 916 and sign == '*' and num2 == 203:
print('916*203 = 185948')
if num1 == 916 and sign == '*' and num2 == 204:
print('916*204 = 186864')
if num1 == 916 and sign == '*' and num2 == 205:
print('916*205 = 187780')
if num1 == 916 and sign == '*' and num2 == 206:
print('916*206 = 188696')
if num1 == 916 and sign == '*' and num2 == 207:
print('916*207 = 189612')
if num1 == 916 and sign == '*' and num2 == 208:
print('916*208 = 190528')
if num1 == 916 and sign == '*' and num2 == 209:
print('916*209 = 191444')
if num1 == 916 and sign == '*' and num2 == 210:
print('916*210 = 192360')
if num1 == 916 and sign == '*' and num2 == 211:
print('916*211 = 193276')
if num1 == 916 and sign == '*' and num2 == 212:
print('916*212 = 194192')
if num1 == 916 and sign == '*' and num2 == 213:
print('916*213 = 195108')
if num1 == 916 and sign == '*' and num2 == 214:
print('916*214 = 196024')
if num1 == 916 and sign == '*' and num2 == 215:
print('916*215 = 196940')
if num1 == 916 and sign == '*' and num2 == 216:
print('916*216 = 197856')
if num1 == 916 and sign == '*' and num2 == 217:
print('916*217 = 198772')
if num1 == 916 and sign == '*' and num2 == 218:
print('916*218 = 199688')
if num1 == 916 and sign == '*' and num2 == 219:
print('916*219 = 200604')
if num1 == 916 and sign == '*' and num2 == 220:
print('916*220 = 201520')
if num1 == 916 and sign == '*' and num2 == 221:
print('916*221 = 202436')
if num1 == 916 and sign == '*' and num2 == 222:
print('916*222 = 203352')
if num1 == 916 and sign == '*' and num2 == 223:
print('916*223 = 204268')
if num1 == 916 and sign == '*' and num2 == 224:
print('916*224 = 205184')
if num1 == 916 and sign == '*' and num2 == 225:
print('916*225 = 206100')
if num1 == 916 and sign == '*' and num2 == 226:
print('916*226 = 207016')
if num1 == 916 and sign == '*' and num2 == 227:
print('916*227 = 207932')
if num1 == 916 and sign == '*' and num2 == 228:
print('916*228 = 208848')
if num1 == 916 and sign == '*' and num2 == 229:
print('916*229 = 209764')
if num1 == 916 and sign == '*' and num2 == 230:
print('916*230 = 210680')
if num1 == 916 and sign == '*' and num2 == 231:
print('916*231 = 211596')
if num1 == 916 and sign == '*' and num2 == 232:
print('916*232 = 212512')
if num1 == 916 and sign == '*' and num2 == 233:
print('916*233 = 213428')
if num1 == 916 and sign == '*' and num2 == 234:
print('916*234 = 214344')
if num1 == 916 and sign == '*' and num2 == 235:
print('916*235 = 215260')
if num1 == 916 and sign == '*' and num2 == 236:
print('916*236 = 216176')
if num1 == 916 and sign == '*' and num2 == 237:
print('916*237 = 217092')
if num1 == 916 and sign == '*' and num2 == 238:
print('916*238 = 218008')
if num1 == 916 and sign == '*' and num2 == 239:
print('916*239 = 218924')
if num1 == 916 and sign == '*' and num2 == 240:
print('916*240 = 219840')
if num1 == 916 and sign == '*' and num2 == 241:
print('916*241 = 220756')
if num1 == 916 and sign == '*' and num2 == 242:
print('916*242 = 221672')
if num1 == 916 and sign == '*' and num2 == 243:
print('916*243 = 222588')
if num1 == 916 and sign == '*' and num2 == 244:
print('916*244 = 223504')
if num1 == 916 and sign == '*' and num2 == 245:
print('916*245 = 224420')
if num1 == 916 and sign == '*' and num2 == 246:
print('916*246 = 225336')
if num1 == 916 and sign == '*' and num2 == 247:
print('916*247 = 226252')
if num1 == 916 and sign == '*' and num2 == 248:
print('916*248 = 227168')
if num1 == 916 and sign == '*' and num2 == 249:
print('916*249 = 228084')
if num1 == 917 and sign == '*' and num2 == 200:
print('917*200 = 183400')
if num1 == 917 and sign == '*' and num2 == 201:
print('917*201 = 184317')
if num1 == 917 and sign == '*' and num2 == 202:
print('917*202 = 185234')
if num1 == 917 and sign == '*' and num2 == 203:
print('917*203 = 186151')
if num1 == 917 and sign == '*' and num2 == 204:
print('917*204 = 187068')
if num1 == 917 and sign == '*' and num2 == 205:
print('917*205 = 187985')
if num1 == 917 and sign == '*' and num2 == 206:
print('917*206 = 188902')
if num1 == 917 and sign == '*' and num2 == 207:
print('917*207 = 189819')
if num1 == 917 and sign == '*' and num2 == 208:
print('917*208 = 190736')
if num1 == 917 and sign == '*' and num2 == 209:
print('917*209 = 191653')
if num1 == 917 and sign == '*' and num2 == 210:
print('917*210 = 192570')
if num1 == 917 and sign == '*' and num2 == 211:
print('917*211 = 193487')
if num1 == 917 and sign == '*' and num2 == 212:
print('917*212 = 194404')
if num1 == 917 and sign == '*' and num2 == 213:
print('917*213 = 195321')
if num1 == 917 and sign == '*' and num2 == 214:
print('917*214 = 196238')
if num1 == 917 and sign == '*' and num2 == 215:
print('917*215 = 197155')
if num1 == 917 and sign == '*' and num2 == 216:
print('917*216 = 198072')
if num1 == 917 and sign == '*' and num2 == 217:
print('917*217 = 198989')
if num1 == 917 and sign == '*' and num2 == 218:
print('917*218 = 199906')
if num1 == 917 and sign == '*' and num2 == 219:
print('917*219 = 200823')
if num1 == 917 and sign == '*' and num2 == 220:
print('917*220 = 201740')
if num1 == 917 and sign == '*' and num2 == 221:
print('917*221 = 202657')
if num1 == 917 and sign == '*' and num2 == 222:
print('917*222 = 203574')
if num1 == 917 and sign == '*' and num2 == 223:
print('917*223 = 204491')
if num1 == 917 and sign == '*' and num2 == 224:
print('917*224 = 205408')
if num1 == 917 and sign == '*' and num2 == 225:
print('917*225 = 206325')
if num1 == 917 and sign == '*' and num2 == 226:
print('917*226 = 207242')
if num1 == 917 and sign == '*' and num2 == 227:
print('917*227 = 208159')
if num1 == 917 and sign == '*' and num2 == 228:
print('917*228 = 209076')
if num1 == 917 and sign == '*' and num2 == 229:
print('917*229 = 209993')
if num1 == 917 and sign == '*' and num2 == 230:
print('917*230 = 210910')
if num1 == 917 and sign == '*' and num2 == 231:
print('917*231 = 211827')
if num1 == 917 and sign == '*' and num2 == 232:
print('917*232 = 212744')
if num1 == 917 and sign == '*' and num2 == 233:
print('917*233 = 213661')
if num1 == 917 and sign == '*' and num2 == 234:
print('917*234 = 214578')
if num1 == 917 and sign == '*' and num2 == 235:
print('917*235 = 215495')
if num1 == 917 and sign == '*' and num2 == 236:
print('917*236 = 216412')
if num1 == 917 and sign == '*' and num2 == 237:
print('917*237 = 217329')
if num1 == 917 and sign == '*' and num2 == 238:
print('917*238 = 218246')
if num1 == 917 and sign == '*' and num2 == 239:
print('917*239 = 219163')
if num1 == 917 and sign == '*' and num2 == 240:
print('917*240 = 220080')
if num1 == 917 and sign == '*' and num2 == 241:
print('917*241 = 220997')
if num1 == 917 and sign == '*' and num2 == 242:
print('917*242 = 221914')
if num1 == 917 and sign == '*' and num2 == 243:
print('917*243 = 222831')
if num1 == 917 and sign == '*' and num2 == 244:
print('917*244 = 223748')
if num1 == 917 and sign == '*' and num2 == 245:
print('917*245 = 224665')
if num1 == 917 and sign == '*' and num2 == 246:
print('917*246 = 225582')
if num1 == 917 and sign == '*' and num2 == 247:
print('917*247 = 226499')
if num1 == 917 and sign == '*' and num2 == 248:
print('917*248 = 227416')
if num1 == 917 and sign == '*' and num2 == 249:
print('917*249 = 228333')
if num1 == 918 and sign == '*' and num2 == 200:
print('918*200 = 183600')
if num1 == 918 and sign == '*' and num2 == 201:
print('918*201 = 184518')
if num1 == 918 and sign == '*' and num2 == 202:
print('918*202 = 185436')
if num1 == 918 and sign == '*' and num2 == 203:
print('918*203 = 186354')
if num1 == 918 and sign == '*' and num2 == 204:
print('918*204 = 187272')
if num1 == 918 and sign == '*' and num2 == 205:
print('918*205 = 188190')
if num1 == 918 and sign == '*' and num2 == 206:
print('918*206 = 189108')
if num1 == 918 and sign == '*' and num2 == 207:
print('918*207 = 190026')
if num1 == 918 and sign == '*' and num2 == 208:
print('918*208 = 190944')
if num1 == 918 and sign == '*' and num2 == 209:
print('918*209 = 191862')
if num1 == 918 and sign == '*' and num2 == 210:
print('918*210 = 192780')
if num1 == 918 and sign == '*' and num2 == 211:
print('918*211 = 193698')
if num1 == 918 and sign == '*' and num2 == 212:
print('918*212 = 194616')
if num1 == 918 and sign == '*' and num2 == 213:
print('918*213 = 195534')
if num1 == 918 and sign == '*' and num2 == 214:
print('918*214 = 196452')
if num1 == 918 and sign == '*' and num2 == 215:
print('918*215 = 197370')
if num1 == 918 and sign == '*' and num2 == 216:
print('918*216 = 198288')
if num1 == 918 and sign == '*' and num2 == 217:
print('918*217 = 199206')
if num1 == 918 and sign == '*' and num2 == 218:
print('918*218 = 200124')
if num1 == 918 and sign == '*' and num2 == 219:
print('918*219 = 201042')
if num1 == 918 and sign == '*' and num2 == 220:
print('918*220 = 201960')
if num1 == 918 and sign == '*' and num2 == 221:
print('918*221 = 202878')
if num1 == 918 and sign == '*' and num2 == 222:
print('918*222 = 203796')
if num1 == 918 and sign == '*' and num2 == 223:
print('918*223 = 204714')
if num1 == 918 and sign == '*' and num2 == 224:
print('918*224 = 205632')
if num1 == 918 and sign == '*' and num2 == 225:
print('918*225 = 206550')
if num1 == 918 and sign == '*' and num2 == 226:
print('918*226 = 207468')
if num1 == 918 and sign == '*' and num2 == 227:
print('918*227 = 208386')
if num1 == 918 and sign == '*' and num2 == 228:
print('918*228 = 209304')
if num1 == 918 and sign == '*' and num2 == 229:
print('918*229 = 210222')
if num1 == 918 and sign == '*' and num2 == 230:
print('918*230 = 211140')
if num1 == 918 and sign == '*' and num2 == 231:
print('918*231 = 212058')
if num1 == 918 and sign == '*' and num2 == 232:
print('918*232 = 212976')
if num1 == 918 and sign == '*' and num2 == 233:
print('918*233 = 213894')
if num1 == 918 and sign == '*' and num2 == 234:
print('918*234 = 214812')
if num1 == 918 and sign == '*' and num2 == 235:
print('918*235 = 215730')
if num1 == 918 and sign == '*' and num2 == 236:
print('918*236 = 216648')
if num1 == 918 and sign == '*' and num2 == 237:
print('918*237 = 217566')
if num1 == 918 and sign == '*' and num2 == 238:
print('918*238 = 218484')
if num1 == 918 and sign == '*' and num2 == 239:
print('918*239 = 219402')
if num1 == 918 and sign == '*' and num2 == 240:
print('918*240 = 220320')
if num1 == 918 and sign == '*' and num2 == 241:
print('918*241 = 221238')
if num1 == 918 and sign == '*' and num2 == 242:
print('918*242 = 222156')
if num1 == 918 and sign == '*' and num2 == 243:
print('918*243 = 223074')
if num1 == 918 and sign == '*' and num2 == 244:
print('918*244 = 223992')
if num1 == 918 and sign == '*' and num2 == 245:
print('918*245 = 224910')
if num1 == 918 and sign == '*' and num2 == 246:
print('918*246 = 225828')
if num1 == 918 and sign == '*' and num2 == 247:
print('918*247 = 226746')
if num1 == 918 and sign == '*' and num2 == 248:
print('918*248 = 227664')
if num1 == 918 and sign == '*' and num2 == 249:
print('918*249 = 228582')
if num1 == 919 and sign == '*' and num2 == 200:
print('919*200 = 183800')
if num1 == 919 and sign == '*' and num2 == 201:
print('919*201 = 184719')
if num1 == 919 and sign == '*' and num2 == 202:
print('919*202 = 185638')
if num1 == 919 and sign == '*' and num2 == 203:
print('919*203 = 186557')
if num1 == 919 and sign == '*' and num2 == 204:
print('919*204 = 187476')
if num1 == 919 and sign == '*' and num2 == 205:
print('919*205 = 188395')
if num1 == 919 and sign == '*' and num2 == 206:
print('919*206 = 189314')
if num1 == 919 and sign == '*' and num2 == 207:
print('919*207 = 190233')
if num1 == 919 and sign == '*' and num2 == 208:
print('919*208 = 191152')
if num1 == 919 and sign == '*' and num2 == 209:
print('919*209 = 192071')
if num1 == 919 and sign == '*' and num2 == 210:
print('919*210 = 192990')
if num1 == 919 and sign == '*' and num2 == 211:
print('919*211 = 193909')
if num1 == 919 and sign == '*' and num2 == 212:
print('919*212 = 194828')
if num1 == 919 and sign == '*' and num2 == 213:
print('919*213 = 195747')
if num1 == 919 and sign == '*' and num2 == 214:
print('919*214 = 196666')
if num1 == 919 and sign == '*' and num2 == 215:
print('919*215 = 197585')
if num1 == 919 and sign == '*' and num2 == 216:
print('919*216 = 198504')
if num1 == 919 and sign == '*' and num2 == 217:
print('919*217 = 199423')
if num1 == 919 and sign == '*' and num2 == 218:
print('919*218 = 200342')
if num1 == 919 and sign == '*' and num2 == 219:
print('919*219 = 201261')
if num1 == 919 and sign == '*' and num2 == 220:
print('919*220 = 202180')
if num1 == 919 and sign == '*' and num2 == 221:
print('919*221 = 203099')
if num1 == 919 and sign == '*' and num2 == 222:
print('919*222 = 204018')
if num1 == 919 and sign == '*' and num2 == 223:
print('919*223 = 204937')
if num1 == 919 and sign == '*' and num2 == 224:
print('919*224 = 205856')
if num1 == 919 and sign == '*' and num2 == 225:
print('919*225 = 206775')
if num1 == 919 and sign == '*' and num2 == 226:
print('919*226 = 207694')
if num1 == 919 and sign == '*' and num2 == 227:
print('919*227 = 208613')
if num1 == 919 and sign == '*' and num2 == 228:
print('919*228 = 209532')
if num1 == 919 and sign == '*' and num2 == 229:
print('919*229 = 210451')
if num1 == 919 and sign == '*' and num2 == 230:
print('919*230 = 211370')
if num1 == 919 and sign == '*' and num2 == 231:
print('919*231 = 212289')
if num1 == 919 and sign == '*' and num2 == 232:
print('919*232 = 213208')
if num1 == 919 and sign == '*' and num2 == 233:
print('919*233 = 214127')
if num1 == 919 and sign == '*' and num2 == 234:
print('919*234 = 215046')
if num1 == 919 and sign == '*' and num2 == 235:
print('919*235 = 215965')
if num1 == 919 and sign == '*' and num2 == 236:
print('919*236 = 216884')
if num1 == 919 and sign == '*' and num2 == 237:
print('919*237 = 217803')
if num1 == 919 and sign == '*' and num2 == 238:
print('919*238 = 218722')
if num1 == 919 and sign == '*' and num2 == 239:
print('919*239 = 219641')
if num1 == 919 and sign == '*' and num2 == 240:
print('919*240 = 220560')
if num1 == 919 and sign == '*' and num2 == 241:
print('919*241 = 221479')
if num1 == 919 and sign == '*' and num2 == 242:
print('919*242 = 222398')
if num1 == 919 and sign == '*' and num2 == 243:
print('919*243 = 223317')
if num1 == 919 and sign == '*' and num2 == 244:
print('919*244 = 224236')
if num1 == 919 and sign == '*' and num2 == 245:
print('919*245 = 225155')
if num1 == 919 and sign == '*' and num2 == 246:
print('919*246 = 226074')
if num1 == 919 and sign == '*' and num2 == 247:
print('919*247 = 226993')
if num1 == 919 and sign == '*' and num2 == 248:
print('919*248 = 227912')
if num1 == 919 and sign == '*' and num2 == 249:
print('919*249 = 228831')
if num1 == 920 and sign == '*' and num2 == 200:
print('920*200 = 184000')
if num1 == 920 and sign == '*' and num2 == 201:
print('920*201 = 184920')
if num1 == 920 and sign == '*' and num2 == 202:
print('920*202 = 185840')
if num1 == 920 and sign == '*' and num2 == 203:
print('920*203 = 186760')
if num1 == 920 and sign == '*' and num2 == 204:
print('920*204 = 187680')
if num1 == 920 and sign == '*' and num2 == 205:
print('920*205 = 188600')
if num1 == 920 and sign == '*' and num2 == 206:
print('920*206 = 189520')
if num1 == 920 and sign == '*' and num2 == 207:
print('920*207 = 190440')
if num1 == 920 and sign == '*' and num2 == 208:
print('920*208 = 191360')
if num1 == 920 and sign == '*' and num2 == 209:
print('920*209 = 192280')
if num1 == 920 and sign == '*' and num2 == 210:
print('920*210 = 193200')
if num1 == 920 and sign == '*' and num2 == 211:
print('920*211 = 194120')
if num1 == 920 and sign == '*' and num2 == 212:
print('920*212 = 195040')
if num1 == 920 and sign == '*' and num2 == 213:
print('920*213 = 195960')
if num1 == 920 and sign == '*' and num2 == 214:
print('920*214 = 196880')
if num1 == 920 and sign == '*' and num2 == 215:
print('920*215 = 197800')
if num1 == 920 and sign == '*' and num2 == 216:
print('920*216 = 198720')
if num1 == 920 and sign == '*' and num2 == 217:
print('920*217 = 199640')
if num1 == 920 and sign == '*' and num2 == 218:
print('920*218 = 200560')
if num1 == 920 and sign == '*' and num2 == 219:
print('920*219 = 201480')
if num1 == 920 and sign == '*' and num2 == 220:
print('920*220 = 202400')
if num1 == 920 and sign == '*' and num2 == 221:
print('920*221 = 203320')
if num1 == 920 and sign == '*' and num2 == 222:
print('920*222 = 204240')
if num1 == 920 and sign == '*' and num2 == 223:
print('920*223 = 205160')
if num1 == 920 and sign == '*' and num2 == 224:
print('920*224 = 206080')
if num1 == 920 and sign == '*' and num2 == 225:
print('920*225 = 207000')
if num1 == 920 and sign == '*' and num2 == 226:
print('920*226 = 207920')
if num1 == 920 and sign == '*' and num2 == 227:
print('920*227 = 208840')
if num1 == 920 and sign == '*' and num2 == 228:
print('920*228 = 209760')
if num1 == 920 and sign == '*' and num2 == 229:
print('920*229 = 210680')
if num1 == 920 and sign == '*' and num2 == 230:
print('920*230 = 211600')
if num1 == 920 and sign == '*' and num2 == 231:
print('920*231 = 212520')
if num1 == 920 and sign == '*' and num2 == 232:
print('920*232 = 213440')
if num1 == 920 and sign == '*' and num2 == 233:
print('920*233 = 214360')
if num1 == 920 and sign == '*' and num2 == 234:
print('920*234 = 215280')
if num1 == 920 and sign == '*' and num2 == 235:
print('920*235 = 216200')
if num1 == 920 and sign == '*' and num2 == 236:
print('920*236 = 217120')
if num1 == 920 and sign == '*' and num2 == 237:
print('920*237 = 218040')
if num1 == 920 and sign == '*' and num2 == 238:
print('920*238 = 218960')
if num1 == 920 and sign == '*' and num2 == 239:
print('920*239 = 219880')
if num1 == 920 and sign == '*' and num2 == 240:
print('920*240 = 220800')
if num1 == 920 and sign == '*' and num2 == 241:
print('920*241 = 221720')
if num1 == 920 and sign == '*' and num2 == 242:
print('920*242 = 222640')
if num1 == 920 and sign == '*' and num2 == 243:
print('920*243 = 223560')
if num1 == 920 and sign == '*' and num2 == 244:
print('920*244 = 224480')
if num1 == 920 and sign == '*' and num2 == 245:
print('920*245 = 225400')
if num1 == 920 and sign == '*' and num2 == 246:
print('920*246 = 226320')
if num1 == 920 and sign == '*' and num2 == 247:
print('920*247 = 227240')
if num1 == 920 and sign == '*' and num2 == 248:
print('920*248 = 228160')
if num1 == 920 and sign == '*' and num2 == 249:
print('920*249 = 229080')
if num1 == 921 and sign == '*' and num2 == 200:
print('921*200 = 184200')
if num1 == 921 and sign == '*' and num2 == 201:
print('921*201 = 185121')
if num1 == 921 and sign == '*' and num2 == 202:
print('921*202 = 186042')
if num1 == 921 and sign == '*' and num2 == 203:
print('921*203 = 186963')
if num1 == 921 and sign == '*' and num2 == 204:
print('921*204 = 187884')
if num1 == 921 and sign == '*' and num2 == 205:
print('921*205 = 188805')
if num1 == 921 and sign == '*' and num2 == 206:
print('921*206 = 189726')
if num1 == 921 and sign == '*' and num2 == 207:
print('921*207 = 190647')
if num1 == 921 and sign == '*' and num2 == 208:
print('921*208 = 191568')
if num1 == 921 and sign == '*' and num2 == 209:
print('921*209 = 192489')
if num1 == 921 and sign == '*' and num2 == 210:
print('921*210 = 193410')
if num1 == 921 and sign == '*' and num2 == 211:
print('921*211 = 194331')
if num1 == 921 and sign == '*' and num2 == 212:
print('921*212 = 195252')
if num1 == 921 and sign == '*' and num2 == 213:
print('921*213 = 196173')
if num1 == 921 and sign == '*' and num2 == 214:
print('921*214 = 197094')
if num1 == 921 and sign == '*' and num2 == 215:
print('921*215 = 198015')
if num1 == 921 and sign == '*' and num2 == 216:
print('921*216 = 198936')
if num1 == 921 and sign == '*' and num2 == 217:
print('921*217 = 199857')
if num1 == 921 and sign == '*' and num2 == 218:
print('921*218 = 200778')
if num1 == 921 and sign == '*' and num2 == 219:
print('921*219 = 201699')
if num1 == 921 and sign == '*' and num2 == 220:
print('921*220 = 202620')
if num1 == 921 and sign == '*' and num2 == 221:
print('921*221 = 203541')
if num1 == 921 and sign == '*' and num2 == 222:
print('921*222 = 204462')
if num1 == 921 and sign == '*' and num2 == 223:
print('921*223 = 205383')
if num1 == 921 and sign == '*' and num2 == 224:
print('921*224 = 206304')
if num1 == 921 and sign == '*' and num2 == 225:
print('921*225 = 207225')
if num1 == 921 and sign == '*' and num2 == 226:
print('921*226 = 208146')
if num1 == 921 and sign == '*' and num2 == 227:
print('921*227 = 209067')
if num1 == 921 and sign == '*' and num2 == 228:
print('921*228 = 209988')
if num1 == 921 and sign == '*' and num2 == 229:
print('921*229 = 210909')
if num1 == 921 and sign == '*' and num2 == 230:
print('921*230 = 211830')
if num1 == 921 and sign == '*' and num2 == 231:
print('921*231 = 212751')
if num1 == 921 and sign == '*' and num2 == 232:
print('921*232 = 213672')
if num1 == 921 and sign == '*' and num2 == 233:
print('921*233 = 214593')
if num1 == 921 and sign == '*' and num2 == 234:
print('921*234 = 215514')
if num1 == 921 and sign == '*' and num2 == 235:
print('921*235 = 216435')
if num1 == 921 and sign == '*' and num2 == 236:
print('921*236 = 217356')
if num1 == 921 and sign == '*' and num2 == 237:
print('921*237 = 218277')
if num1 == 921 and sign == '*' and num2 == 238:
print('921*238 = 219198')
if num1 == 921 and sign == '*' and num2 == 239:
print('921*239 = 220119')
if num1 == 921 and sign == '*' and num2 == 240:
print('921*240 = 221040')
if num1 == 921 and sign == '*' and num2 == 241:
print('921*241 = 221961')
if num1 == 921 and sign == '*' and num2 == 242:
print('921*242 = 222882')
if num1 == 921 and sign == '*' and num2 == 243:
print('921*243 = 223803')
if num1 == 921 and sign == '*' and num2 == 244:
print('921*244 = 224724')
if num1 == 921 and sign == '*' and num2 == 245:
print('921*245 = 225645')
if num1 == 921 and sign == '*' and num2 == 246:
print('921*246 = 226566')
if num1 == 921 and sign == '*' and num2 == 247:
print('921*247 = 227487')
if num1 == 921 and sign == '*' and num2 == 248:
print('921*248 = 228408')
if num1 == 921 and sign == '*' and num2 == 249:
print('921*249 = 229329')
if num1 == 922 and sign == '*' and num2 == 200:
print('922*200 = 184400')
if num1 == 922 and sign == '*' and num2 == 201:
print('922*201 = 185322')
if num1 == 922 and sign == '*' and num2 == 202:
print('922*202 = 186244')
if num1 == 922 and sign == '*' and num2 == 203:
print('922*203 = 187166')
if num1 == 922 and sign == '*' and num2 == 204:
print('922*204 = 188088')
if num1 == 922 and sign == '*' and num2 == 205:
print('922*205 = 189010')
if num1 == 922 and sign == '*' and num2 == 206:
print('922*206 = 189932')
if num1 == 922 and sign == '*' and num2 == 207:
print('922*207 = 190854')
if num1 == 922 and sign == '*' and num2 == 208:
print('922*208 = 191776')
if num1 == 922 and sign == '*' and num2 == 209:
print('922*209 = 192698')
if num1 == 922 and sign == '*' and num2 == 210:
print('922*210 = 193620')
if num1 == 922 and sign == '*' and num2 == 211:
print('922*211 = 194542')
if num1 == 922 and sign == '*' and num2 == 212:
print('922*212 = 195464')
if num1 == 922 and sign == '*' and num2 == 213:
print('922*213 = 196386')
if num1 == 922 and sign == '*' and num2 == 214:
print('922*214 = 197308')
if num1 == 922 and sign == '*' and num2 == 215:
print('922*215 = 198230')
if num1 == 922 and sign == '*' and num2 == 216:
print('922*216 = 199152')
if num1 == 922 and sign == '*' and num2 == 217:
print('922*217 = 200074')
if num1 == 922 and sign == '*' and num2 == 218:
print('922*218 = 200996')
if num1 == 922 and sign == '*' and num2 == 219:
print('922*219 = 201918')
if num1 == 922 and sign == '*' and num2 == 220:
print('922*220 = 202840')
if num1 == 922 and sign == '*' and num2 == 221:
print('922*221 = 203762')
if num1 == 922 and sign == '*' and num2 == 222:
print('922*222 = 204684')
if num1 == 922 and sign == '*' and num2 == 223:
print('922*223 = 205606')
if num1 == 922 and sign == '*' and num2 == 224:
print('922*224 = 206528')
if num1 == 922 and sign == '*' and num2 == 225:
print('922*225 = 207450')
if num1 == 922 and sign == '*' and num2 == 226:
print('922*226 = 208372')
if num1 == 922 and sign == '*' and num2 == 227:
print('922*227 = 209294')
if num1 == 922 and sign == '*' and num2 == 228:
print('922*228 = 210216')
if num1 == 922 and sign == '*' and num2 == 229:
print('922*229 = 211138')
if num1 == 922 and sign == '*' and num2 == 230:
print('922*230 = 212060')
if num1 == 922 and sign == '*' and num2 == 231:
print('922*231 = 212982')
if num1 == 922 and sign == '*' and num2 == 232:
print('922*232 = 213904')
if num1 == 922 and sign == '*' and num2 == 233:
print('922*233 = 214826')
if num1 == 922 and sign == '*' and num2 == 234:
print('922*234 = 215748')
if num1 == 922 and sign == '*' and num2 == 235:
print('922*235 = 216670')
if num1 == 922 and sign == '*' and num2 == 236:
print('922*236 = 217592')
if num1 == 922 and sign == '*' and num2 == 237:
print('922*237 = 218514')
if num1 == 922 and sign == '*' and num2 == 238:
print('922*238 = 219436')
if num1 == 922 and sign == '*' and num2 == 239:
print('922*239 = 220358')
if num1 == 922 and sign == '*' and num2 == 240:
print('922*240 = 221280')
if num1 == 922 and sign == '*' and num2 == 241:
print('922*241 = 222202')
if num1 == 922 and sign == '*' and num2 == 242:
print('922*242 = 223124')
if num1 == 922 and sign == '*' and num2 == 243:
print('922*243 = 224046')
if num1 == 922 and sign == '*' and num2 == 244:
print('922*244 = 224968')
if num1 == 922 and sign == '*' and num2 == 245:
print('922*245 = 225890')
if num1 == 922 and sign == '*' and num2 == 246:
print('922*246 = 226812')
if num1 == 922 and sign == '*' and num2 == 247:
print('922*247 = 227734')
if num1 == 922 and sign == '*' and num2 == 248:
print('922*248 = 228656')
if num1 == 922 and sign == '*' and num2 == 249:
print('922*249 = 229578')
if num1 == 923 and sign == '*' and num2 == 200:
print('923*200 = 184600')
if num1 == 923 and sign == '*' and num2 == 201:
print('923*201 = 185523')
if num1 == 923 and sign == '*' and num2 == 202:
print('923*202 = 186446')
if num1 == 923 and sign == '*' and num2 == 203:
print('923*203 = 187369')
if num1 == 923 and sign == '*' and num2 == 204:
print('923*204 = 188292')
if num1 == 923 and sign == '*' and num2 == 205:
print('923*205 = 189215')
if num1 == 923 and sign == '*' and num2 == 206:
print('923*206 = 190138')
if num1 == 923 and sign == '*' and num2 == 207:
print('923*207 = 191061')
if num1 == 923 and sign == '*' and num2 == 208:
print('923*208 = 191984')
if num1 == 923 and sign == '*' and num2 == 209:
print('923*209 = 192907')
if num1 == 923 and sign == '*' and num2 == 210:
print('923*210 = 193830')
if num1 == 923 and sign == '*' and num2 == 211:
print('923*211 = 194753')
if num1 == 923 and sign == '*' and num2 == 212:
print('923*212 = 195676')
if num1 == 923 and sign == '*' and num2 == 213:
print('923*213 = 196599')
if num1 == 923 and sign == '*' and num2 == 214:
print('923*214 = 197522')
if num1 == 923 and sign == '*' and num2 == 215:
print('923*215 = 198445')
if num1 == 923 and sign == '*' and num2 == 216:
print('923*216 = 199368')
if num1 == 923 and sign == '*' and num2 == 217:
print('923*217 = 200291')
if num1 == 923 and sign == '*' and num2 == 218:
print('923*218 = 201214')
if num1 == 923 and sign == '*' and num2 == 219:
print('923*219 = 202137')
if num1 == 923 and sign == '*' and num2 == 220:
print('923*220 = 203060')
if num1 == 923 and sign == '*' and num2 == 221:
print('923*221 = 203983')
if num1 == 923 and sign == '*' and num2 == 222:
print('923*222 = 204906')
if num1 == 923 and sign == '*' and num2 == 223:
print('923*223 = 205829')
if num1 == 923 and sign == '*' and num2 == 224:
print('923*224 = 206752')
if num1 == 923 and sign == '*' and num2 == 225:
print('923*225 = 207675')
if num1 == 923 and sign == '*' and num2 == 226:
print('923*226 = 208598')
if num1 == 923 and sign == '*' and num2 == 227:
print('923*227 = 209521')
if num1 == 923 and sign == '*' and num2 == 228:
print('923*228 = 210444')
if num1 == 923 and sign == '*' and num2 == 229:
print('923*229 = 211367')
if num1 == 923 and sign == '*' and num2 == 230:
print('923*230 = 212290')
if num1 == 923 and sign == '*' and num2 == 231:
print('923*231 = 213213')
if num1 == 923 and sign == '*' and num2 == 232:
print('923*232 = 214136')
if num1 == 923 and sign == '*' and num2 == 233:
print('923*233 = 215059')
if num1 == 923 and sign == '*' and num2 == 234:
print('923*234 = 215982')
if num1 == 923 and sign == '*' and num2 == 235:
print('923*235 = 216905')
if num1 == 923 and sign == '*' and num2 == 236:
print('923*236 = 217828')
if num1 == 923 and sign == '*' and num2 == 237:
print('923*237 = 218751')
if num1 == 923 and sign == '*' and num2 == 238:
print('923*238 = 219674')
if num1 == 923 and sign == '*' and num2 == 239:
print('923*239 = 220597')
if num1 == 923 and sign == '*' and num2 == 240:
print('923*240 = 221520')
if num1 == 923 and sign == '*' and num2 == 241:
print('923*241 = 222443')
if num1 == 923 and sign == '*' and num2 == 242:
print('923*242 = 223366')
if num1 == 923 and sign == '*' and num2 == 243:
print('923*243 = 224289')
if num1 == 923 and sign == '*' and num2 == 244:
print('923*244 = 225212')
if num1 == 923 and sign == '*' and num2 == 245:
print('923*245 = 226135')
if num1 == 923 and sign == '*' and num2 == 246:
print('923*246 = 227058')
if num1 == 923 and sign == '*' and num2 == 247:
print('923*247 = 227981')
if num1 == 923 and sign == '*' and num2 == 248:
print('923*248 = 228904')
if num1 == 923 and sign == '*' and num2 == 249:
print('923*249 = 229827')
if num1 == 924 and sign == '*' and num2 == 200:
print('924*200 = 184800')
if num1 == 924 and sign == '*' and num2 == 201:
print('924*201 = 185724')
if num1 == 924 and sign == '*' and num2 == 202:
print('924*202 = 186648')
if num1 == 924 and sign == '*' and num2 == 203:
print('924*203 = 187572')
if num1 == 924 and sign == '*' and num2 == 204:
print('924*204 = 188496')
if num1 == 924 and sign == '*' and num2 == 205:
print('924*205 = 189420')
if num1 == 924 and sign == '*' and num2 == 206:
print('924*206 = 190344')
if num1 == 924 and sign == '*' and num2 == 207:
print('924*207 = 191268')
if num1 == 924 and sign == '*' and num2 == 208:
print('924*208 = 192192')
if num1 == 924 and sign == '*' and num2 == 209:
print('924*209 = 193116')
if num1 == 924 and sign == '*' and num2 == 210:
print('924*210 = 194040')
if num1 == 924 and sign == '*' and num2 == 211:
print('924*211 = 194964')
if num1 == 924 and sign == '*' and num2 == 212:
print('924*212 = 195888')
if num1 == 924 and sign == '*' and num2 == 213:
print('924*213 = 196812')
if num1 == 924 and sign == '*' and num2 == 214:
print('924*214 = 197736')
if num1 == 924 and sign == '*' and num2 == 215:
print('924*215 = 198660')
if num1 == 924 and sign == '*' and num2 == 216:
print('924*216 = 199584')
if num1 == 924 and sign == '*' and num2 == 217:
print('924*217 = 200508')
if num1 == 924 and sign == '*' and num2 == 218:
print('924*218 = 201432')
if num1 == 924 and sign == '*' and num2 == 219:
print('924*219 = 202356')
if num1 == 924 and sign == '*' and num2 == 220:
print('924*220 = 203280')
if num1 == 924 and sign == '*' and num2 == 221:
print('924*221 = 204204')
if num1 == 924 and sign == '*' and num2 == 222:
print('924*222 = 205128')
if num1 == 924 and sign == '*' and num2 == 223:
print('924*223 = 206052')
if num1 == 924 and sign == '*' and num2 == 224:
print('924*224 = 206976')
if num1 == 924 and sign == '*' and num2 == 225:
print('924*225 = 207900')
if num1 == 924 and sign == '*' and num2 == 226:
print('924*226 = 208824')
if num1 == 924 and sign == '*' and num2 == 227:
print('924*227 = 209748')
if num1 == 924 and sign == '*' and num2 == 228:
print('924*228 = 210672')
if num1 == 924 and sign == '*' and num2 == 229:
print('924*229 = 211596')
if num1 == 924 and sign == '*' and num2 == 230:
print('924*230 = 212520')
if num1 == 924 and sign == '*' and num2 == 231:
print('924*231 = 213444')
if num1 == 924 and sign == '*' and num2 == 232:
print('924*232 = 214368')
if num1 == 924 and sign == '*' and num2 == 233:
print('924*233 = 215292')
if num1 == 924 and sign == '*' and num2 == 234:
print('924*234 = 216216')
if num1 == 924 and sign == '*' and num2 == 235:
print('924*235 = 217140')
if num1 == 924 and sign == '*' and num2 == 236:
print('924*236 = 218064')
if num1 == 924 and sign == '*' and num2 == 237:
print('924*237 = 218988')
if num1 == 924 and sign == '*' and num2 == 238:
print('924*238 = 219912')
if num1 == 924 and sign == '*' and num2 == 239:
print('924*239 = 220836')
if num1 == 924 and sign == '*' and num2 == 240:
print('924*240 = 221760')
if num1 == 924 and sign == '*' and num2 == 241:
print('924*241 = 222684')
if num1 == 924 and sign == '*' and num2 == 242:
print('924*242 = 223608')
if num1 == 924 and sign == '*' and num2 == 243:
print('924*243 = 224532')
if num1 == 924 and sign == '*' and num2 == 244:
print('924*244 = 225456')
if num1 == 924 and sign == '*' and num2 == 245:
print('924*245 = 226380')
if num1 == 924 and sign == '*' and num2 == 246:
print('924*246 = 227304')
if num1 == 924 and sign == '*' and num2 == 247:
print('924*247 = 228228')
if num1 == 924 and sign == '*' and num2 == 248:
print('924*248 = 229152')
if num1 == 924 and sign == '*' and num2 == 249:
print('924*249 = 230076')
if num1 == 925 and sign == '*' and num2 == 200:
print('925*200 = 185000')
if num1 == 925 and sign == '*' and num2 == 201:
print('925*201 = 185925')
if num1 == 925 and sign == '*' and num2 == 202:
print('925*202 = 186850')
if num1 == 925 and sign == '*' and num2 == 203:
print('925*203 = 187775')
if num1 == 925 and sign == '*' and num2 == 204:
print('925*204 = 188700')
if num1 == 925 and sign == '*' and num2 == 205:
print('925*205 = 189625')
if num1 == 925 and sign == '*' and num2 == 206:
print('925*206 = 190550')
if num1 == 925 and sign == '*' and num2 == 207:
print('925*207 = 191475')
if num1 == 925 and sign == '*' and num2 == 208:
print('925*208 = 192400')
if num1 == 925 and sign == '*' and num2 == 209:
print('925*209 = 193325')
if num1 == 925 and sign == '*' and num2 == 210:
print('925*210 = 194250')
if num1 == 925 and sign == '*' and num2 == 211:
print('925*211 = 195175')
if num1 == 925 and sign == '*' and num2 == 212:
print('925*212 = 196100')
if num1 == 925 and sign == '*' and num2 == 213:
print('925*213 = 197025')
if num1 == 925 and sign == '*' and num2 == 214:
print('925*214 = 197950')
if num1 == 925 and sign == '*' and num2 == 215:
print('925*215 = 198875')
if num1 == 925 and sign == '*' and num2 == 216:
print('925*216 = 199800')
if num1 == 925 and sign == '*' and num2 == 217:
print('925*217 = 200725')
if num1 == 925 and sign == '*' and num2 == 218:
print('925*218 = 201650')
if num1 == 925 and sign == '*' and num2 == 219:
print('925*219 = 202575')
if num1 == 925 and sign == '*' and num2 == 220:
print('925*220 = 203500')
if num1 == 925 and sign == '*' and num2 == 221:
print('925*221 = 204425')
if num1 == 925 and sign == '*' and num2 == 222:
print('925*222 = 205350')
if num1 == 925 and sign == '*' and num2 == 223:
print('925*223 = 206275')
if num1 == 925 and sign == '*' and num2 == 224:
print('925*224 = 207200')
if num1 == 925 and sign == '*' and num2 == 225:
print('925*225 = 208125')
if num1 == 925 and sign == '*' and num2 == 226:
print('925*226 = 209050')
if num1 == 925 and sign == '*' and num2 == 227:
print('925*227 = 209975')
if num1 == 925 and sign == '*' and num2 == 228:
print('925*228 = 210900')
if num1 == 925 and sign == '*' and num2 == 229:
print('925*229 = 211825')
if num1 == 925 and sign == '*' and num2 == 230:
print('925*230 = 212750')
if num1 == 925 and sign == '*' and num2 == 231:
print('925*231 = 213675')
if num1 == 925 and sign == '*' and num2 == 232:
print('925*232 = 214600')
if num1 == 925 and sign == '*' and num2 == 233:
print('925*233 = 215525')
if num1 == 925 and sign == '*' and num2 == 234:
print('925*234 = 216450')
if num1 == 925 and sign == '*' and num2 == 235:
print('925*235 = 217375')
if num1 == 925 and sign == '*' and num2 == 236:
print('925*236 = 218300')
if num1 == 925 and sign == '*' and num2 == 237:
print('925*237 = 219225')
if num1 == 925 and sign == '*' and num2 == 238:
print('925*238 = 220150')
if num1 == 925 and sign == '*' and num2 == 239:
print('925*239 = 221075')
if num1 == 925 and sign == '*' and num2 == 240:
print('925*240 = 222000')
if num1 == 925 and sign == '*' and num2 == 241:
print('925*241 = 222925')
if num1 == 925 and sign == '*' and num2 == 242:
print('925*242 = 223850')
if num1 == 925 and sign == '*' and num2 == 243:
print('925*243 = 224775')
if num1 == 925 and sign == '*' and num2 == 244:
print('925*244 = 225700')
if num1 == 925 and sign == '*' and num2 == 245:
print('925*245 = 226625')
if num1 == 925 and sign == '*' and num2 == 246:
print('925*246 = 227550')
if num1 == 925 and sign == '*' and num2 == 247:
print('925*247 = 228475')
if num1 == 925 and sign == '*' and num2 == 248:
print('925*248 = 229400')
if num1 == 925 and sign == '*' and num2 == 249:
print('925*249 = 230325')
if num1 == 926 and sign == '*' and num2 == 200:
print('926*200 = 185200')
if num1 == 926 and sign == '*' and num2 == 201:
print('926*201 = 186126')
if num1 == 926 and sign == '*' and num2 == 202:
print('926*202 = 187052')
if num1 == 926 and sign == '*' and num2 == 203:
print('926*203 = 187978')
if num1 == 926 and sign == '*' and num2 == 204:
print('926*204 = 188904')
if num1 == 926 and sign == '*' and num2 == 205:
print('926*205 = 189830')
if num1 == 926 and sign == '*' and num2 == 206:
print('926*206 = 190756')
if num1 == 926 and sign == '*' and num2 == 207:
print('926*207 = 191682')
if num1 == 926 and sign == '*' and num2 == 208:
print('926*208 = 192608')
if num1 == 926 and sign == '*' and num2 == 209:
print('926*209 = 193534')
if num1 == 926 and sign == '*' and num2 == 210:
print('926*210 = 194460')
if num1 == 926 and sign == '*' and num2 == 211:
print('926*211 = 195386')
if num1 == 926 and sign == '*' and num2 == 212:
print('926*212 = 196312')
if num1 == 926 and sign == '*' and num2 == 213:
print('926*213 = 197238')
if num1 == 926 and sign == '*' and num2 == 214:
print('926*214 = 198164')
if num1 == 926 and sign == '*' and num2 == 215:
print('926*215 = 199090')
if num1 == 926 and sign == '*' and num2 == 216:
print('926*216 = 200016')
if num1 == 926 and sign == '*' and num2 == 217:
print('926*217 = 200942')
if num1 == 926 and sign == '*' and num2 == 218:
print('926*218 = 201868')
if num1 == 926 and sign == '*' and num2 == 219:
print('926*219 = 202794')
if num1 == 926 and sign == '*' and num2 == 220:
print('926*220 = 203720')
if num1 == 926 and sign == '*' and num2 == 221:
print('926*221 = 204646')
if num1 == 926 and sign == '*' and num2 == 222:
print('926*222 = 205572')
if num1 == 926 and sign == '*' and num2 == 223:
print('926*223 = 206498')
if num1 == 926 and sign == '*' and num2 == 224:
print('926*224 = 207424')
if num1 == 926 and sign == '*' and num2 == 225:
print('926*225 = 208350')
if num1 == 926 and sign == '*' and num2 == 226:
print('926*226 = 209276')
if num1 == 926 and sign == '*' and num2 == 227:
print('926*227 = 210202')
if num1 == 926 and sign == '*' and num2 == 228:
print('926*228 = 211128')
if num1 == 926 and sign == '*' and num2 == 229:
print('926*229 = 212054')
if num1 == 926 and sign == '*' and num2 == 230:
print('926*230 = 212980')
if num1 == 926 and sign == '*' and num2 == 231:
print('926*231 = 213906')
if num1 == 926 and sign == '*' and num2 == 232:
print('926*232 = 214832')
if num1 == 926 and sign == '*' and num2 == 233:
print('926*233 = 215758')
if num1 == 926 and sign == '*' and num2 == 234:
print('926*234 = 216684')
if num1 == 926 and sign == '*' and num2 == 235:
print('926*235 = 217610')
if num1 == 926 and sign == '*' and num2 == 236:
print('926*236 = 218536')
if num1 == 926 and sign == '*' and num2 == 237:
print('926*237 = 219462')
if num1 == 926 and sign == '*' and num2 == 238:
print('926*238 = 220388')
if num1 == 926 and sign == '*' and num2 == 239:
print('926*239 = 221314')
if num1 == 926 and sign == '*' and num2 == 240:
print('926*240 = 222240')
if num1 == 926 and sign == '*' and num2 == 241:
print('926*241 = 223166')
if num1 == 926 and sign == '*' and num2 == 242:
print('926*242 = 224092')
if num1 == 926 and sign == '*' and num2 == 243:
print('926*243 = 225018')
if num1 == 926 and sign == '*' and num2 == 244:
print('926*244 = 225944')
if num1 == 926 and sign == '*' and num2 == 245:
print('926*245 = 226870')
if num1 == 926 and sign == '*' and num2 == 246:
print('926*246 = 227796')
if num1 == 926 and sign == '*' and num2 == 247:
print('926*247 = 228722')
if num1 == 926 and sign == '*' and num2 == 248:
print('926*248 = 229648')
if num1 == 926 and sign == '*' and num2 == 249:
print('926*249 = 230574')
if num1 == 927 and sign == '*' and num2 == 200:
print('927*200 = 185400')
if num1 == 927 and sign == '*' and num2 == 201:
print('927*201 = 186327')
if num1 == 927 and sign == '*' and num2 == 202:
print('927*202 = 187254')
if num1 == 927 and sign == '*' and num2 == 203:
print('927*203 = 188181')
if num1 == 927 and sign == '*' and num2 == 204:
print('927*204 = 189108')
if num1 == 927 and sign == '*' and num2 == 205:
print('927*205 = 190035')
if num1 == 927 and sign == '*' and num2 == 206:
print('927*206 = 190962')
if num1 == 927 and sign == '*' and num2 == 207:
print('927*207 = 191889')
if num1 == 927 and sign == '*' and num2 == 208:
print('927*208 = 192816')
if num1 == 927 and sign == '*' and num2 == 209:
print('927*209 = 193743')
if num1 == 927 and sign == '*' and num2 == 210:
print('927*210 = 194670')
if num1 == 927 and sign == '*' and num2 == 211:
print('927*211 = 195597')
if num1 == 927 and sign == '*' and num2 == 212:
print('927*212 = 196524')
if num1 == 927 and sign == '*' and num2 == 213:
print('927*213 = 197451')
if num1 == 927 and sign == '*' and num2 == 214:
print('927*214 = 198378')
if num1 == 927 and sign == '*' and num2 == 215:
print('927*215 = 199305')
if num1 == 927 and sign == '*' and num2 == 216:
print('927*216 = 200232')
if num1 == 927 and sign == '*' and num2 == 217:
print('927*217 = 201159')
if num1 == 927 and sign == '*' and num2 == 218:
print('927*218 = 202086')
if num1 == 927 and sign == '*' and num2 == 219:
print('927*219 = 203013')
if num1 == 927 and sign == '*' and num2 == 220:
print('927*220 = 203940')
if num1 == 927 and sign == '*' and num2 == 221:
print('927*221 = 204867')
if num1 == 927 and sign == '*' and num2 == 222:
print('927*222 = 205794')
if num1 == 927 and sign == '*' and num2 == 223:
print('927*223 = 206721')
if num1 == 927 and sign == '*' and num2 == 224:
print('927*224 = 207648')
if num1 == 927 and sign == '*' and num2 == 225:
print('927*225 = 208575')
if num1 == 927 and sign == '*' and num2 == 226:
print('927*226 = 209502')
if num1 == 927 and sign == '*' and num2 == 227:
print('927*227 = 210429')
if num1 == 927 and sign == '*' and num2 == 228:
print('927*228 = 211356')
if num1 == 927 and sign == '*' and num2 == 229:
print('927*229 = 212283')
if num1 == 927 and sign == '*' and num2 == 230:
print('927*230 = 213210')
if num1 == 927 and sign == '*' and num2 == 231:
print('927*231 = 214137')
if num1 == 927 and sign == '*' and num2 == 232:
print('927*232 = 215064')
if num1 == 927 and sign == '*' and num2 == 233:
print('927*233 = 215991')
if num1 == 927 and sign == '*' and num2 == 234:
print('927*234 = 216918')
if num1 == 927 and sign == '*' and num2 == 235:
print('927*235 = 217845')
if num1 == 927 and sign == '*' and num2 == 236:
print('927*236 = 218772')
if num1 == 927 and sign == '*' and num2 == 237:
print('927*237 = 219699')
if num1 == 927 and sign == '*' and num2 == 238:
print('927*238 = 220626')
if num1 == 927 and sign == '*' and num2 == 239:
print('927*239 = 221553')
if num1 == 927 and sign == '*' and num2 == 240:
print('927*240 = 222480')
if num1 == 927 and sign == '*' and num2 == 241:
print('927*241 = 223407')
if num1 == 927 and sign == '*' and num2 == 242:
print('927*242 = 224334')
if num1 == 927 and sign == '*' and num2 == 243:
print('927*243 = 225261')
if num1 == 927 and sign == '*' and num2 == 244:
print('927*244 = 226188')
if num1 == 927 and sign == '*' and num2 == 245:
print('927*245 = 227115')
if num1 == 927 and sign == '*' and num2 == 246:
print('927*246 = 228042')
if num1 == 927 and sign == '*' and num2 == 247:
print('927*247 = 228969')
if num1 == 927 and sign == '*' and num2 == 248:
print('927*248 = 229896')
if num1 == 927 and sign == '*' and num2 == 249:
print('927*249 = 230823')
if num1 == 928 and sign == '*' and num2 == 200:
print('928*200 = 185600')
if num1 == 928 and sign == '*' and num2 == 201:
print('928*201 = 186528')
if num1 == 928 and sign == '*' and num2 == 202:
print('928*202 = 187456')
if num1 == 928 and sign == '*' and num2 == 203:
print('928*203 = 188384')
if num1 == 928 and sign == '*' and num2 == 204:
print('928*204 = 189312')
if num1 == 928 and sign == '*' and num2 == 205:
print('928*205 = 190240')
if num1 == 928 and sign == '*' and num2 == 206:
print('928*206 = 191168')
if num1 == 928 and sign == '*' and num2 == 207:
print('928*207 = 192096')
if num1 == 928 and sign == '*' and num2 == 208:
print('928*208 = 193024')
if num1 == 928 and sign == '*' and num2 == 209:
print('928*209 = 193952')
if num1 == 928 and sign == '*' and num2 == 210:
print('928*210 = 194880')
if num1 == 928 and sign == '*' and num2 == 211:
print('928*211 = 195808')
if num1 == 928 and sign == '*' and num2 == 212:
print('928*212 = 196736')
if num1 == 928 and sign == '*' and num2 == 213:
print('928*213 = 197664')
if num1 == 928 and sign == '*' and num2 == 214:
print('928*214 = 198592')
if num1 == 928 and sign == '*' and num2 == 215:
print('928*215 = 199520')
if num1 == 928 and sign == '*' and num2 == 216:
print('928*216 = 200448')
if num1 == 928 and sign == '*' and num2 == 217:
print('928*217 = 201376')
if num1 == 928 and sign == '*' and num2 == 218:
print('928*218 = 202304')
if num1 == 928 and sign == '*' and num2 == 219:
print('928*219 = 203232')
if num1 == 928 and sign == '*' and num2 == 220:
print('928*220 = 204160')
if num1 == 928 and sign == '*' and num2 == 221:
print('928*221 = 205088')
if num1 == 928 and sign == '*' and num2 == 222:
print('928*222 = 206016')
if num1 == 928 and sign == '*' and num2 == 223:
print('928*223 = 206944')
if num1 == 928 and sign == '*' and num2 == 224:
print('928*224 = 207872')
if num1 == 928 and sign == '*' and num2 == 225:
print('928*225 = 208800')
if num1 == 928 and sign == '*' and num2 == 226:
print('928*226 = 209728')
if num1 == 928 and sign == '*' and num2 == 227:
print('928*227 = 210656')
if num1 == 928 and sign == '*' and num2 == 228:
print('928*228 = 211584')
if num1 == 928 and sign == '*' and num2 == 229:
print('928*229 = 212512')
if num1 == 928 and sign == '*' and num2 == 230:
print('928*230 = 213440')
if num1 == 928 and sign == '*' and num2 == 231:
print('928*231 = 214368')
if num1 == 928 and sign == '*' and num2 == 232:
print('928*232 = 215296')
if num1 == 928 and sign == '*' and num2 == 233:
print('928*233 = 216224')
if num1 == 928 and sign == '*' and num2 == 234:
print('928*234 = 217152')
if num1 == 928 and sign == '*' and num2 == 235:
print('928*235 = 218080')
if num1 == 928 and sign == '*' and num2 == 236:
print('928*236 = 219008')
if num1 == 928 and sign == '*' and num2 == 237:
print('928*237 = 219936')
if num1 == 928 and sign == '*' and num2 == 238:
print('928*238 = 220864')
if num1 == 928 and sign == '*' and num2 == 239:
print('928*239 = 221792')
if num1 == 928 and sign == '*' and num2 == 240:
print('928*240 = 222720')
if num1 == 928 and sign == '*' and num2 == 241:
print('928*241 = 223648')
if num1 == 928 and sign == '*' and num2 == 242:
print('928*242 = 224576')
if num1 == 928 and sign == '*' and num2 == 243:
print('928*243 = 225504')
if num1 == 928 and sign == '*' and num2 == 244:
print('928*244 = 226432')
if num1 == 928 and sign == '*' and num2 == 245:
print('928*245 = 227360')
if num1 == 928 and sign == '*' and num2 == 246:
print('928*246 = 228288')
if num1 == 928 and sign == '*' and num2 == 247:
print('928*247 = 229216')
if num1 == 928 and sign == '*' and num2 == 248:
print('928*248 = 230144')
if num1 == 928 and sign == '*' and num2 == 249:
print('928*249 = 231072')
if num1 == 929 and sign == '*' and num2 == 200:
print('929*200 = 185800')
if num1 == 929 and sign == '*' and num2 == 201:
print('929*201 = 186729')
if num1 == 929 and sign == '*' and num2 == 202:
print('929*202 = 187658')
if num1 == 929 and sign == '*' and num2 == 203:
print('929*203 = 188587')
if num1 == 929 and sign == '*' and num2 == 204:
print('929*204 = 189516')
if num1 == 929 and sign == '*' and num2 == 205:
print('929*205 = 190445')
if num1 == 929 and sign == '*' and num2 == 206:
print('929*206 = 191374')
if num1 == 929 and sign == '*' and num2 == 207:
print('929*207 = 192303')
if num1 == 929 and sign == '*' and num2 == 208:
print('929*208 = 193232')
if num1 == 929 and sign == '*' and num2 == 209:
print('929*209 = 194161')
if num1 == 929 and sign == '*' and num2 == 210:
print('929*210 = 195090')
if num1 == 929 and sign == '*' and num2 == 211:
print('929*211 = 196019')
if num1 == 929 and sign == '*' and num2 == 212:
print('929*212 = 196948')
if num1 == 929 and sign == '*' and num2 == 213:
print('929*213 = 197877')
if num1 == 929 and sign == '*' and num2 == 214:
print('929*214 = 198806')
if num1 == 929 and sign == '*' and num2 == 215:
print('929*215 = 199735')
if num1 == 929 and sign == '*' and num2 == 216:
print('929*216 = 200664')
if num1 == 929 and sign == '*' and num2 == 217:
print('929*217 = 201593')
if num1 == 929 and sign == '*' and num2 == 218:
print('929*218 = 202522')
if num1 == 929 and sign == '*' and num2 == 219:
print('929*219 = 203451')
if num1 == 929 and sign == '*' and num2 == 220:
print('929*220 = 204380')
if num1 == 929 and sign == '*' and num2 == 221:
print('929*221 = 205309')
if num1 == 929 and sign == '*' and num2 == 222:
print('929*222 = 206238')
if num1 == 929 and sign == '*' and num2 == 223:
print('929*223 = 207167')
if num1 == 929 and sign == '*' and num2 == 224:
print('929*224 = 208096')
if num1 == 929 and sign == '*' and num2 == 225:
print('929*225 = 209025')
if num1 == 929 and sign == '*' and num2 == 226:
print('929*226 = 209954')
if num1 == 929 and sign == '*' and num2 == 227:
print('929*227 = 210883')
if num1 == 929 and sign == '*' and num2 == 228:
print('929*228 = 211812')
if num1 == 929 and sign == '*' and num2 == 229:
print('929*229 = 212741')
if num1 == 929 and sign == '*' and num2 == 230:
print('929*230 = 213670')
if num1 == 929 and sign == '*' and num2 == 231:
print('929*231 = 214599')
if num1 == 929 and sign == '*' and num2 == 232:
print('929*232 = 215528')
if num1 == 929 and sign == '*' and num2 == 233:
print('929*233 = 216457')
if num1 == 929 and sign == '*' and num2 == 234:
print('929*234 = 217386')
if num1 == 929 and sign == '*' and num2 == 235:
print('929*235 = 218315')
if num1 == 929 and sign == '*' and num2 == 236:
print('929*236 = 219244')
if num1 == 929 and sign == '*' and num2 == 237:
print('929*237 = 220173')
if num1 == 929 and sign == '*' and num2 == 238:
print('929*238 = 221102')
if num1 == 929 and sign == '*' and num2 == 239:
print('929*239 = 222031')
if num1 == 929 and sign == '*' and num2 == 240:
print('929*240 = 222960')
if num1 == 929 and sign == '*' and num2 == 241:
print('929*241 = 223889')
if num1 == 929 and sign == '*' and num2 == 242:
print('929*242 = 224818')
if num1 == 929 and sign == '*' and num2 == 243:
print('929*243 = 225747')
if num1 == 929 and sign == '*' and num2 == 244:
print('929*244 = 226676')
if num1 == 929 and sign == '*' and num2 == 245:
print('929*245 = 227605')
if num1 == 929 and sign == '*' and num2 == 246:
print('929*246 = 228534')
if num1 == 929 and sign == '*' and num2 == 247:
print('929*247 = 229463')
if num1 == 929 and sign == '*' and num2 == 248:
print('929*248 = 230392')
if num1 == 929 and sign == '*' and num2 == 249:
print('929*249 = 231321')
if num1 == 930 and sign == '*' and num2 == 200:
print('930*200 = 186000')
if num1 == 930 and sign == '*' and num2 == 201:
print('930*201 = 186930')
if num1 == 930 and sign == '*' and num2 == 202:
print('930*202 = 187860')
if num1 == 930 and sign == '*' and num2 == 203:
print('930*203 = 188790')
if num1 == 930 and sign == '*' and num2 == 204:
print('930*204 = 189720')
if num1 == 930 and sign == '*' and num2 == 205:
print('930*205 = 190650')
if num1 == 930 and sign == '*' and num2 == 206:
print('930*206 = 191580')
if num1 == 930 and sign == '*' and num2 == 207:
print('930*207 = 192510')
if num1 == 930 and sign == '*' and num2 == 208:
print('930*208 = 193440')
if num1 == 930 and sign == '*' and num2 == 209:
print('930*209 = 194370')
if num1 == 930 and sign == '*' and num2 == 210:
print('930*210 = 195300')
if num1 == 930 and sign == '*' and num2 == 211:
print('930*211 = 196230')
if num1 == 930 and sign == '*' and num2 == 212:
print('930*212 = 197160')
if num1 == 930 and sign == '*' and num2 == 213:
print('930*213 = 198090')
if num1 == 930 and sign == '*' and num2 == 214:
print('930*214 = 199020')
if num1 == 930 and sign == '*' and num2 == 215:
print('930*215 = 199950')
if num1 == 930 and sign == '*' and num2 == 216:
print('930*216 = 200880')
if num1 == 930 and sign == '*' and num2 == 217:
print('930*217 = 201810')
if num1 == 930 and sign == '*' and num2 == 218:
print('930*218 = 202740')
if num1 == 930 and sign == '*' and num2 == 219:
print('930*219 = 203670')
if num1 == 930 and sign == '*' and num2 == 220:
print('930*220 = 204600')
if num1 == 930 and sign == '*' and num2 == 221:
print('930*221 = 205530')
if num1 == 930 and sign == '*' and num2 == 222:
print('930*222 = 206460')
if num1 == 930 and sign == '*' and num2 == 223:
print('930*223 = 207390')
if num1 == 930 and sign == '*' and num2 == 224:
print('930*224 = 208320')
if num1 == 930 and sign == '*' and num2 == 225:
print('930*225 = 209250')
if num1 == 930 and sign == '*' and num2 == 226:
print('930*226 = 210180')
if num1 == 930 and sign == '*' and num2 == 227:
print('930*227 = 211110')
if num1 == 930 and sign == '*' and num2 == 228:
print('930*228 = 212040')
if num1 == 930 and sign == '*' and num2 == 229:
print('930*229 = 212970')
if num1 == 930 and sign == '*' and num2 == 230:
print('930*230 = 213900')
if num1 == 930 and sign == '*' and num2 == 231:
print('930*231 = 214830')
if num1 == 930 and sign == '*' and num2 == 232:
print('930*232 = 215760')
if num1 == 930 and sign == '*' and num2 == 233:
print('930*233 = 216690')
if num1 == 930 and sign == '*' and num2 == 234:
print('930*234 = 217620')
if num1 == 930 and sign == '*' and num2 == 235:
print('930*235 = 218550')
if num1 == 930 and sign == '*' and num2 == 236:
print('930*236 = 219480')
if num1 == 930 and sign == '*' and num2 == 237:
print('930*237 = 220410')
if num1 == 930 and sign == '*' and num2 == 238:
print('930*238 = 221340')
if num1 == 930 and sign == '*' and num2 == 239:
print('930*239 = 222270')
if num1 == 930 and sign == '*' and num2 == 240:
print('930*240 = 223200')
if num1 == 930 and sign == '*' and num2 == 241:
print('930*241 = 224130')
if num1 == 930 and sign == '*' and num2 == 242:
print('930*242 = 225060')
if num1 == 930 and sign == '*' and num2 == 243:
print('930*243 = 225990')
if num1 == 930 and sign == '*' and num2 == 244:
print('930*244 = 226920')
if num1 == 930 and sign == '*' and num2 == 245:
print('930*245 = 227850')
if num1 == 930 and sign == '*' and num2 == 246:
print('930*246 = 228780')
if num1 == 930 and sign == '*' and num2 == 247:
print('930*247 = 229710')
if num1 == 930 and sign == '*' and num2 == 248:
print('930*248 = 230640')
if num1 == 930 and sign == '*' and num2 == 249:
print('930*249 = 231570')
if num1 == 931 and sign == '*' and num2 == 200:
print('931*200 = 186200')
if num1 == 931 and sign == '*' and num2 == 201:
print('931*201 = 187131')
if num1 == 931 and sign == '*' and num2 == 202:
print('931*202 = 188062')
if num1 == 931 and sign == '*' and num2 == 203:
print('931*203 = 188993')
if num1 == 931 and sign == '*' and num2 == 204:
print('931*204 = 189924')
if num1 == 931 and sign == '*' and num2 == 205:
print('931*205 = 190855')
if num1 == 931 and sign == '*' and num2 == 206:
print('931*206 = 191786')
if num1 == 931 and sign == '*' and num2 == 207:
print('931*207 = 192717')
if num1 == 931 and sign == '*' and num2 == 208:
print('931*208 = 193648')
if num1 == 931 and sign == '*' and num2 == 209:
print('931*209 = 194579')
if num1 == 931 and sign == '*' and num2 == 210:
print('931*210 = 195510')
if num1 == 931 and sign == '*' and num2 == 211:
print('931*211 = 196441')
if num1 == 931 and sign == '*' and num2 == 212:
print('931*212 = 197372')
if num1 == 931 and sign == '*' and num2 == 213:
print('931*213 = 198303')
if num1 == 931 and sign == '*' and num2 == 214:
print('931*214 = 199234')
if num1 == 931 and sign == '*' and num2 == 215:
print('931*215 = 200165')
if num1 == 931 and sign == '*' and num2 == 216:
print('931*216 = 201096')
if num1 == 931 and sign == '*' and num2 == 217:
print('931*217 = 202027')
if num1 == 931 and sign == '*' and num2 == 218:
print('931*218 = 202958')
if num1 == 931 and sign == '*' and num2 == 219:
print('931*219 = 203889')
if num1 == 931 and sign == '*' and num2 == 220:
print('931*220 = 204820')
if num1 == 931 and sign == '*' and num2 == 221:
print('931*221 = 205751')
if num1 == 931 and sign == '*' and num2 == 222:
print('931*222 = 206682')
if num1 == 931 and sign == '*' and num2 == 223:
print('931*223 = 207613')
if num1 == 931 and sign == '*' and num2 == 224:
print('931*224 = 208544')
if num1 == 931 and sign == '*' and num2 == 225:
print('931*225 = 209475')
if num1 == 931 and sign == '*' and num2 == 226:
print('931*226 = 210406')
if num1 == 931 and sign == '*' and num2 == 227:
print('931*227 = 211337')
if num1 == 931 and sign == '*' and num2 == 228:
print('931*228 = 212268')
if num1 == 931 and sign == '*' and num2 == 229:
print('931*229 = 213199')
if num1 == 931 and sign == '*' and num2 == 230:
print('931*230 = 214130')
if num1 == 931 and sign == '*' and num2 == 231:
print('931*231 = 215061')
if num1 == 931 and sign == '*' and num2 == 232:
print('931*232 = 215992')
if num1 == 931 and sign == '*' and num2 == 233:
print('931*233 = 216923')
if num1 == 931 and sign == '*' and num2 == 234:
print('931*234 = 217854')
if num1 == 931 and sign == '*' and num2 == 235:
print('931*235 = 218785')
if num1 == 931 and sign == '*' and num2 == 236:
print('931*236 = 219716')
if num1 == 931 and sign == '*' and num2 == 237:
print('931*237 = 220647')
if num1 == 931 and sign == '*' and num2 == 238:
print('931*238 = 221578')
if num1 == 931 and sign == '*' and num2 == 239:
print('931*239 = 222509')
if num1 == 931 and sign == '*' and num2 == 240:
print('931*240 = 223440')
if num1 == 931 and sign == '*' and num2 == 241:
print('931*241 = 224371')
if num1 == 931 and sign == '*' and num2 == 242:
print('931*242 = 225302')
if num1 == 931 and sign == '*' and num2 == 243:
print('931*243 = 226233')
if num1 == 931 and sign == '*' and num2 == 244:
print('931*244 = 227164')
if num1 == 931 and sign == '*' and num2 == 245:
print('931*245 = 228095')
if num1 == 931 and sign == '*' and num2 == 246:
print('931*246 = 229026')
if num1 == 931 and sign == '*' and num2 == 247:
print('931*247 = 229957')
if num1 == 931 and sign == '*' and num2 == 248:
print('931*248 = 230888')
if num1 == 931 and sign == '*' and num2 == 249:
print('931*249 = 231819')
if num1 == 932 and sign == '*' and num2 == 200:
print('932*200 = 186400')
if num1 == 932 and sign == '*' and num2 == 201:
print('932*201 = 187332')
if num1 == 932 and sign == '*' and num2 == 202:
print('932*202 = 188264')
if num1 == 932 and sign == '*' and num2 == 203:
print('932*203 = 189196')
if num1 == 932 and sign == '*' and num2 == 204:
print('932*204 = 190128')
if num1 == 932 and sign == '*' and num2 == 205:
print('932*205 = 191060')
if num1 == 932 and sign == '*' and num2 == 206:
print('932*206 = 191992')
if num1 == 932 and sign == '*' and num2 == 207:
print('932*207 = 192924')
if num1 == 932 and sign == '*' and num2 == 208:
print('932*208 = 193856')
if num1 == 932 and sign == '*' and num2 == 209:
print('932*209 = 194788')
if num1 == 932 and sign == '*' and num2 == 210:
print('932*210 = 195720')
if num1 == 932 and sign == '*' and num2 == 211:
print('932*211 = 196652')
if num1 == 932 and sign == '*' and num2 == 212:
print('932*212 = 197584')
if num1 == 932 and sign == '*' and num2 == 213:
print('932*213 = 198516')
if num1 == 932 and sign == '*' and num2 == 214:
print('932*214 = 199448')
if num1 == 932 and sign == '*' and num2 == 215:
print('932*215 = 200380')
if num1 == 932 and sign == '*' and num2 == 216:
print('932*216 = 201312')
if num1 == 932 and sign == '*' and num2 == 217:
print('932*217 = 202244')
if num1 == 932 and sign == '*' and num2 == 218:
print('932*218 = 203176')
if num1 == 932 and sign == '*' and num2 == 219:
print('932*219 = 204108')
if num1 == 932 and sign == '*' and num2 == 220:
print('932*220 = 205040')
if num1 == 932 and sign == '*' and num2 == 221:
print('932*221 = 205972')
if num1 == 932 and sign == '*' and num2 == 222:
print('932*222 = 206904')
if num1 == 932 and sign == '*' and num2 == 223:
print('932*223 = 207836')
if num1 == 932 and sign == '*' and num2 == 224:
print('932*224 = 208768')
if num1 == 932 and sign == '*' and num2 == 225:
print('932*225 = 209700')
if num1 == 932 and sign == '*' and num2 == 226:
print('932*226 = 210632')
if num1 == 932 and sign == '*' and num2 == 227:
print('932*227 = 211564')
if num1 == 932 and sign == '*' and num2 == 228:
print('932*228 = 212496')
if num1 == 932 and sign == '*' and num2 == 229:
print('932*229 = 213428')
if num1 == 932 and sign == '*' and num2 == 230:
print('932*230 = 214360')
if num1 == 932 and sign == '*' and num2 == 231:
print('932*231 = 215292')
if num1 == 932 and sign == '*' and num2 == 232:
print('932*232 = 216224')
if num1 == 932 and sign == '*' and num2 == 233:
print('932*233 = 217156')
if num1 == 932 and sign == '*' and num2 == 234:
print('932*234 = 218088')
if num1 == 932 and sign == '*' and num2 == 235:
print('932*235 = 219020')
if num1 == 932 and sign == '*' and num2 == 236:
print('932*236 = 219952')
if num1 == 932 and sign == '*' and num2 == 237:
print('932*237 = 220884')
if num1 == 932 and sign == '*' and num2 == 238:
print('932*238 = 221816')
if num1 == 932 and sign == '*' and num2 == 239:
print('932*239 = 222748')
if num1 == 932 and sign == '*' and num2 == 240:
print('932*240 = 223680')
if num1 == 932 and sign == '*' and num2 == 241:
print('932*241 = 224612')
if num1 == 932 and sign == '*' and num2 == 242:
print('932*242 = 225544')
if num1 == 932 and sign == '*' and num2 == 243:
print('932*243 = 226476')
if num1 == 932 and sign == '*' and num2 == 244:
print('932*244 = 227408')
if num1 == 932 and sign == '*' and num2 == 245:
print('932*245 = 228340')
if num1 == 932 and sign == '*' and num2 == 246:
print('932*246 = 229272')
if num1 == 932 and sign == '*' and num2 == 247:
print('932*247 = 230204')
if num1 == 932 and sign == '*' and num2 == 248:
print('932*248 = 231136')
if num1 == 932 and sign == '*' and num2 == 249:
print('932*249 = 232068')
if num1 == 933 and sign == '*' and num2 == 200:
print('933*200 = 186600')
if num1 == 933 and sign == '*' and num2 == 201:
print('933*201 = 187533')
if num1 == 933 and sign == '*' and num2 == 202:
print('933*202 = 188466')
if num1 == 933 and sign == '*' and num2 == 203:
print('933*203 = 189399')
if num1 == 933 and sign == '*' and num2 == 204:
print('933*204 = 190332')
if num1 == 933 and sign == '*' and num2 == 205:
print('933*205 = 191265')
if num1 == 933 and sign == '*' and num2 == 206:
print('933*206 = 192198')
if num1 == 933 and sign == '*' and num2 == 207:
print('933*207 = 193131')
if num1 == 933 and sign == '*' and num2 == 208:
print('933*208 = 194064')
if num1 == 933 and sign == '*' and num2 == 209:
print('933*209 = 194997')
if num1 == 933 and sign == '*' and num2 == 210:
print('933*210 = 195930')
if num1 == 933 and sign == '*' and num2 == 211:
print('933*211 = 196863')
if num1 == 933 and sign == '*' and num2 == 212:
print('933*212 = 197796')
if num1 == 933 and sign == '*' and num2 == 213:
print('933*213 = 198729')
if num1 == 933 and sign == '*' and num2 == 214:
print('933*214 = 199662')
if num1 == 933 and sign == '*' and num2 == 215:
print('933*215 = 200595')
if num1 == 933 and sign == '*' and num2 == 216:
print('933*216 = 201528')
if num1 == 933 and sign == '*' and num2 == 217:
print('933*217 = 202461')
if num1 == 933 and sign == '*' and num2 == 218:
print('933*218 = 203394')
if num1 == 933 and sign == '*' and num2 == 219:
print('933*219 = 204327')
if num1 == 933 and sign == '*' and num2 == 220:
print('933*220 = 205260')
if num1 == 933 and sign == '*' and num2 == 221:
print('933*221 = 206193')
if num1 == 933 and sign == '*' and num2 == 222:
print('933*222 = 207126')
if num1 == 933 and sign == '*' and num2 == 223:
print('933*223 = 208059')
if num1 == 933 and sign == '*' and num2 == 224:
print('933*224 = 208992')
if num1 == 933 and sign == '*' and num2 == 225:
print('933*225 = 209925')
if num1 == 933 and sign == '*' and num2 == 226:
print('933*226 = 210858')
if num1 == 933 and sign == '*' and num2 == 227:
print('933*227 = 211791')
if num1 == 933 and sign == '*' and num2 == 228:
print('933*228 = 212724')
if num1 == 933 and sign == '*' and num2 == 229:
print('933*229 = 213657')
if num1 == 933 and sign == '*' and num2 == 230:
print('933*230 = 214590')
if num1 == 933 and sign == '*' and num2 == 231:
print('933*231 = 215523')
if num1 == 933 and sign == '*' and num2 == 232:
print('933*232 = 216456')
if num1 == 933 and sign == '*' and num2 == 233:
print('933*233 = 217389')
if num1 == 933 and sign == '*' and num2 == 234:
print('933*234 = 218322')
if num1 == 933 and sign == '*' and num2 == 235:
print('933*235 = 219255')
if num1 == 933 and sign == '*' and num2 == 236:
print('933*236 = 220188')
if num1 == 933 and sign == '*' and num2 == 237:
print('933*237 = 221121')
if num1 == 933 and sign == '*' and num2 == 238:
print('933*238 = 222054')
if num1 == 933 and sign == '*' and num2 == 239:
print('933*239 = 222987')
if num1 == 933 and sign == '*' and num2 == 240:
print('933*240 = 223920')
if num1 == 933 and sign == '*' and num2 == 241:
print('933*241 = 224853')
if num1 == 933 and sign == '*' and num2 == 242:
print('933*242 = 225786')
if num1 == 933 and sign == '*' and num2 == 243:
print('933*243 = 226719')
if num1 == 933 and sign == '*' and num2 == 244:
print('933*244 = 227652')
if num1 == 933 and sign == '*' and num2 == 245:
print('933*245 = 228585')
if num1 == 933 and sign == '*' and num2 == 246:
print('933*246 = 229518')
if num1 == 933 and sign == '*' and num2 == 247:
print('933*247 = 230451')
if num1 == 933 and sign == '*' and num2 == 248:
print('933*248 = 231384')
if num1 == 933 and sign == '*' and num2 == 249:
print('933*249 = 232317')
if num1 == 934 and sign == '*' and num2 == 200:
print('934*200 = 186800')
if num1 == 934 and sign == '*' and num2 == 201:
print('934*201 = 187734')
if num1 == 934 and sign == '*' and num2 == 202:
print('934*202 = 188668')
if num1 == 934 and sign == '*' and num2 == 203:
print('934*203 = 189602')
if num1 == 934 and sign == '*' and num2 == 204:
print('934*204 = 190536')
if num1 == 934 and sign == '*' and num2 == 205:
print('934*205 = 191470')
if num1 == 934 and sign == '*' and num2 == 206:
print('934*206 = 192404')
if num1 == 934 and sign == '*' and num2 == 207:
print('934*207 = 193338')
if num1 == 934 and sign == '*' and num2 == 208:
print('934*208 = 194272')
if num1 == 934 and sign == '*' and num2 == 209:
print('934*209 = 195206')
if num1 == 934 and sign == '*' and num2 == 210:
print('934*210 = 196140')
if num1 == 934 and sign == '*' and num2 == 211:
print('934*211 = 197074')
if num1 == 934 and sign == '*' and num2 == 212:
print('934*212 = 198008')
if num1 == 934 and sign == '*' and num2 == 213:
print('934*213 = 198942')
if num1 == 934 and sign == '*' and num2 == 214:
print('934*214 = 199876')
if num1 == 934 and sign == '*' and num2 == 215:
print('934*215 = 200810')
if num1 == 934 and sign == '*' and num2 == 216:
print('934*216 = 201744')
if num1 == 934 and sign == '*' and num2 == 217:
print('934*217 = 202678')
if num1 == 934 and sign == '*' and num2 == 218:
print('934*218 = 203612')
if num1 == 934 and sign == '*' and num2 == 219:
print('934*219 = 204546')
if num1 == 934 and sign == '*' and num2 == 220:
print('934*220 = 205480')
if num1 == 934 and sign == '*' and num2 == 221:
print('934*221 = 206414')
if num1 == 934 and sign == '*' and num2 == 222:
print('934*222 = 207348')
if num1 == 934 and sign == '*' and num2 == 223:
print('934*223 = 208282')
if num1 == 934 and sign == '*' and num2 == 224:
print('934*224 = 209216')
if num1 == 934 and sign == '*' and num2 == 225:
print('934*225 = 210150')
if num1 == 934 and sign == '*' and num2 == 226:
print('934*226 = 211084')
if num1 == 934 and sign == '*' and num2 == 227:
print('934*227 = 212018')
if num1 == 934 and sign == '*' and num2 == 228:
print('934*228 = 212952')
if num1 == 934 and sign == '*' and num2 == 229:
print('934*229 = 213886')
if num1 == 934 and sign == '*' and num2 == 230:
print('934*230 = 214820')
if num1 == 934 and sign == '*' and num2 == 231:
print('934*231 = 215754')
if num1 == 934 and sign == '*' and num2 == 232:
print('934*232 = 216688')
if num1 == 934 and sign == '*' and num2 == 233:
print('934*233 = 217622')
if num1 == 934 and sign == '*' and num2 == 234:
print('934*234 = 218556')
if num1 == 934 and sign == '*' and num2 == 235:
print('934*235 = 219490')
if num1 == 934 and sign == '*' and num2 == 236:
print('934*236 = 220424')
if num1 == 934 and sign == '*' and num2 == 237:
print('934*237 = 221358')
if num1 == 934 and sign == '*' and num2 == 238:
print('934*238 = 222292')
if num1 == 934 and sign == '*' and num2 == 239:
print('934*239 = 223226')
if num1 == 934 and sign == '*' and num2 == 240:
print('934*240 = 224160')
if num1 == 934 and sign == '*' and num2 == 241:
print('934*241 = 225094')
if num1 == 934 and sign == '*' and num2 == 242:
print('934*242 = 226028')
if num1 == 934 and sign == '*' and num2 == 243:
print('934*243 = 226962')
if num1 == 934 and sign == '*' and num2 == 244:
print('934*244 = 227896')
if num1 == 934 and sign == '*' and num2 == 245:
print('934*245 = 228830')
if num1 == 934 and sign == '*' and num2 == 246:
print('934*246 = 229764')
if num1 == 934 and sign == '*' and num2 == 247:
print('934*247 = 230698')
if num1 == 934 and sign == '*' and num2 == 248:
print('934*248 = 231632')
if num1 == 934 and sign == '*' and num2 == 249:
print('934*249 = 232566')
if num1 == 935 and sign == '*' and num2 == 200:
print('935*200 = 187000')
if num1 == 935 and sign == '*' and num2 == 201:
print('935*201 = 187935')
if num1 == 935 and sign == '*' and num2 == 202:
print('935*202 = 188870')
if num1 == 935 and sign == '*' and num2 == 203:
print('935*203 = 189805')
if num1 == 935 and sign == '*' and num2 == 204:
print('935*204 = 190740')
if num1 == 935 and sign == '*' and num2 == 205:
print('935*205 = 191675')
if num1 == 935 and sign == '*' and num2 == 206:
print('935*206 = 192610')
if num1 == 935 and sign == '*' and num2 == 207:
print('935*207 = 193545')
if num1 == 935 and sign == '*' and num2 == 208:
print('935*208 = 194480')
if num1 == 935 and sign == '*' and num2 == 209:
print('935*209 = 195415')
if num1 == 935 and sign == '*' and num2 == 210:
print('935*210 = 196350')
if num1 == 935 and sign == '*' and num2 == 211:
print('935*211 = 197285')
if num1 == 935 and sign == '*' and num2 == 212:
print('935*212 = 198220')
if num1 == 935 and sign == '*' and num2 == 213:
print('935*213 = 199155')
if num1 == 935 and sign == '*' and num2 == 214:
print('935*214 = 200090')
if num1 == 935 and sign == '*' and num2 == 215:
print('935*215 = 201025')
if num1 == 935 and sign == '*' and num2 == 216:
print('935*216 = 201960')
if num1 == 935 and sign == '*' and num2 == 217:
print('935*217 = 202895')
if num1 == 935 and sign == '*' and num2 == 218:
print('935*218 = 203830')
if num1 == 935 and sign == '*' and num2 == 219:
print('935*219 = 204765')
if num1 == 935 and sign == '*' and num2 == 220:
print('935*220 = 205700')
if num1 == 935 and sign == '*' and num2 == 221:
print('935*221 = 206635')
if num1 == 935 and sign == '*' and num2 == 222:
print('935*222 = 207570')
if num1 == 935 and sign == '*' and num2 == 223:
print('935*223 = 208505')
if num1 == 935 and sign == '*' and num2 == 224:
print('935*224 = 209440')
if num1 == 935 and sign == '*' and num2 == 225:
print('935*225 = 210375')
if num1 == 935 and sign == '*' and num2 == 226:
print('935*226 = 211310')
if num1 == 935 and sign == '*' and num2 == 227:
print('935*227 = 212245')
if num1 == 935 and sign == '*' and num2 == 228:
print('935*228 = 213180')
if num1 == 935 and sign == '*' and num2 == 229:
print('935*229 = 214115')
if num1 == 935 and sign == '*' and num2 == 230:
print('935*230 = 215050')
if num1 == 935 and sign == '*' and num2 == 231:
print('935*231 = 215985')
if num1 == 935 and sign == '*' and num2 == 232:
print('935*232 = 216920')
if num1 == 935 and sign == '*' and num2 == 233:
print('935*233 = 217855')
if num1 == 935 and sign == '*' and num2 == 234:
print('935*234 = 218790')
if num1 == 935 and sign == '*' and num2 == 235:
print('935*235 = 219725')
if num1 == 935 and sign == '*' and num2 == 236:
print('935*236 = 220660')
if num1 == 935 and sign == '*' and num2 == 237:
print('935*237 = 221595')
if num1 == 935 and sign == '*' and num2 == 238:
print('935*238 = 222530')
if num1 == 935 and sign == '*' and num2 == 239:
print('935*239 = 223465')
if num1 == 935 and sign == '*' and num2 == 240:
print('935*240 = 224400')
if num1 == 935 and sign == '*' and num2 == 241:
print('935*241 = 225335')
if num1 == 935 and sign == '*' and num2 == 242:
print('935*242 = 226270')
if num1 == 935 and sign == '*' and num2 == 243:
print('935*243 = 227205')
if num1 == 935 and sign == '*' and num2 == 244:
print('935*244 = 228140')
if num1 == 935 and sign == '*' and num2 == 245:
print('935*245 = 229075')
if num1 == 935 and sign == '*' and num2 == 246:
print('935*246 = 230010')
if num1 == 935 and sign == '*' and num2 == 247:
print('935*247 = 230945')
if num1 == 935 and sign == '*' and num2 == 248:
print('935*248 = 231880')
if num1 == 935 and sign == '*' and num2 == 249:
print('935*249 = 232815')
if num1 == 936 and sign == '*' and num2 == 200:
print('936*200 = 187200')
if num1 == 936 and sign == '*' and num2 == 201:
print('936*201 = 188136')
if num1 == 936 and sign == '*' and num2 == 202:
print('936*202 = 189072')
if num1 == 936 and sign == '*' and num2 == 203:
print('936*203 = 190008')
if num1 == 936 and sign == '*' and num2 == 204:
print('936*204 = 190944')
if num1 == 936 and sign == '*' and num2 == 205:
print('936*205 = 191880')
if num1 == 936 and sign == '*' and num2 == 206:
print('936*206 = 192816')
if num1 == 936 and sign == '*' and num2 == 207:
print('936*207 = 193752')
if num1 == 936 and sign == '*' and num2 == 208:
print('936*208 = 194688')
if num1 == 936 and sign == '*' and num2 == 209:
print('936*209 = 195624')
if num1 == 936 and sign == '*' and num2 == 210:
print('936*210 = 196560')
if num1 == 936 and sign == '*' and num2 == 211:
print('936*211 = 197496')
if num1 == 936 and sign == '*' and num2 == 212:
print('936*212 = 198432')
if num1 == 936 and sign == '*' and num2 == 213:
print('936*213 = 199368')
if num1 == 936 and sign == '*' and num2 == 214:
print('936*214 = 200304')
if num1 == 936 and sign == '*' and num2 == 215:
print('936*215 = 201240')
if num1 == 936 and sign == '*' and num2 == 216:
print('936*216 = 202176')
if num1 == 936 and sign == '*' and num2 == 217:
print('936*217 = 203112')
if num1 == 936 and sign == '*' and num2 == 218:
print('936*218 = 204048')
if num1 == 936 and sign == '*' and num2 == 219:
print('936*219 = 204984')
if num1 == 936 and sign == '*' and num2 == 220:
print('936*220 = 205920')
if num1 == 936 and sign == '*' and num2 == 221:
print('936*221 = 206856')
if num1 == 936 and sign == '*' and num2 == 222:
print('936*222 = 207792')
if num1 == 936 and sign == '*' and num2 == 223:
print('936*223 = 208728')
if num1 == 936 and sign == '*' and num2 == 224:
print('936*224 = 209664')
if num1 == 936 and sign == '*' and num2 == 225:
print('936*225 = 210600')
if num1 == 936 and sign == '*' and num2 == 226:
print('936*226 = 211536')
if num1 == 936 and sign == '*' and num2 == 227:
print('936*227 = 212472')
if num1 == 936 and sign == '*' and num2 == 228:
print('936*228 = 213408')
if num1 == 936 and sign == '*' and num2 == 229:
print('936*229 = 214344')
if num1 == 936 and sign == '*' and num2 == 230:
print('936*230 = 215280')
if num1 == 936 and sign == '*' and num2 == 231:
print('936*231 = 216216')
if num1 == 936 and sign == '*' and num2 == 232:
print('936*232 = 217152')
if num1 == 936 and sign == '*' and num2 == 233:
print('936*233 = 218088')
if num1 == 936 and sign == '*' and num2 == 234:
print('936*234 = 219024')
if num1 == 936 and sign == '*' and num2 == 235:
print('936*235 = 219960')
if num1 == 936 and sign == '*' and num2 == 236:
print('936*236 = 220896')
if num1 == 936 and sign == '*' and num2 == 237:
print('936*237 = 221832')
if num1 == 936 and sign == '*' and num2 == 238:
print('936*238 = 222768')
if num1 == 936 and sign == '*' and num2 == 239:
print('936*239 = 223704')
if num1 == 936 and sign == '*' and num2 == 240:
print('936*240 = 224640')
if num1 == 936 and sign == '*' and num2 == 241:
print('936*241 = 225576')
if num1 == 936 and sign == '*' and num2 == 242:
print('936*242 = 226512')
if num1 == 936 and sign == '*' and num2 == 243:
print('936*243 = 227448')
if num1 == 936 and sign == '*' and num2 == 244:
print('936*244 = 228384')
if num1 == 936 and sign == '*' and num2 == 245:
print('936*245 = 229320')
if num1 == 936 and sign == '*' and num2 == 246:
print('936*246 = 230256')
if num1 == 936 and sign == '*' and num2 == 247:
print('936*247 = 231192')
if num1 == 936 and sign == '*' and num2 == 248:
print('936*248 = 232128')
if num1 == 936 and sign == '*' and num2 == 249:
print('936*249 = 233064')
if num1 == 937 and sign == '*' and num2 == 200:
print('937*200 = 187400')
if num1 == 937 and sign == '*' and num2 == 201:
print('937*201 = 188337')
if num1 == 937 and sign == '*' and num2 == 202:
print('937*202 = 189274')
if num1 == 937 and sign == '*' and num2 == 203:
print('937*203 = 190211')
if num1 == 937 and sign == '*' and num2 == 204:
print('937*204 = 191148')
if num1 == 937 and sign == '*' and num2 == 205:
print('937*205 = 192085')
if num1 == 937 and sign == '*' and num2 == 206:
print('937*206 = 193022')
if num1 == 937 and sign == '*' and num2 == 207:
print('937*207 = 193959')
if num1 == 937 and sign == '*' and num2 == 208:
print('937*208 = 194896')
if num1 == 937 and sign == '*' and num2 == 209:
print('937*209 = 195833')
if num1 == 937 and sign == '*' and num2 == 210:
print('937*210 = 196770')
if num1 == 937 and sign == '*' and num2 == 211:
print('937*211 = 197707')
if num1 == 937 and sign == '*' and num2 == 212:
print('937*212 = 198644')
if num1 == 937 and sign == '*' and num2 == 213:
print('937*213 = 199581')
if num1 == 937 and sign == '*' and num2 == 214:
print('937*214 = 200518')
if num1 == 937 and sign == '*' and num2 == 215:
print('937*215 = 201455')
if num1 == 937 and sign == '*' and num2 == 216:
print('937*216 = 202392')
if num1 == 937 and sign == '*' and num2 == 217:
print('937*217 = 203329')
if num1 == 937 and sign == '*' and num2 == 218:
print('937*218 = 204266')
if num1 == 937 and sign == '*' and num2 == 219:
print('937*219 = 205203')
if num1 == 937 and sign == '*' and num2 == 220:
print('937*220 = 206140')
if num1 == 937 and sign == '*' and num2 == 221:
print('937*221 = 207077')
if num1 == 937 and sign == '*' and num2 == 222:
print('937*222 = 208014')
if num1 == 937 and sign == '*' and num2 == 223:
print('937*223 = 208951')
if num1 == 937 and sign == '*' and num2 == 224:
print('937*224 = 209888')
if num1 == 937 and sign == '*' and num2 == 225:
print('937*225 = 210825')
if num1 == 937 and sign == '*' and num2 == 226:
print('937*226 = 211762')
if num1 == 937 and sign == '*' and num2 == 227:
print('937*227 = 212699')
if num1 == 937 and sign == '*' and num2 == 228:
print('937*228 = 213636')
if num1 == 937 and sign == '*' and num2 == 229:
print('937*229 = 214573')
if num1 == 937 and sign == '*' and num2 == 230:
print('937*230 = 215510')
if num1 == 937 and sign == '*' and num2 == 231:
print('937*231 = 216447')
if num1 == 937 and sign == '*' and num2 == 232:
print('937*232 = 217384')
if num1 == 937 and sign == '*' and num2 == 233:
print('937*233 = 218321')
if num1 == 937 and sign == '*' and num2 == 234:
print('937*234 = 219258')
if num1 == 937 and sign == '*' and num2 == 235:
print('937*235 = 220195')
if num1 == 937 and sign == '*' and num2 == 236:
print('937*236 = 221132')
if num1 == 937 and sign == '*' and num2 == 237:
print('937*237 = 222069')
if num1 == 937 and sign == '*' and num2 == 238:
print('937*238 = 223006')
if num1 == 937 and sign == '*' and num2 == 239:
print('937*239 = 223943')
if num1 == 937 and sign == '*' and num2 == 240:
print('937*240 = 224880')
if num1 == 937 and sign == '*' and num2 == 241:
print('937*241 = 225817')
if num1 == 937 and sign == '*' and num2 == 242:
print('937*242 = 226754')
if num1 == 937 and sign == '*' and num2 == 243:
print('937*243 = 227691')
if num1 == 937 and sign == '*' and num2 == 244:
print('937*244 = 228628')
if num1 == 937 and sign == '*' and num2 == 245:
print('937*245 = 229565')
if num1 == 937 and sign == '*' and num2 == 246:
print('937*246 = 230502')
if num1 == 937 and sign == '*' and num2 == 247:
print('937*247 = 231439')
if num1 == 937 and sign == '*' and num2 == 248:
print('937*248 = 232376')
if num1 == 937 and sign == '*' and num2 == 249:
print('937*249 = 233313')
if num1 == 938 and sign == '*' and num2 == 200:
print('938*200 = 187600')
if num1 == 938 and sign == '*' and num2 == 201:
print('938*201 = 188538')
if num1 == 938 and sign == '*' and num2 == 202:
print('938*202 = 189476')
if num1 == 938 and sign == '*' and num2 == 203:
print('938*203 = 190414')
if num1 == 938 and sign == '*' and num2 == 204:
print('938*204 = 191352')
if num1 == 938 and sign == '*' and num2 == 205:
print('938*205 = 192290')
if num1 == 938 and sign == '*' and num2 == 206:
print('938*206 = 193228')
if num1 == 938 and sign == '*' and num2 == 207:
print('938*207 = 194166')
if num1 == 938 and sign == '*' and num2 == 208:
print('938*208 = 195104')
if num1 == 938 and sign == '*' and num2 == 209:
print('938*209 = 196042')
if num1 == 938 and sign == '*' and num2 == 210:
print('938*210 = 196980')
if num1 == 938 and sign == '*' and num2 == 211:
print('938*211 = 197918')
if num1 == 938 and sign == '*' and num2 == 212:
print('938*212 = 198856')
if num1 == 938 and sign == '*' and num2 == 213:
print('938*213 = 199794')
if num1 == 938 and sign == '*' and num2 == 214:
print('938*214 = 200732')
if num1 == 938 and sign == '*' and num2 == 215:
print('938*215 = 201670')
if num1 == 938 and sign == '*' and num2 == 216:
print('938*216 = 202608')
if num1 == 938 and sign == '*' and num2 == 217:
print('938*217 = 203546')
if num1 == 938 and sign == '*' and num2 == 218:
print('938*218 = 204484')
if num1 == 938 and sign == '*' and num2 == 219:
print('938*219 = 205422')
if num1 == 938 and sign == '*' and num2 == 220:
print('938*220 = 206360')
if num1 == 938 and sign == '*' and num2 == 221:
print('938*221 = 207298')
if num1 == 938 and sign == '*' and num2 == 222:
print('938*222 = 208236')
if num1 == 938 and sign == '*' and num2 == 223:
print('938*223 = 209174')
if num1 == 938 and sign == '*' and num2 == 224:
print('938*224 = 210112')
if num1 == 938 and sign == '*' and num2 == 225:
print('938*225 = 211050')
if num1 == 938 and sign == '*' and num2 == 226:
print('938*226 = 211988')
if num1 == 938 and sign == '*' and num2 == 227:
print('938*227 = 212926')
if num1 == 938 and sign == '*' and num2 == 228:
print('938*228 = 213864')
if num1 == 938 and sign == '*' and num2 == 229:
print('938*229 = 214802')
if num1 == 938 and sign == '*' and num2 == 230:
print('938*230 = 215740')
if num1 == 938 and sign == '*' and num2 == 231:
print('938*231 = 216678')
if num1 == 938 and sign == '*' and num2 == 232:
print('938*232 = 217616')
if num1 == 938 and sign == '*' and num2 == 233:
print('938*233 = 218554')
if num1 == 938 and sign == '*' and num2 == 234:
print('938*234 = 219492')
if num1 == 938 and sign == '*' and num2 == 235:
print('938*235 = 220430')
if num1 == 938 and sign == '*' and num2 == 236:
print('938*236 = 221368')
if num1 == 938 and sign == '*' and num2 == 237:
print('938*237 = 222306')
if num1 == 938 and sign == '*' and num2 == 238:
print('938*238 = 223244')
if num1 == 938 and sign == '*' and num2 == 239:
print('938*239 = 224182')
if num1 == 938 and sign == '*' and num2 == 240:
print('938*240 = 225120')
if num1 == 938 and sign == '*' and num2 == 241:
print('938*241 = 226058')
if num1 == 938 and sign == '*' and num2 == 242:
print('938*242 = 226996')
if num1 == 938 and sign == '*' and num2 == 243:
print('938*243 = 227934')
if num1 == 938 and sign == '*' and num2 == 244:
print('938*244 = 228872')
if num1 == 938 and sign == '*' and num2 == 245:
print('938*245 = 229810')
if num1 == 938 and sign == '*' and num2 == 246:
print('938*246 = 230748')
if num1 == 938 and sign == '*' and num2 == 247:
print('938*247 = 231686')
if num1 == 938 and sign == '*' and num2 == 248:
print('938*248 = 232624')
if num1 == 938 and sign == '*' and num2 == 249:
print('938*249 = 233562')
if num1 == 939 and sign == '*' and num2 == 200:
print('939*200 = 187800')
if num1 == 939 and sign == '*' and num2 == 201:
print('939*201 = 188739')
if num1 == 939 and sign == '*' and num2 == 202:
print('939*202 = 189678')
if num1 == 939 and sign == '*' and num2 == 203:
print('939*203 = 190617')
if num1 == 939 and sign == '*' and num2 == 204:
print('939*204 = 191556')
if num1 == 939 and sign == '*' and num2 == 205:
print('939*205 = 192495')
if num1 == 939 and sign == '*' and num2 == 206:
print('939*206 = 193434')
if num1 == 939 and sign == '*' and num2 == 207:
print('939*207 = 194373')
if num1 == 939 and sign == '*' and num2 == 208:
print('939*208 = 195312')
if num1 == 939 and sign == '*' and num2 == 209:
print('939*209 = 196251')
if num1 == 939 and sign == '*' and num2 == 210:
print('939*210 = 197190')
if num1 == 939 and sign == '*' and num2 == 211:
print('939*211 = 198129')
if num1 == 939 and sign == '*' and num2 == 212:
print('939*212 = 199068')
if num1 == 939 and sign == '*' and num2 == 213:
print('939*213 = 200007')
if num1 == 939 and sign == '*' and num2 == 214:
print('939*214 = 200946')
if num1 == 939 and sign == '*' and num2 == 215:
print('939*215 = 201885')
if num1 == 939 and sign == '*' and num2 == 216:
print('939*216 = 202824')
if num1 == 939 and sign == '*' and num2 == 217:
print('939*217 = 203763')
if num1 == 939 and sign == '*' and num2 == 218:
print('939*218 = 204702')
if num1 == 939 and sign == '*' and num2 == 219:
print('939*219 = 205641')
if num1 == 939 and sign == '*' and num2 == 220:
print('939*220 = 206580')
if num1 == 939 and sign == '*' and num2 == 221:
print('939*221 = 207519')
if num1 == 939 and sign == '*' and num2 == 222:
print('939*222 = 208458')
if num1 == 939 and sign == '*' and num2 == 223:
print('939*223 = 209397')
if num1 == 939 and sign == '*' and num2 == 224:
print('939*224 = 210336')
if num1 == 939 and sign == '*' and num2 == 225:
print('939*225 = 211275')
if num1 == 939 and sign == '*' and num2 == 226:
print('939*226 = 212214')
if num1 == 939 and sign == '*' and num2 == 227:
print('939*227 = 213153')
if num1 == 939 and sign == '*' and num2 == 228:
print('939*228 = 214092')
if num1 == 939 and sign == '*' and num2 == 229:
print('939*229 = 215031')
if num1 == 939 and sign == '*' and num2 == 230:
print('939*230 = 215970')
if num1 == 939 and sign == '*' and num2 == 231:
print('939*231 = 216909')
if num1 == 939 and sign == '*' and num2 == 232:
print('939*232 = 217848')
if num1 == 939 and sign == '*' and num2 == 233:
print('939*233 = 218787')
if num1 == 939 and sign == '*' and num2 == 234:
print('939*234 = 219726')
if num1 == 939 and sign == '*' and num2 == 235:
print('939*235 = 220665')
if num1 == 939 and sign == '*' and num2 == 236:
print('939*236 = 221604')
if num1 == 939 and sign == '*' and num2 == 237:
print('939*237 = 222543')
if num1 == 939 and sign == '*' and num2 == 238:
print('939*238 = 223482')
if num1 == 939 and sign == '*' and num2 == 239:
print('939*239 = 224421')
if num1 == 939 and sign == '*' and num2 == 240:
print('939*240 = 225360')
if num1 == 939 and sign == '*' and num2 == 241:
print('939*241 = 226299')
if num1 == 939 and sign == '*' and num2 == 242:
print('939*242 = 227238')
if num1 == 939 and sign == '*' and num2 == 243:
print('939*243 = 228177')
if num1 == 939 and sign == '*' and num2 == 244:
print('939*244 = 229116')
if num1 == 939 and sign == '*' and num2 == 245:
print('939*245 = 230055')
if num1 == 939 and sign == '*' and num2 == 246:
print('939*246 = 230994')
if num1 == 939 and sign == '*' and num2 == 247:
print('939*247 = 231933')
if num1 == 939 and sign == '*' and num2 == 248:
print('939*248 = 232872')
if num1 == 939 and sign == '*' and num2 == 249:
print('939*249 = 233811')
if num1 == 940 and sign == '*' and num2 == 200:
print('940*200 = 188000')
if num1 == 940 and sign == '*' and num2 == 201:
print('940*201 = 188940')
if num1 == 940 and sign == '*' and num2 == 202:
print('940*202 = 189880')
if num1 == 940 and sign == '*' and num2 == 203:
print('940*203 = 190820')
if num1 == 940 and sign == '*' and num2 == 204:
print('940*204 = 191760')
if num1 == 940 and sign == '*' and num2 == 205:
print('940*205 = 192700')
if num1 == 940 and sign == '*' and num2 == 206:
print('940*206 = 193640')
if num1 == 940 and sign == '*' and num2 == 207:
print('940*207 = 194580')
if num1 == 940 and sign == '*' and num2 == 208:
print('940*208 = 195520')
if num1 == 940 and sign == '*' and num2 == 209:
print('940*209 = 196460')
if num1 == 940 and sign == '*' and num2 == 210:
print('940*210 = 197400')
if num1 == 940 and sign == '*' and num2 == 211:
print('940*211 = 198340')
if num1 == 940 and sign == '*' and num2 == 212:
print('940*212 = 199280')
if num1 == 940 and sign == '*' and num2 == 213:
print('940*213 = 200220')
if num1 == 940 and sign == '*' and num2 == 214:
print('940*214 = 201160')
if num1 == 940 and sign == '*' and num2 == 215:
print('940*215 = 202100')
if num1 == 940 and sign == '*' and num2 == 216:
print('940*216 = 203040')
if num1 == 940 and sign == '*' and num2 == 217:
print('940*217 = 203980')
if num1 == 940 and sign == '*' and num2 == 218:
print('940*218 = 204920')
if num1 == 940 and sign == '*' and num2 == 219:
print('940*219 = 205860')
if num1 == 940 and sign == '*' and num2 == 220:
print('940*220 = 206800')
if num1 == 940 and sign == '*' and num2 == 221:
print('940*221 = 207740')
if num1 == 940 and sign == '*' and num2 == 222:
print('940*222 = 208680')
if num1 == 940 and sign == '*' and num2 == 223:
print('940*223 = 209620')
if num1 == 940 and sign == '*' and num2 == 224:
print('940*224 = 210560')
if num1 == 940 and sign == '*' and num2 == 225:
print('940*225 = 211500')
if num1 == 940 and sign == '*' and num2 == 226:
print('940*226 = 212440')
if num1 == 940 and sign == '*' and num2 == 227:
print('940*227 = 213380')
if num1 == 940 and sign == '*' and num2 == 228:
print('940*228 = 214320')
if num1 == 940 and sign == '*' and num2 == 229:
print('940*229 = 215260')
if num1 == 940 and sign == '*' and num2 == 230:
print('940*230 = 216200')
if num1 == 940 and sign == '*' and num2 == 231:
print('940*231 = 217140')
if num1 == 940 and sign == '*' and num2 == 232:
print('940*232 = 218080')
if num1 == 940 and sign == '*' and num2 == 233:
print('940*233 = 219020')
if num1 == 940 and sign == '*' and num2 == 234:
print('940*234 = 219960')
if num1 == 940 and sign == '*' and num2 == 235:
print('940*235 = 220900')
if num1 == 940 and sign == '*' and num2 == 236:
print('940*236 = 221840')
if num1 == 940 and sign == '*' and num2 == 237:
print('940*237 = 222780')
if num1 == 940 and sign == '*' and num2 == 238:
print('940*238 = 223720')
if num1 == 940 and sign == '*' and num2 == 239:
print('940*239 = 224660')
if num1 == 940 and sign == '*' and num2 == 240:
print('940*240 = 225600')
if num1 == 940 and sign == '*' and num2 == 241:
print('940*241 = 226540')
if num1 == 940 and sign == '*' and num2 == 242:
print('940*242 = 227480')
if num1 == 940 and sign == '*' and num2 == 243:
print('940*243 = 228420')
if num1 == 940 and sign == '*' and num2 == 244:
print('940*244 = 229360')
if num1 == 940 and sign == '*' and num2 == 245:
print('940*245 = 230300')
if num1 == 940 and sign == '*' and num2 == 246:
print('940*246 = 231240')
if num1 == 940 and sign == '*' and num2 == 247:
print('940*247 = 232180')
if num1 == 940 and sign == '*' and num2 == 248:
print('940*248 = 233120')
if num1 == 940 and sign == '*' and num2 == 249:
print('940*249 = 234060')
if num1 == 941 and sign == '*' and num2 == 200:
print('941*200 = 188200')
if num1 == 941 and sign == '*' and num2 == 201:
print('941*201 = 189141')
if num1 == 941 and sign == '*' and num2 == 202:
print('941*202 = 190082')
if num1 == 941 and sign == '*' and num2 == 203:
print('941*203 = 191023')
if num1 == 941 and sign == '*' and num2 == 204:
print('941*204 = 191964')
if num1 == 941 and sign == '*' and num2 == 205:
print('941*205 = 192905')
if num1 == 941 and sign == '*' and num2 == 206:
print('941*206 = 193846')
if num1 == 941 and sign == '*' and num2 == 207:
print('941*207 = 194787')
if num1 == 941 and sign == '*' and num2 == 208:
print('941*208 = 195728')
if num1 == 941 and sign == '*' and num2 == 209:
print('941*209 = 196669')
if num1 == 941 and sign == '*' and num2 == 210:
print('941*210 = 197610')
if num1 == 941 and sign == '*' and num2 == 211:
print('941*211 = 198551')
if num1 == 941 and sign == '*' and num2 == 212:
print('941*212 = 199492')
if num1 == 941 and sign == '*' and num2 == 213:
print('941*213 = 200433')
if num1 == 941 and sign == '*' and num2 == 214:
print('941*214 = 201374')
if num1 == 941 and sign == '*' and num2 == 215:
print('941*215 = 202315')
if num1 == 941 and sign == '*' and num2 == 216:
print('941*216 = 203256')
if num1 == 941 and sign == '*' and num2 == 217:
print('941*217 = 204197')
if num1 == 941 and sign == '*' and num2 == 218:
print('941*218 = 205138')
if num1 == 941 and sign == '*' and num2 == 219:
print('941*219 = 206079')
if num1 == 941 and sign == '*' and num2 == 220:
print('941*220 = 207020')
if num1 == 941 and sign == '*' and num2 == 221:
print('941*221 = 207961')
if num1 == 941 and sign == '*' and num2 == 222:
print('941*222 = 208902')
if num1 == 941 and sign == '*' and num2 == 223:
print('941*223 = 209843')
if num1 == 941 and sign == '*' and num2 == 224:
print('941*224 = 210784')
if num1 == 941 and sign == '*' and num2 == 225:
print('941*225 = 211725')
if num1 == 941 and sign == '*' and num2 == 226:
print('941*226 = 212666')
if num1 == 941 and sign == '*' and num2 == 227:
print('941*227 = 213607')
if num1 == 941 and sign == '*' and num2 == 228:
print('941*228 = 214548')
if num1 == 941 and sign == '*' and num2 == 229:
print('941*229 = 215489')
if num1 == 941 and sign == '*' and num2 == 230:
print('941*230 = 216430')
if num1 == 941 and sign == '*' and num2 == 231:
print('941*231 = 217371')
if num1 == 941 and sign == '*' and num2 == 232:
print('941*232 = 218312')
if num1 == 941 and sign == '*' and num2 == 233:
print('941*233 = 219253')
if num1 == 941 and sign == '*' and num2 == 234:
print('941*234 = 220194')
if num1 == 941 and sign == '*' and num2 == 235:
print('941*235 = 221135')
if num1 == 941 and sign == '*' and num2 == 236:
print('941*236 = 222076')
if num1 == 941 and sign == '*' and num2 == 237:
print('941*237 = 223017')
if num1 == 941 and sign == '*' and num2 == 238:
print('941*238 = 223958')
if num1 == 941 and sign == '*' and num2 == 239:
print('941*239 = 224899')
if num1 == 941 and sign == '*' and num2 == 240:
print('941*240 = 225840')
if num1 == 941 and sign == '*' and num2 == 241:
print('941*241 = 226781')
if num1 == 941 and sign == '*' and num2 == 242:
print('941*242 = 227722')
if num1 == 941 and sign == '*' and num2 == 243:
print('941*243 = 228663')
if num1 == 941 and sign == '*' and num2 == 244:
print('941*244 = 229604')
if num1 == 941 and sign == '*' and num2 == 245:
print('941*245 = 230545')
if num1 == 941 and sign == '*' and num2 == 246:
print('941*246 = 231486')
if num1 == 941 and sign == '*' and num2 == 247:
print('941*247 = 232427')
if num1 == 941 and sign == '*' and num2 == 248:
print('941*248 = 233368')
if num1 == 941 and sign == '*' and num2 == 249:
print('941*249 = 234309')
if num1 == 942 and sign == '*' and num2 == 200:
print('942*200 = 188400')
if num1 == 942 and sign == '*' and num2 == 201:
print('942*201 = 189342')
if num1 == 942 and sign == '*' and num2 == 202:
print('942*202 = 190284')
if num1 == 942 and sign == '*' and num2 == 203:
print('942*203 = 191226')
if num1 == 942 and sign == '*' and num2 == 204:
print('942*204 = 192168')
if num1 == 942 and sign == '*' and num2 == 205:
print('942*205 = 193110')
if num1 == 942 and sign == '*' and num2 == 206:
print('942*206 = 194052')
if num1 == 942 and sign == '*' and num2 == 207:
print('942*207 = 194994')
if num1 == 942 and sign == '*' and num2 == 208:
print('942*208 = 195936')
if num1 == 942 and sign == '*' and num2 == 209:
print('942*209 = 196878')
if num1 == 942 and sign == '*' and num2 == 210:
print('942*210 = 197820')
if num1 == 942 and sign == '*' and num2 == 211:
print('942*211 = 198762')
if num1 == 942 and sign == '*' and num2 == 212:
print('942*212 = 199704')
if num1 == 942 and sign == '*' and num2 == 213:
print('942*213 = 200646')
if num1 == 942 and sign == '*' and num2 == 214:
print('942*214 = 201588')
if num1 == 942 and sign == '*' and num2 == 215:
print('942*215 = 202530')
if num1 == 942 and sign == '*' and num2 == 216:
print('942*216 = 203472')
if num1 == 942 and sign == '*' and num2 == 217:
print('942*217 = 204414')
if num1 == 942 and sign == '*' and num2 == 218:
print('942*218 = 205356')
if num1 == 942 and sign == '*' and num2 == 219:
print('942*219 = 206298')
if num1 == 942 and sign == '*' and num2 == 220:
print('942*220 = 207240')
if num1 == 942 and sign == '*' and num2 == 221:
print('942*221 = 208182')
if num1 == 942 and sign == '*' and num2 == 222:
print('942*222 = 209124')
if num1 == 942 and sign == '*' and num2 == 223:
print('942*223 = 210066')
if num1 == 942 and sign == '*' and num2 == 224:
print('942*224 = 211008')
if num1 == 942 and sign == '*' and num2 == 225:
print('942*225 = 211950')
if num1 == 942 and sign == '*' and num2 == 226:
print('942*226 = 212892')
if num1 == 942 and sign == '*' and num2 == 227:
print('942*227 = 213834')
if num1 == 942 and sign == '*' and num2 == 228:
print('942*228 = 214776')
if num1 == 942 and sign == '*' and num2 == 229:
print('942*229 = 215718')
if num1 == 942 and sign == '*' and num2 == 230:
print('942*230 = 216660')
if num1 == 942 and sign == '*' and num2 == 231:
print('942*231 = 217602')
if num1 == 942 and sign == '*' and num2 == 232:
print('942*232 = 218544')
if num1 == 942 and sign == '*' and num2 == 233:
print('942*233 = 219486')
if num1 == 942 and sign == '*' and num2 == 234:
print('942*234 = 220428')
if num1 == 942 and sign == '*' and num2 == 235:
print('942*235 = 221370')
if num1 == 942 and sign == '*' and num2 == 236:
print('942*236 = 222312')
if num1 == 942 and sign == '*' and num2 == 237:
print('942*237 = 223254')
if num1 == 942 and sign == '*' and num2 == 238:
print('942*238 = 224196')
if num1 == 942 and sign == '*' and num2 == 239:
print('942*239 = 225138')
if num1 == 942 and sign == '*' and num2 == 240:
print('942*240 = 226080')
if num1 == 942 and sign == '*' and num2 == 241:
print('942*241 = 227022')
if num1 == 942 and sign == '*' and num2 == 242:
print('942*242 = 227964')
if num1 == 942 and sign == '*' and num2 == 243:
print('942*243 = 228906')
if num1 == 942 and sign == '*' and num2 == 244:
print('942*244 = 229848')
if num1 == 942 and sign == '*' and num2 == 245:
print('942*245 = 230790')
if num1 == 942 and sign == '*' and num2 == 246:
print('942*246 = 231732')
if num1 == 942 and sign == '*' and num2 == 247:
print('942*247 = 232674')
if num1 == 942 and sign == '*' and num2 == 248:
print('942*248 = 233616')
if num1 == 942 and sign == '*' and num2 == 249:
print('942*249 = 234558')
if num1 == 943 and sign == '*' and num2 == 200:
print('943*200 = 188600')
if num1 == 943 and sign == '*' and num2 == 201:
print('943*201 = 189543')
if num1 == 943 and sign == '*' and num2 == 202:
print('943*202 = 190486')
if num1 == 943 and sign == '*' and num2 == 203:
print('943*203 = 191429')
if num1 == 943 and sign == '*' and num2 == 204:
print('943*204 = 192372')
if num1 == 943 and sign == '*' and num2 == 205:
print('943*205 = 193315')
if num1 == 943 and sign == '*' and num2 == 206:
print('943*206 = 194258')
if num1 == 943 and sign == '*' and num2 == 207:
print('943*207 = 195201')
if num1 == 943 and sign == '*' and num2 == 208:
print('943*208 = 196144')
if num1 == 943 and sign == '*' and num2 == 209:
print('943*209 = 197087')
if num1 == 943 and sign == '*' and num2 == 210:
print('943*210 = 198030')
if num1 == 943 and sign == '*' and num2 == 211:
print('943*211 = 198973')
if num1 == 943 and sign == '*' and num2 == 212:
print('943*212 = 199916')
if num1 == 943 and sign == '*' and num2 == 213:
print('943*213 = 200859')
if num1 == 943 and sign == '*' and num2 == 214:
print('943*214 = 201802')
if num1 == 943 and sign == '*' and num2 == 215:
print('943*215 = 202745')
if num1 == 943 and sign == '*' and num2 == 216:
print('943*216 = 203688')
if num1 == 943 and sign == '*' and num2 == 217:
print('943*217 = 204631')
if num1 == 943 and sign == '*' and num2 == 218:
print('943*218 = 205574')
if num1 == 943 and sign == '*' and num2 == 219:
print('943*219 = 206517')
if num1 == 943 and sign == '*' and num2 == 220:
print('943*220 = 207460')
if num1 == 943 and sign == '*' and num2 == 221:
print('943*221 = 208403')
if num1 == 943 and sign == '*' and num2 == 222:
print('943*222 = 209346')
if num1 == 943 and sign == '*' and num2 == 223:
print('943*223 = 210289')
if num1 == 943 and sign == '*' and num2 == 224:
print('943*224 = 211232')
if num1 == 943 and sign == '*' and num2 == 225:
print('943*225 = 212175')
if num1 == 943 and sign == '*' and num2 == 226:
print('943*226 = 213118')
if num1 == 943 and sign == '*' and num2 == 227:
print('943*227 = 214061')
if num1 == 943 and sign == '*' and num2 == 228:
print('943*228 = 215004')
if num1 == 943 and sign == '*' and num2 == 229:
print('943*229 = 215947')
if num1 == 943 and sign == '*' and num2 == 230:
print('943*230 = 216890')
if num1 == 943 and sign == '*' and num2 == 231:
print('943*231 = 217833')
if num1 == 943 and sign == '*' and num2 == 232:
print('943*232 = 218776')
if num1 == 943 and sign == '*' and num2 == 233:
print('943*233 = 219719')
if num1 == 943 and sign == '*' and num2 == 234:
print('943*234 = 220662')
if num1 == 943 and sign == '*' and num2 == 235:
print('943*235 = 221605')
if num1 == 943 and sign == '*' and num2 == 236:
print('943*236 = 222548')
if num1 == 943 and sign == '*' and num2 == 237:
print('943*237 = 223491')
if num1 == 943 and sign == '*' and num2 == 238:
print('943*238 = 224434')
if num1 == 943 and sign == '*' and num2 == 239:
print('943*239 = 225377')
if num1 == 943 and sign == '*' and num2 == 240:
print('943*240 = 226320')
if num1 == 943 and sign == '*' and num2 == 241:
print('943*241 = 227263')
if num1 == 943 and sign == '*' and num2 == 242:
print('943*242 = 228206')
if num1 == 943 and sign == '*' and num2 == 243:
print('943*243 = 229149')
if num1 == 943 and sign == '*' and num2 == 244:
print('943*244 = 230092')
if num1 == 943 and sign == '*' and num2 == 245:
print('943*245 = 231035')
if num1 == 943 and sign == '*' and num2 == 246:
print('943*246 = 231978')
if num1 == 943 and sign == '*' and num2 == 247:
print('943*247 = 232921')
if num1 == 943 and sign == '*' and num2 == 248:
print('943*248 = 233864')
if num1 == 943 and sign == '*' and num2 == 249:
print('943*249 = 234807')
if num1 == 944 and sign == '*' and num2 == 200:
print('944*200 = 188800')
if num1 == 944 and sign == '*' and num2 == 201:
print('944*201 = 189744')
if num1 == 944 and sign == '*' and num2 == 202:
print('944*202 = 190688')
if num1 == 944 and sign == '*' and num2 == 203:
print('944*203 = 191632')
if num1 == 944 and sign == '*' and num2 == 204:
print('944*204 = 192576')
if num1 == 944 and sign == '*' and num2 == 205:
print('944*205 = 193520')
if num1 == 944 and sign == '*' and num2 == 206:
print('944*206 = 194464')
if num1 == 944 and sign == '*' and num2 == 207:
print('944*207 = 195408')
if num1 == 944 and sign == '*' and num2 == 208:
print('944*208 = 196352')
if num1 == 944 and sign == '*' and num2 == 209:
print('944*209 = 197296')
if num1 == 944 and sign == '*' and num2 == 210:
print('944*210 = 198240')
if num1 == 944 and sign == '*' and num2 == 211:
print('944*211 = 199184')
if num1 == 944 and sign == '*' and num2 == 212:
print('944*212 = 200128')
if num1 == 944 and sign == '*' and num2 == 213:
print('944*213 = 201072')
if num1 == 944 and sign == '*' and num2 == 214:
print('944*214 = 202016')
if num1 == 944 and sign == '*' and num2 == 215:
print('944*215 = 202960')
if num1 == 944 and sign == '*' and num2 == 216:
print('944*216 = 203904')
if num1 == 944 and sign == '*' and num2 == 217:
print('944*217 = 204848')
if num1 == 944 and sign == '*' and num2 == 218:
print('944*218 = 205792')
if num1 == 944 and sign == '*' and num2 == 219:
print('944*219 = 206736')
if num1 == 944 and sign == '*' and num2 == 220:
print('944*220 = 207680')
if num1 == 944 and sign == '*' and num2 == 221:
print('944*221 = 208624')
if num1 == 944 and sign == '*' and num2 == 222:
print('944*222 = 209568')
if num1 == 944 and sign == '*' and num2 == 223:
print('944*223 = 210512')
if num1 == 944 and sign == '*' and num2 == 224:
print('944*224 = 211456')
if num1 == 944 and sign == '*' and num2 == 225:
print('944*225 = 212400')
if num1 == 944 and sign == '*' and num2 == 226:
print('944*226 = 213344')
if num1 == 944 and sign == '*' and num2 == 227:
print('944*227 = 214288')
if num1 == 944 and sign == '*' and num2 == 228:
print('944*228 = 215232')
if num1 == 944 and sign == '*' and num2 == 229:
print('944*229 = 216176')
if num1 == 944 and sign == '*' and num2 == 230:
print('944*230 = 217120')
if num1 == 944 and sign == '*' and num2 == 231:
print('944*231 = 218064')
if num1 == 944 and sign == '*' and num2 == 232:
print('944*232 = 219008')
if num1 == 944 and sign == '*' and num2 == 233:
print('944*233 = 219952')
if num1 == 944 and sign == '*' and num2 == 234:
print('944*234 = 220896')
if num1 == 944 and sign == '*' and num2 == 235:
print('944*235 = 221840')
if num1 == 944 and sign == '*' and num2 == 236:
print('944*236 = 222784')
if num1 == 944 and sign == '*' and num2 == 237:
print('944*237 = 223728')
if num1 == 944 and sign == '*' and num2 == 238:
print('944*238 = 224672')
if num1 == 944 and sign == '*' and num2 == 239:
print('944*239 = 225616')
if num1 == 944 and sign == '*' and num2 == 240:
print('944*240 = 226560')
if num1 == 944 and sign == '*' and num2 == 241:
print('944*241 = 227504')
if num1 == 944 and sign == '*' and num2 == 242:
print('944*242 = 228448')
if num1 == 944 and sign == '*' and num2 == 243:
print('944*243 = 229392')
if num1 == 944 and sign == '*' and num2 == 244:
print('944*244 = 230336')
if num1 == 944 and sign == '*' and num2 == 245:
print('944*245 = 231280')
if num1 == 944 and sign == '*' and num2 == 246:
print('944*246 = 232224')
if num1 == 944 and sign == '*' and num2 == 247:
print('944*247 = 233168')
if num1 == 944 and sign == '*' and num2 == 248:
print('944*248 = 234112')
if num1 == 944 and sign == '*' and num2 == 249:
print('944*249 = 235056')
if num1 == 945 and sign == '*' and num2 == 200:
print('945*200 = 189000')
if num1 == 945 and sign == '*' and num2 == 201:
print('945*201 = 189945')
if num1 == 945 and sign == '*' and num2 == 202:
print('945*202 = 190890')
if num1 == 945 and sign == '*' and num2 == 203:
print('945*203 = 191835')
if num1 == 945 and sign == '*' and num2 == 204:
print('945*204 = 192780')
if num1 == 945 and sign == '*' and num2 == 205:
print('945*205 = 193725')
if num1 == 945 and sign == '*' and num2 == 206:
print('945*206 = 194670')
if num1 == 945 and sign == '*' and num2 == 207:
print('945*207 = 195615')
if num1 == 945 and sign == '*' and num2 == 208:
print('945*208 = 196560')
if num1 == 945 and sign == '*' and num2 == 209:
print('945*209 = 197505')
if num1 == 945 and sign == '*' and num2 == 210:
print('945*210 = 198450')
if num1 == 945 and sign == '*' and num2 == 211:
print('945*211 = 199395')
if num1 == 945 and sign == '*' and num2 == 212:
print('945*212 = 200340')
if num1 == 945 and sign == '*' and num2 == 213:
print('945*213 = 201285')
if num1 == 945 and sign == '*' and num2 == 214:
print('945*214 = 202230')
if num1 == 945 and sign == '*' and num2 == 215:
print('945*215 = 203175')
if num1 == 945 and sign == '*' and num2 == 216:
print('945*216 = 204120')
if num1 == 945 and sign == '*' and num2 == 217:
print('945*217 = 205065')
if num1 == 945 and sign == '*' and num2 == 218:
print('945*218 = 206010')
if num1 == 945 and sign == '*' and num2 == 219:
print('945*219 = 206955')
if num1 == 945 and sign == '*' and num2 == 220:
print('945*220 = 207900')
if num1 == 945 and sign == '*' and num2 == 221:
print('945*221 = 208845')
if num1 == 945 and sign == '*' and num2 == 222:
print('945*222 = 209790')
if num1 == 945 and sign == '*' and num2 == 223:
print('945*223 = 210735')
if num1 == 945 and sign == '*' and num2 == 224:
print('945*224 = 211680')
if num1 == 945 and sign == '*' and num2 == 225:
print('945*225 = 212625')
if num1 == 945 and sign == '*' and num2 == 226:
print('945*226 = 213570')
if num1 == 945 and sign == '*' and num2 == 227:
print('945*227 = 214515')
if num1 == 945 and sign == '*' and num2 == 228:
print('945*228 = 215460')
if num1 == 945 and sign == '*' and num2 == 229:
print('945*229 = 216405')
if num1 == 945 and sign == '*' and num2 == 230:
print('945*230 = 217350')
if num1 == 945 and sign == '*' and num2 == 231:
print('945*231 = 218295')
if num1 == 945 and sign == '*' and num2 == 232:
print('945*232 = 219240')
if num1 == 945 and sign == '*' and num2 == 233:
print('945*233 = 220185')
if num1 == 945 and sign == '*' and num2 == 234:
print('945*234 = 221130')
if num1 == 945 and sign == '*' and num2 == 235:
print('945*235 = 222075')
if num1 == 945 and sign == '*' and num2 == 236:
print('945*236 = 223020')
if num1 == 945 and sign == '*' and num2 == 237:
print('945*237 = 223965')
if num1 == 945 and sign == '*' and num2 == 238:
print('945*238 = 224910')
if num1 == 945 and sign == '*' and num2 == 239:
print('945*239 = 225855')
if num1 == 945 and sign == '*' and num2 == 240:
print('945*240 = 226800')
if num1 == 945 and sign == '*' and num2 == 241:
print('945*241 = 227745')
if num1 == 945 and sign == '*' and num2 == 242:
print('945*242 = 228690')
if num1 == 945 and sign == '*' and num2 == 243:
print('945*243 = 229635')
if num1 == 945 and sign == '*' and num2 == 244:
print('945*244 = 230580')
if num1 == 945 and sign == '*' and num2 == 245:
print('945*245 = 231525')
if num1 == 945 and sign == '*' and num2 == 246:
print('945*246 = 232470')
if num1 == 945 and sign == '*' and num2 == 247:
print('945*247 = 233415')
if num1 == 945 and sign == '*' and num2 == 248:
print('945*248 = 234360')
if num1 == 945 and sign == '*' and num2 == 249:
print('945*249 = 235305')
if num1 == 946 and sign == '*' and num2 == 200:
print('946*200 = 189200')
if num1 == 946 and sign == '*' and num2 == 201:
print('946*201 = 190146')
if num1 == 946 and sign == '*' and num2 == 202:
print('946*202 = 191092')
if num1 == 946 and sign == '*' and num2 == 203:
print('946*203 = 192038')
if num1 == 946 and sign == '*' and num2 == 204:
print('946*204 = 192984')
if num1 == 946 and sign == '*' and num2 == 205:
print('946*205 = 193930')
if num1 == 946 and sign == '*' and num2 == 206:
print('946*206 = 194876')
if num1 == 946 and sign == '*' and num2 == 207:
print('946*207 = 195822')
if num1 == 946 and sign == '*' and num2 == 208:
print('946*208 = 196768')
if num1 == 946 and sign == '*' and num2 == 209:
print('946*209 = 197714')
if num1 == 946 and sign == '*' and num2 == 210:
print('946*210 = 198660')
if num1 == 946 and sign == '*' and num2 == 211:
print('946*211 = 199606')
if num1 == 946 and sign == '*' and num2 == 212:
print('946*212 = 200552')
if num1 == 946 and sign == '*' and num2 == 213:
print('946*213 = 201498')
if num1 == 946 and sign == '*' and num2 == 214:
print('946*214 = 202444')
if num1 == 946 and sign == '*' and num2 == 215:
print('946*215 = 203390')
if num1 == 946 and sign == '*' and num2 == 216:
print('946*216 = 204336')
if num1 == 946 and sign == '*' and num2 == 217:
print('946*217 = 205282')
if num1 == 946 and sign == '*' and num2 == 218:
print('946*218 = 206228')
if num1 == 946 and sign == '*' and num2 == 219:
print('946*219 = 207174')
if num1 == 946 and sign == '*' and num2 == 220:
print('946*220 = 208120')
if num1 == 946 and sign == '*' and num2 == 221:
print('946*221 = 209066')
if num1 == 946 and sign == '*' and num2 == 222:
print('946*222 = 210012')
if num1 == 946 and sign == '*' and num2 == 223:
print('946*223 = 210958')
if num1 == 946 and sign == '*' and num2 == 224:
print('946*224 = 211904')
if num1 == 946 and sign == '*' and num2 == 225:
print('946*225 = 212850')
if num1 == 946 and sign == '*' and num2 == 226:
print('946*226 = 213796')
if num1 == 946 and sign == '*' and num2 == 227:
print('946*227 = 214742')
if num1 == 946 and sign == '*' and num2 == 228:
print('946*228 = 215688')
if num1 == 946 and sign == '*' and num2 == 229:
print('946*229 = 216634')
if num1 == 946 and sign == '*' and num2 == 230:
print('946*230 = 217580')
if num1 == 946 and sign == '*' and num2 == 231:
print('946*231 = 218526')
if num1 == 946 and sign == '*' and num2 == 232:
print('946*232 = 219472')
if num1 == 946 and sign == '*' and num2 == 233:
print('946*233 = 220418')
if num1 == 946 and sign == '*' and num2 == 234:
print('946*234 = 221364')
if num1 == 946 and sign == '*' and num2 == 235:
print('946*235 = 222310')
if num1 == 946 and sign == '*' and num2 == 236:
print('946*236 = 223256')
if num1 == 946 and sign == '*' and num2 == 237:
print('946*237 = 224202')
if num1 == 946 and sign == '*' and num2 == 238:
print('946*238 = 225148')
if num1 == 946 and sign == '*' and num2 == 239:
print('946*239 = 226094')
if num1 == 946 and sign == '*' and num2 == 240:
print('946*240 = 227040')
if num1 == 946 and sign == '*' and num2 == 241:
print('946*241 = 227986')
if num1 == 946 and sign == '*' and num2 == 242:
print('946*242 = 228932')
if num1 == 946 and sign == '*' and num2 == 243:
print('946*243 = 229878')
if num1 == 946 and sign == '*' and num2 == 244:
print('946*244 = 230824')
if num1 == 946 and sign == '*' and num2 == 245:
print('946*245 = 231770')
if num1 == 946 and sign == '*' and num2 == 246:
print('946*246 = 232716')
if num1 == 946 and sign == '*' and num2 == 247:
print('946*247 = 233662')
if num1 == 946 and sign == '*' and num2 == 248:
print('946*248 = 234608')
if num1 == 946 and sign == '*' and num2 == 249:
print('946*249 = 235554')
if num1 == 947 and sign == '*' and num2 == 200:
print('947*200 = 189400')
if num1 == 947 and sign == '*' and num2 == 201:
print('947*201 = 190347')
if num1 == 947 and sign == '*' and num2 == 202:
print('947*202 = 191294')
if num1 == 947 and sign == '*' and num2 == 203:
print('947*203 = 192241')
if num1 == 947 and sign == '*' and num2 == 204:
print('947*204 = 193188')
if num1 == 947 and sign == '*' and num2 == 205:
print('947*205 = 194135')
if num1 == 947 and sign == '*' and num2 == 206:
print('947*206 = 195082')
if num1 == 947 and sign == '*' and num2 == 207:
print('947*207 = 196029')
if num1 == 947 and sign == '*' and num2 == 208:
print('947*208 = 196976')
if num1 == 947 and sign == '*' and num2 == 209:
print('947*209 = 197923')
if num1 == 947 and sign == '*' and num2 == 210:
print('947*210 = 198870')
if num1 == 947 and sign == '*' and num2 == 211:
print('947*211 = 199817')
if num1 == 947 and sign == '*' and num2 == 212:
print('947*212 = 200764')
if num1 == 947 and sign == '*' and num2 == 213:
print('947*213 = 201711')
if num1 == 947 and sign == '*' and num2 == 214:
print('947*214 = 202658')
if num1 == 947 and sign == '*' and num2 == 215:
print('947*215 = 203605')
if num1 == 947 and sign == '*' and num2 == 216:
print('947*216 = 204552')
if num1 == 947 and sign == '*' and num2 == 217:
print('947*217 = 205499')
if num1 == 947 and sign == '*' and num2 == 218:
print('947*218 = 206446')
if num1 == 947 and sign == '*' and num2 == 219:
print('947*219 = 207393')
if num1 == 947 and sign == '*' and num2 == 220:
print('947*220 = 208340')
if num1 == 947 and sign == '*' and num2 == 221:
print('947*221 = 209287')
if num1 == 947 and sign == '*' and num2 == 222:
print('947*222 = 210234')
if num1 == 947 and sign == '*' and num2 == 223:
print('947*223 = 211181')
if num1 == 947 and sign == '*' and num2 == 224:
print('947*224 = 212128')
if num1 == 947 and sign == '*' and num2 == 225:
print('947*225 = 213075')
if num1 == 947 and sign == '*' and num2 == 226:
print('947*226 = 214022')
if num1 == 947 and sign == '*' and num2 == 227:
print('947*227 = 214969')
if num1 == 947 and sign == '*' and num2 == 228:
print('947*228 = 215916')
if num1 == 947 and sign == '*' and num2 == 229:
print('947*229 = 216863')
if num1 == 947 and sign == '*' and num2 == 230:
print('947*230 = 217810')
if num1 == 947 and sign == '*' and num2 == 231:
print('947*231 = 218757')
if num1 == 947 and sign == '*' and num2 == 232:
print('947*232 = 219704')
if num1 == 947 and sign == '*' and num2 == 233:
print('947*233 = 220651')
if num1 == 947 and sign == '*' and num2 == 234:
print('947*234 = 221598')
if num1 == 947 and sign == '*' and num2 == 235:
print('947*235 = 222545')
if num1 == 947 and sign == '*' and num2 == 236:
print('947*236 = 223492')
if num1 == 947 and sign == '*' and num2 == 237:
print('947*237 = 224439')
if num1 == 947 and sign == '*' and num2 == 238:
print('947*238 = 225386')
if num1 == 947 and sign == '*' and num2 == 239:
print('947*239 = 226333')
if num1 == 947 and sign == '*' and num2 == 240:
print('947*240 = 227280')
if num1 == 947 and sign == '*' and num2 == 241:
print('947*241 = 228227')
if num1 == 947 and sign == '*' and num2 == 242:
print('947*242 = 229174')
if num1 == 947 and sign == '*' and num2 == 243:
print('947*243 = 230121')
if num1 == 947 and sign == '*' and num2 == 244:
print('947*244 = 231068')
if num1 == 947 and sign == '*' and num2 == 245:
print('947*245 = 232015')
if num1 == 947 and sign == '*' and num2 == 246:
print('947*246 = 232962')
if num1 == 947 and sign == '*' and num2 == 247:
print('947*247 = 233909')
if num1 == 947 and sign == '*' and num2 == 248:
print('947*248 = 234856')
if num1 == 947 and sign == '*' and num2 == 249:
print('947*249 = 235803')
if num1 == 948 and sign == '*' and num2 == 200:
print('948*200 = 189600')
if num1 == 948 and sign == '*' and num2 == 201:
print('948*201 = 190548')
if num1 == 948 and sign == '*' and num2 == 202:
print('948*202 = 191496')
if num1 == 948 and sign == '*' and num2 == 203:
print('948*203 = 192444')
if num1 == 948 and sign == '*' and num2 == 204:
print('948*204 = 193392')
if num1 == 948 and sign == '*' and num2 == 205:
print('948*205 = 194340')
if num1 == 948 and sign == '*' and num2 == 206:
print('948*206 = 195288')
if num1 == 948 and sign == '*' and num2 == 207:
print('948*207 = 196236')
if num1 == 948 and sign == '*' and num2 == 208:
print('948*208 = 197184')
if num1 == 948 and sign == '*' and num2 == 209:
print('948*209 = 198132')
if num1 == 948 and sign == '*' and num2 == 210:
print('948*210 = 199080')
if num1 == 948 and sign == '*' and num2 == 211:
print('948*211 = 200028')
if num1 == 948 and sign == '*' and num2 == 212:
print('948*212 = 200976')
if num1 == 948 and sign == '*' and num2 == 213:
print('948*213 = 201924')
if num1 == 948 and sign == '*' and num2 == 214:
print('948*214 = 202872')
if num1 == 948 and sign == '*' and num2 == 215:
print('948*215 = 203820')
if num1 == 948 and sign == '*' and num2 == 216:
print('948*216 = 204768')
if num1 == 948 and sign == '*' and num2 == 217:
print('948*217 = 205716')
if num1 == 948 and sign == '*' and num2 == 218:
print('948*218 = 206664')
if num1 == 948 and sign == '*' and num2 == 219:
print('948*219 = 207612')
if num1 == 948 and sign == '*' and num2 == 220:
print('948*220 = 208560')
if num1 == 948 and sign == '*' and num2 == 221:
print('948*221 = 209508')
if num1 == 948 and sign == '*' and num2 == 222:
print('948*222 = 210456')
if num1 == 948 and sign == '*' and num2 == 223:
print('948*223 = 211404')
if num1 == 948 and sign == '*' and num2 == 224:
print('948*224 = 212352')
if num1 == 948 and sign == '*' and num2 == 225:
print('948*225 = 213300')
if num1 == 948 and sign == '*' and num2 == 226:
print('948*226 = 214248')
if num1 == 948 and sign == '*' and num2 == 227:
print('948*227 = 215196')
if num1 == 948 and sign == '*' and num2 == 228:
print('948*228 = 216144')
if num1 == 948 and sign == '*' and num2 == 229:
print('948*229 = 217092')
if num1 == 948 and sign == '*' and num2 == 230:
print('948*230 = 218040')
if num1 == 948 and sign == '*' and num2 == 231:
print('948*231 = 218988')
if num1 == 948 and sign == '*' and num2 == 232:
print('948*232 = 219936')
if num1 == 948 and sign == '*' and num2 == 233:
print('948*233 = 220884')
if num1 == 948 and sign == '*' and num2 == 234:
print('948*234 = 221832')
if num1 == 948 and sign == '*' and num2 == 235:
print('948*235 = 222780')
if num1 == 948 and sign == '*' and num2 == 236:
print('948*236 = 223728')
if num1 == 948 and sign == '*' and num2 == 237:
print('948*237 = 224676')
if num1 == 948 and sign == '*' and num2 == 238:
print('948*238 = 225624')
if num1 == 948 and sign == '*' and num2 == 239:
print('948*239 = 226572')
if num1 == 948 and sign == '*' and num2 == 240:
print('948*240 = 227520')
if num1 == 948 and sign == '*' and num2 == 241:
print('948*241 = 228468')
if num1 == 948 and sign == '*' and num2 == 242:
print('948*242 = 229416')
if num1 == 948 and sign == '*' and num2 == 243:
print('948*243 = 230364')
if num1 == 948 and sign == '*' and num2 == 244:
print('948*244 = 231312')
if num1 == 948 and sign == '*' and num2 == 245:
print('948*245 = 232260')
if num1 == 948 and sign == '*' and num2 == 246:
print('948*246 = 233208')
if num1 == 948 and sign == '*' and num2 == 247:
print('948*247 = 234156')
if num1 == 948 and sign == '*' and num2 == 248:
print('948*248 = 235104')
if num1 == 948 and sign == '*' and num2 == 249:
print('948*249 = 236052')
if num1 == 949 and sign == '*' and num2 == 200:
print('949*200 = 189800')
if num1 == 949 and sign == '*' and num2 == 201:
print('949*201 = 190749')
if num1 == 949 and sign == '*' and num2 == 202:
print('949*202 = 191698')
if num1 == 949 and sign == '*' and num2 == 203:
print('949*203 = 192647')
if num1 == 949 and sign == '*' and num2 == 204:
print('949*204 = 193596')
if num1 == 949 and sign == '*' and num2 == 205:
print('949*205 = 194545')
if num1 == 949 and sign == '*' and num2 == 206:
print('949*206 = 195494')
if num1 == 949 and sign == '*' and num2 == 207:
print('949*207 = 196443')
if num1 == 949 and sign == '*' and num2 == 208:
print('949*208 = 197392')
if num1 == 949 and sign == '*' and num2 == 209:
print('949*209 = 198341')
if num1 == 949 and sign == '*' and num2 == 210:
print('949*210 = 199290')
if num1 == 949 and sign == '*' and num2 == 211:
print('949*211 = 200239')
if num1 == 949 and sign == '*' and num2 == 212:
print('949*212 = 201188')
if num1 == 949 and sign == '*' and num2 == 213:
print('949*213 = 202137')
if num1 == 949 and sign == '*' and num2 == 214:
print('949*214 = 203086')
if num1 == 949 and sign == '*' and num2 == 215:
print('949*215 = 204035')
if num1 == 949 and sign == '*' and num2 == 216:
print('949*216 = 204984')
if num1 == 949 and sign == '*' and num2 == 217:
print('949*217 = 205933')
if num1 == 949 and sign == '*' and num2 == 218:
print('949*218 = 206882')
if num1 == 949 and sign == '*' and num2 == 219:
print('949*219 = 207831')
if num1 == 949 and sign == '*' and num2 == 220:
print('949*220 = 208780')
if num1 == 949 and sign == '*' and num2 == 221:
print('949*221 = 209729')
if num1 == 949 and sign == '*' and num2 == 222:
print('949*222 = 210678')
if num1 == 949 and sign == '*' and num2 == 223:
print('949*223 = 211627')
if num1 == 949 and sign == '*' and num2 == 224:
print('949*224 = 212576')
if num1 == 949 and sign == '*' and num2 == 225:
print('949*225 = 213525')
if num1 == 949 and sign == '*' and num2 == 226:
print('949*226 = 214474')
if num1 == 949 and sign == '*' and num2 == 227:
print('949*227 = 215423')
if num1 == 949 and sign == '*' and num2 == 228:
print('949*228 = 216372')
if num1 == 949 and sign == '*' and num2 == 229:
print('949*229 = 217321')
if num1 == 949 and sign == '*' and num2 == 230:
print('949*230 = 218270')
if num1 == 949 and sign == '*' and num2 == 231:
print('949*231 = 219219')
if num1 == 949 and sign == '*' and num2 == 232:
print('949*232 = 220168')
if num1 == 949 and sign == '*' and num2 == 233:
print('949*233 = 221117')
if num1 == 949 and sign == '*' and num2 == 234:
print('949*234 = 222066')
if num1 == 949 and sign == '*' and num2 == 235:
print('949*235 = 223015')
if num1 == 949 and sign == '*' and num2 == 236:
print('949*236 = 223964')
if num1 == 949 and sign == '*' and num2 == 237:
print('949*237 = 224913')
if num1 == 949 and sign == '*' and num2 == 238:
print('949*238 = 225862')
if num1 == 949 and sign == '*' and num2 == 239:
print('949*239 = 226811')
if num1 == 949 and sign == '*' and num2 == 240:
print('949*240 = 227760')
if num1 == 949 and sign == '*' and num2 == 241:
print('949*241 = 228709')
if num1 == 949 and sign == '*' and num2 == 242:
print('949*242 = 229658')
if num1 == 949 and sign == '*' and num2 == 243:
print('949*243 = 230607')
if num1 == 949 and sign == '*' and num2 == 244:
print('949*244 = 231556')
if num1 == 949 and sign == '*' and num2 == 245:
print('949*245 = 232505')
if num1 == 949 and sign == '*' and num2 == 246:
print('949*246 = 233454')
if num1 == 949 and sign == '*' and num2 == 247:
print('949*247 = 234403')
if num1 == 949 and sign == '*' and num2 == 248:
print('949*248 = 235352')
if num1 == 949 and sign == '*' and num2 == 249:
print('949*249 = 236301')
|
[
"ivan.tarasenko@oracle.com"
] |
ivan.tarasenko@oracle.com
|
b3091967ca2295a42f480875d29c9828ca79c371
|
ee53b0262007b2f0db0fe15b2ad85f65fafa4e25
|
/Leetcode/594. Longest Harmonious Subsequence.py
|
ce388e0d7f6aef49ca1706ff198232b0568caac0
|
[] |
no_license
|
xiaohuanlin/Algorithms
|
bd48caacb08295fc5756acdac609be78e143a760
|
157cbaeeff74130e5105e58a6b4cdf66403a8a6f
|
refs/heads/master
| 2023-08-09T05:18:06.221485
| 2023-08-08T11:53:15
| 2023-08-08T11:53:15
| 131,491,056
| 1
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,487
|
py
|
'''
We define a harmonious array is an array where the difference between its maximum value and its minimum value is exactly 1.
Now, given an integer array, you need to find the length of its longest harmonious subsequence among all its possible subsequences.
Example 1:
Input: [1,3,2,2,5,2,3,7]
Output: 5
Explanation: The longest harmonious subsequence is [3,2,2,2,3].
Note: The length of the input array will not exceed 20,000.
'''
import unittest
class Solution:
def findLHS(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
from collections import Counter
if nums == []:
return 0
nums_dict = Counter(nums)
nums = sorted(nums)
pre = nums[0]
result = []
for num in nums:
if num != pre:
if num - pre == 1:
result.append((pre, num))
pre = num
return max((nums_dict[record[0]] + nums_dict[record[1]] for record in result), default=0)
class TestSolution(unittest.TestCase):
def test_case(self):
examples = (
([1,3,2,2,5,2,3,7], 5),
([], 0),
([0, 1], 2)
)
for first, second in examples:
self.assert_function(first, second)
def assert_function(self, first, second):
self.assertEqual(Solution().findLHS(first), second,
msg="first: {}; second: {}".format(first, second))
unittest.main()
|
[
"derek.xiao@loftk.us"
] |
derek.xiao@loftk.us
|
f56ec2e37f5245dcb7f44bca1b5244795ec53b15
|
3185dc605853fdaf942fd06e206225793b198638
|
/剑指offer/No33_二叉搜索树的后序遍历.py
|
3f91cd02bac6390558ce1f02fee1723e7f138edf
|
[] |
no_license
|
fank-cd/books_exercise_code
|
cb81ee8ec8167a5f5e3bfc58d3c1d6d931ca9286
|
1e8109adb82f741df1203658d4bf272f09a651b8
|
refs/heads/master
| 2021-07-11T01:15:11.980179
| 2020-06-29T04:01:53
| 2020-06-29T04:01:53
| 156,671,075
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,113
|
py
|
# 题目:输入一个整数数组,判断该数组是不是某二叉搜索
# 树的后序遍历结果。如果是则返回true,否则返回false。
# 假设输入的数组的任意两个数字都不相同。
# 后续遍历:左右根
# 思路:最后一位是根节点,比根节点小的是左子树,大的是右子树
def verify_sequence_of_BST(sequence):
if not isinstance(sequence, list) or len(sequence) == 0:
return False
root = sequence[-1] # 根节点
for index, element in enumerate(sequence): # 左子树
i = index
if element > root:
break
for element in sequence[i:]: # 判断右子树是否符合条件 即右子树大于根节点
if element < root:
return False
left = True
if i > 0:
left = verify_sequence_of_BST(sequence[:i])
right = True
if i < len(sequence) - 1:
right = verify_sequence_of_BST(sequence[i:-1])
return left and right
if __name__ == "__main__":
print(verify_sequence_of_BST([5, 7, 6, 9, 11, 10, 8]))
print(verify_sequence_of_BST([7, 4, 6, 5]))
|
[
"2464512446@qq.com"
] |
2464512446@qq.com
|
7b44dc1ca5547e96f889aa391f271ffc1af3a36b
|
f77b0f2cc709b9670e6b4dc7145a6ea5368585d2
|
/project/services/__init__.py
|
db39b8c13a29c94642f59828bc1ba56e2a186ac3
|
[] |
no_license
|
sgammon/StonerHub
|
45ccac6bd349200bbc75c494002c3ffeb082dcb8
|
a81f7fdd2c7118c6cea3c25ef9f53f272d27b0cc
|
refs/heads/master
| 2021-01-20T10:54:47.546251
| 2011-11-07T12:02:20
| 2011-11-07T12:02:20
| 2,664,437
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 209
|
py
|
# -*- coding: utf-8 -*-
from apptools import BaseService
import protorpc
from protorpc import remote
from protorpc import messages
from protorpc import message_types
class RemoteService(BaseService):
pass
|
[
"sgammon@bluestatedigital.com"
] |
sgammon@bluestatedigital.com
|
3081ad286ed7ba0b6f961edb970e6c68a711da17
|
43c5eafff817c3b130d8b4ec16c992d86208500c
|
/lino_avanti/lib/tickets/models.py
|
d831bc25bd9a0efddf3a6883c015383e6dfc9eaa
|
[
"BSD-2-Clause"
] |
permissive
|
khchine5/avanti
|
a8b9e9e75ac593a00b11ffa5bd5cfd00f06db6c0
|
5a5f9d1ddfa20ae0eb8fa33cb906daf78d9568b1
|
refs/heads/master
| 2021-01-11T17:29:16.012089
| 2018-08-23T05:46:52
| 2018-08-23T05:46:52
| 79,784,948
| 0
| 0
|
BSD-2-Clause
| 2018-08-19T12:28:12
| 2017-01-23T08:28:46
|
Python
|
UTF-8
|
Python
| false
| false
| 1,287
|
py
|
# -*- coding: UTF-8 -*-
# Copyright 2016-2017 Luc Saffre
# License: BSD (see file COPYING for details)
from lino_xl.lib.tickets.models import *
from lino.api import _
Ticket.hide_elements('closed')
# class Ticket(Ticket):
# class Meta(Ticket.Meta):
# app_label = 'tickets'
# abstract = dd.is_abstract_model(__name__, 'Ticket')
# client = dd.ForeignKey('avanti.Client', blank=True, null=True)
dd.update_field(
'tickets.Ticket', 'upgrade_notes', verbose_name=_("Solution"))
# dd.update_field(
# 'tickets.Ticket', 'state', default=TicketStates.todo.as_callable)
class TicketDetail(TicketDetail):
main = "general #history_tab more"
general = dd.Panel("""
summary:40 end_user
id:6 user:12
workflow_buttons
description
""", label=_("General"))
# history_tab = dd.Panel("""
# changes.ChangesByMaster:50 #stars.StarsByController:20
# """, label=_("History"), required_roles=dd.login_required(Triager))
more = dd.Panel("""
more1:60
upgrade_notes:20
""", label=_("More"), required_roles=dd.login_required(Triager))
more1 = """
created modified ticket_type:10
deadline site
state priority project
# standby feedback closed
"""
Tickets.detail_layout = TicketDetail()
|
[
"luc.saffre@gmail.com"
] |
luc.saffre@gmail.com
|
020682c50ddf142dd210fcb7c0c287518d456cfd
|
f62fd455e593a7ad203a5c268e23129473d968b6
|
/python-watcher-1.0.1/watcher/api/controllers/v1/__init__.py
|
16279551e21185f3c32f42077fb0cddb05a9009b
|
[
"Apache-2.0",
"CC-BY-3.0"
] |
permissive
|
MinbinGong/OpenStack-Ocata
|
5d17bcd47a46d48ff9e71e2055f667836174242f
|
8b7650128cfd2fdf5d6c8bc4613ac2e396fb2fb3
|
refs/heads/master
| 2021-06-23T05:24:37.799927
| 2017-08-14T04:33:05
| 2017-08-14T04:33:05
| 99,709,985
| 0
| 2
| null | 2020-07-22T22:06:22
| 2017-08-08T15:48:44
|
Python
|
UTF-8
|
Python
| false
| false
| 7,004
|
py
|
# -*- encoding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Version 1 of the Watcher API
NOTE: IN PROGRESS AND NOT FULLY IMPLEMENTED.
"""
import datetime
import pecan
from pecan import rest
import wsme
from wsme import types as wtypes
import wsmeext.pecan as wsme_pecan
from watcher.api.controllers import link
from watcher.api.controllers.v1 import action
from watcher.api.controllers.v1 import action_plan
from watcher.api.controllers.v1 import audit
from watcher.api.controllers.v1 import audit_template
from watcher.api.controllers.v1 import goal
from watcher.api.controllers.v1 import scoring_engine
from watcher.api.controllers.v1 import service
from watcher.api.controllers.v1 import strategy
class APIBase(wtypes.Base):
created_at = wsme.wsattr(datetime.datetime, readonly=True)
"""The time in UTC at which the object is created"""
updated_at = wsme.wsattr(datetime.datetime, readonly=True)
"""The time in UTC at which the object is updated"""
deleted_at = wsme.wsattr(datetime.datetime, readonly=True)
"""The time in UTC at which the object is deleted"""
def as_dict(self):
"""Render this object as a dict of its fields."""
return dict((k, getattr(self, k))
for k in self.fields
if hasattr(self, k) and
getattr(self, k) != wsme.Unset)
def unset_fields_except(self, except_list=None):
"""Unset fields so they don't appear in the message body.
:param except_list: A list of fields that won't be touched.
"""
if except_list is None:
except_list = []
for k in self.as_dict():
if k not in except_list:
setattr(self, k, wsme.Unset)
class MediaType(APIBase):
"""A media type representation."""
base = wtypes.text
type = wtypes.text
def __init__(self, base, type):
self.base = base
self.type = type
class V1(APIBase):
"""The representation of the version 1 of the API."""
id = wtypes.text
"""The ID of the version, also acts as the release number"""
media_types = [MediaType]
"""An array of supcontainersed media types for this version"""
audit_templates = [link.Link]
"""Links to the audit templates resource"""
audits = [link.Link]
"""Links to the audits resource"""
actions = [link.Link]
"""Links to the actions resource"""
action_plans = [link.Link]
"""Links to the action plans resource"""
scoring_engines = [link.Link]
"""Links to the Scoring Engines resource"""
services = [link.Link]
"""Links to the services resource"""
links = [link.Link]
"""Links that point to a specific URL for this version and documentation"""
@staticmethod
def convert():
v1 = V1()
v1.id = "v1"
v1.links = [link.Link.make_link('self', pecan.request.host_url,
'v1', '', bookmark=True),
link.Link.make_link('describedby',
'http://docs.openstack.org',
'developer/watcher/dev',
'api-spec-v1.html',
bookmark=True, type='text/html')
]
v1.media_types = [MediaType('application/json',
'application/vnd.openstack.watcher.v1+json')]
v1.audit_templates = [link.Link.make_link('self',
pecan.request.host_url,
'audit_templates', ''),
link.Link.make_link('bookmark',
pecan.request.host_url,
'audit_templates', '',
bookmark=True)
]
v1.audits = [link.Link.make_link('self', pecan.request.host_url,
'audits', ''),
link.Link.make_link('bookmark',
pecan.request.host_url,
'audits', '',
bookmark=True)
]
v1.actions = [link.Link.make_link('self', pecan.request.host_url,
'actions', ''),
link.Link.make_link('bookmark',
pecan.request.host_url,
'actions', '',
bookmark=True)
]
v1.action_plans = [link.Link.make_link(
'self', pecan.request.host_url, 'action_plans', ''),
link.Link.make_link('bookmark',
pecan.request.host_url,
'action_plans', '',
bookmark=True)
]
v1.scoring_engines = [link.Link.make_link(
'self', pecan.request.host_url, 'scoring_engines', ''),
link.Link.make_link('bookmark',
pecan.request.host_url,
'scoring_engines', '',
bookmark=True)
]
v1.services = [link.Link.make_link(
'self', pecan.request.host_url, 'services', ''),
link.Link.make_link('bookmark',
pecan.request.host_url,
'services', '',
bookmark=True)
]
return v1
class Controller(rest.RestController):
"""Version 1 API controller root."""
audits = audit.AuditsController()
audit_templates = audit_template.AuditTemplatesController()
actions = action.ActionsController()
action_plans = action_plan.ActionPlansController()
goals = goal.GoalsController()
scoring_engines = scoring_engine.ScoringEngineController()
services = service.ServicesController()
strategies = strategy.StrategiesController()
@wsme_pecan.wsexpose(V1)
def get(self):
# NOTE: The reason why convert() it's being called for every
# request is because we need to get the host url from
# the request object to make the links.
return V1.convert()
__all__ = ("Controller", )
|
[
"gongwayne@hotmail.com"
] |
gongwayne@hotmail.com
|
bc9c483d2db8d0a17d8feb2d6bf122ae4ee9d04a
|
3e2addcbdbccf688abfe3c653cc9bc8a57255fbb
|
/subword/get_vocab.py
|
7b71bf7f0609c1cf9f676db9398ec067465c9e32
|
[
"MIT"
] |
permissive
|
Germey/TextSummarization
|
3ffb01401051642c579d7ce6b169a41fca4b48d2
|
ffe221eea45838fbc2e12cd30e51fa48cf2ed070
|
refs/heads/master
| 2021-04-06T15:00:20.288387
| 2020-01-29T03:33:53
| 2020-01-29T03:33:53
| 124,391,071
| 1
| 1
| null | 2020-09-25T18:50:12
| 2018-03-08T12:52:25
|
Python
|
UTF-8
|
Python
| false
| false
| 320
|
py
|
#! /usr/bin/env python
from __future__ import print_function
import sys
from collections import Counter
c = Counter()
for line in sys.stdin:
for word in line.strip().split(' '):
if word:
c[word] += 1
for key,f in sorted(c.items(), key=lambda x: x[1], reverse=True):
print(key+" "+ str(f))
|
[
"cqc@cuiqingcai.com"
] |
cqc@cuiqingcai.com
|
75e25c09247507829e56bc9b21b111cf87fc5c63
|
6fe2d3c27c4cb498b7ad6d9411cc8fa69f4a38f8
|
/algorithms/algorithms-python/leetcode/Question_0050_Pow_x_n.py
|
e16603e02ca49194c4b65741a35009f0423d53c7
|
[] |
no_license
|
Lanceolata/code
|
aae54af632a212c878ce45b11dab919bba55bcb3
|
f7d5a7de27c3cc8a7a4abf63eab9ff9b21d512fb
|
refs/heads/master
| 2022-09-01T04:26:56.190829
| 2021-07-29T05:14:40
| 2021-07-29T05:14:40
| 87,202,214
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 467
|
py
|
#!/usr/bin/python
# coding: utf-8
class Solution(object):
def myPow(self, x, n):
"""
:type x: float
:type n: int
:rtype: float
"""
if n < 0:
return 1 / x * 1 / self.myPow(x, -(n + 1))
elif n == 0:
return 1.0
elif n == 1:
return float(x)
half = self.myPow(x, n >> 1)
half *= half
if n & 1 == 1:
half *= x
return half
|
[
"lanceolatayuan@gmail.com"
] |
lanceolatayuan@gmail.com
|
f5526ecba7d57516aec200d40fd864392e91210b
|
6437a3a4a31ab9ad233d6b2d985beb50ed50de23
|
/PythonistaAppTemplate/PythonistaKit.framework/pylib/site-packages/reportlab/lib/units.py
|
a7c5a26403519ebfbc9404e5677ea6143b7c68bb
|
[] |
no_license
|
sreyemnayr/jss-lost-mode-app
|
03ddc472decde3c17a11294d8ee48b02f83b71e7
|
3ff4ba6fb13f4f3a4a98bfc824eace137f6aabaa
|
refs/heads/master
| 2021-05-02T08:50:10.580091
| 2018-02-08T20:32:29
| 2018-02-08T20:32:29
| 120,813,623
| 1
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 8,660
|
py
|
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#Copyright ReportLab Europe Ltd. 2000-2012
#see license.txt for license details
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/lib/units.py
__version__=''' $Id$ '''
__doc__='''Defines inch, cm, mm etc as multiples of a point
You can now in user-friendly units by doing::
from reportlab.lib.units import inch
r = Rect(0, 0, 3 * inch, 6 * inch)
'''
inch = 72.0
cm = inch / 2.54
mm = cm * 0.1
pica = 12.0
def toLength(s):
'''convert a string to a length'''
try:
if s[-2:]=='cm': return float(s[:-2])*cm
if s[-2:]=='in': return float(s[:-2])*inch
if s[-2:]=='pt': return float(s[:-2])
if s[-1:]=='i': return float(s[:-1])*inch
if s[-2:]=='mm': return float(s[:-2])*mm
if s[-4:]=='pica': return float(s[:-4])*pica
return float(s)
except:
raise ValueError("Can't convert '%s' to length" % s)
|
[
"ryanmeyersweb@gmail.com"
] |
ryanmeyersweb@gmail.com
|
5773aa56ca5ed8607d8fc9025b01c63b5333b19c
|
199115509359d0849d9debb12db4eced6081dbed
|
/emotion_chatbot/speechtotext.py
|
6394875fcb7f550ba787d59f0aea71ef9c1de8ee
|
[] |
no_license
|
Sapphirine/202005-1-EmotionRecognitionsystem
|
1ea1df3ddcd43bf5b25e76b534c75778a8d8b921
|
ca4efb89ed762f16202476d39314051cf12a1b7e
|
refs/heads/master
| 2022-08-29T20:00:21.097719
| 2020-05-16T05:05:11
| 2020-05-16T05:05:11
| 264,354,185
| 0
| 1
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 808
|
py
|
import speech_recognition as sr
import pyaudio
import audioop
import os
import math
from os import system
import threading
def transcribe_audio():
with sr.Microphone() as source:
# read the audio data from the default microphone
r = sr.Recognizer()
#print("Chatbot : Hey! How can I help?")
print("recording ...")
audio_data = r.record(source, duration=3)
# convert speech to text
text = r.recognize_google(audio_data, show_all = True)
try:
text = text['alternative'][0]['transcript']
#print(text)
return text
except:
print("can't hear you, speak up")
pass
return None
# with open("recorded.wav", "wb") as f:
# f.write(audio_data.get_wav_data())
|
[
"noreply@github.com"
] |
Sapphirine.noreply@github.com
|
9836ce05d70663e0bb8deeacba460ad5decb951f
|
2a8a6327fb9a7ce8696aa15b197d5170661fb94f
|
/test/test_payment_debit_memo_application_unapply_request_type.py
|
c404017728cdfd5eacfaba72202a427d5f79d3e4
|
[] |
no_license
|
moderndatainc/zuora-client
|
8b88e05132ddf7e8c411a6d7dad8c0baabaa6dad
|
d50da49ce1b8465c76723496c2561a3b8ebdf07d
|
refs/heads/master
| 2021-09-21T19:17:34.752404
| 2018-08-29T23:24:07
| 2018-08-29T23:24:07
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 38,940
|
py
|
# coding: utf-8
"""
Zuora API Reference
# Introduction Welcome to the reference for the Zuora REST API! <a href=\"http://en.wikipedia.org/wiki/REST_API\" target=\"_blank\">REST</a> is a web-service protocol that lends itself to rapid development by using everyday HTTP and JSON technology. The Zuora REST API provides a broad set of operations and resources that: * Enable Web Storefront integration from your website. * Support self-service subscriber sign-ups and account management. * Process revenue schedules through custom revenue rule models. * Enable manipulation of most objects in the Zuora Object Model. Want to share your opinion on how our API works for you? <a href=\"https://community.zuora.com/t5/Developers/API-Feedback-Form/gpm-p/21399\" target=\"_blank\">Tell us how you feel </a>about using our API and what we can do to make it better. ## Access to the API If you have a Zuora tenant, you can access the Zuora REST API via one of the following endpoints: | Tenant | Base URL for REST Endpoints | |-------------------------|-------------------------| |US Production | https://rest.zuora.com | |US API Sandbox | https://rest.apisandbox.zuora.com| |US Performance Test | https://rest.pt1.zuora.com | |EU Production | https://rest.eu.zuora.com | |EU Sandbox | https://rest.sandbox.eu.zuora.com | The Production endpoint provides access to your live user data. API Sandbox tenants are a good place to test code without affecting real-world data. If you would like Zuora to provision an API Sandbox tenant for you, contact your Zuora representative for assistance. **Note:** If you have a tenant in the Production Copy Environment, submit a request at <a href=\"http://support.zuora.com/\" target=\"_blank\">Zuora Global Support</a> to enable the Zuora REST API in your tenant and obtain the base URL for REST endpoints. If you do not have a Zuora tenant, go to <a href=\"https://www.zuora.com/resource/zuora-test-drive\" target=\"_blank\">https://www.zuora.com/resource/zuora-test-drive</a> and sign up for a Production Test Drive tenant. The tenant comes with seed data, including a sample product catalog. # API Changelog You can find the <a href=\"https://community.zuora.com/t5/Developers/API-Changelog/gpm-p/18092\" target=\"_blank\">Changelog</a> of the API Reference in the Zuora Community. # Authentication ## OAuth v2.0 Zuora recommends that you use OAuth v2.0 to authenticate to the Zuora REST API. Currently, OAuth is not available in every environment. See [Zuora Testing Environments](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/D_Zuora_Environments) for more information. Zuora recommends you to create a dedicated API user with API write access on a tenant when authenticating via OAuth, and then create an OAuth client for this user. See <a href=\"https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/Manage_Users/Create_an_API_User\" target=\"_blank\">Create an API User</a> for how to do this. By creating a dedicated API user, you can control permissions of the API user without affecting other non-API users. If a user is deactivated, all of the user's OAuth clients will be automatically deactivated. Authenticating via OAuth requires the following steps: 1. Create a Client 2. Generate a Token 3. Make Authenticated Requests ### Create a Client You must first [create an OAuth client](https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/Manage_Users#Create_an_OAuth_Client_for_a_User) in the Zuora UI. To do this, you must be an administrator of your Zuora tenant. This is a one-time operation. You will be provided with a Client ID and a Client Secret. Please note this information down, as it will be required for the next step. **Note:** The OAuth client will be owned by a Zuora user account. If you want to perform PUT, POST, or DELETE operations using the OAuth client, the owner of the OAuth client must have a Platform role that includes the \"API Write Access\" permission. ### Generate a Token After creating a client, you must make a call to obtain a bearer token using the [Generate an OAuth token](https://www.zuora.com/developer/api-reference/#operation/createToken) operation. This operation requires the following parameters: - `client_id` - the Client ID displayed when you created the OAuth client in the previous step - `client_secret` - the Client Secret displayed when you created the OAuth client in the previous step - `grant_type` - must be set to `client_credentials` **Note**: The Client ID and Client Secret mentioned above were displayed when you created the OAuth Client in the prior step. The [Generate an OAuth token](https://www.zuora.com/developer/api-reference/#operation/createToken) response specifies how long the bearer token is valid for. Call [Generate an OAuth token](https://www.zuora.com/developer/api-reference/#operation/createToken) again to generate a new bearer token. ### Make Authenticated Requests To authenticate subsequent API requests, you must provide a valid bearer token in an HTTP header: `Authorization: Bearer {bearer_token}` If you have [Zuora Multi-entity](https://www.zuora.com/developer/api-reference/#tag/Entities) enabled, you need to set an additional header to specify the ID of the entity that you want to access. You can use the `scope` field in the [Generate an OAuth token](https://www.zuora.com/developer/api-reference/#operation/createToken) response to determine whether you need to specify an entity ID. If the `scope` field contains more than one entity ID, you must specify the ID of the entity that you want to access. For example, if the `scope` field contains `entity.1a2b7a37-3e7d-4cb3-b0e2-883de9e766cc` and `entity.c92ed977-510c-4c48-9b51-8d5e848671e9`, specify one of the following headers: - `Zuora-Entity-Ids: 1a2b7a37-3e7d-4cb3-b0e2-883de9e766cc` - `Zuora-Entity-Ids: c92ed977-510c-4c48-9b51-8d5e848671e9` **Note**: For a limited period of time, Zuora will accept the `entityId` header as an alternative to the `Zuora-Entity-Ids` header. If you choose to set the `entityId` header, you must remove all \"-\" characters from the entity ID in the `scope` field. If the `scope` field contains a single entity ID, you do not need to specify an entity ID. ## Other Supported Authentication Schemes Zuora continues to support the following additional legacy means of authentication: * Use username and password. Include authentication with each request in the header: * `apiAccessKeyId` * `apiSecretAccessKey` Zuora recommends that you create an API user specifically for making API calls. See <a href=\"https://knowledgecenter.zuora.com/CF_Users_and_Administrators/A_Administrator_Settings/Manage_Users/Create_an_API_User\" target=\"_blank\">Create an API User</a> for more information. * Use an authorization cookie. The cookie authorizes the user to make calls to the REST API for the duration specified in **Administration > Security Policies > Session timeout**. The cookie expiration time is reset with this duration after every call to the REST API. To obtain a cookie, call the [Connections](https://www.zuora.com/developer/api-reference/#tag/Connections) resource with the following API user information: * ID * Password * For CORS-enabled APIs only: Include a 'single-use' token in the request header, which re-authenticates the user with each request. See below for more details. ### Entity Id and Entity Name The `entityId` and `entityName` parameters are only used for [Zuora Multi-entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity \"Zuora Multi-entity\"). These are the legacy parameters that Zuora will only continue to support for a period of time. Zuora recommends you to use the `Zuora-Entity-Ids` parameter instead. The `entityId` and `entityName` parameters specify the Id and the [name of the entity](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/B_Introduction_to_Entity_and_Entity_Hierarchy#Name_and_Display_Name \"Introduction to Entity and Entity Hierarchy\") that you want to access, respectively. Note that you must have permission to access the entity. You can specify either the `entityId` or `entityName` parameter in the authentication to access and view an entity. * If both `entityId` and `entityName` are specified in the authentication, an error occurs. * If neither `entityId` nor `entityName` is specified in the authentication, you will log in to the entity in which your user account is created. To get the entity Id and entity name, you can use the GET Entities REST call. For more information, see [API User Authentication](https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Multi-entity/A_Overview_of_Multi-entity#API_User_Authentication \"API User Authentication\"). ### Token Authentication for CORS-Enabled APIs The CORS mechanism enables REST API calls to Zuora to be made directly from your customer's browser, with all credit card and security information transmitted directly to Zuora. This minimizes your PCI compliance burden, allows you to implement advanced validation on your payment forms, and makes your payment forms look just like any other part of your website. For security reasons, instead of using cookies, an API request via CORS uses **tokens** for authentication. The token method of authentication is only designed for use with requests that must originate from your customer's browser; **it should not be considered a replacement to the existing cookie authentication** mechanism. See [Zuora CORS REST](https://knowledgecenter.zuora.com/DC_Developers/REST_API/A_REST_basics/G_CORS_REST \"Zuora CORS REST\") for details on how CORS works and how you can begin to implement customer calls to the Zuora REST APIs. See [HMAC Signatures](https://www.zuora.com/developer/api-reference/#operation/POSTHMACSignature \"HMAC Signatures\") for details on the HMAC method that returns the authentication token. # Requests and Responses ## Request IDs As a general rule, when asked to supply a \"key\" for an account or subscription (accountKey, account-key, subscriptionKey, subscription-key), you can provide either the actual ID or the number of the entity. ## HTTP Request Body Most of the parameters and data accompanying your requests will be contained in the body of the HTTP request. The Zuora REST API accepts JSON in the HTTP request body. No other data format (e.g., XML) is supported. ### Data Type ([Actions](https://www.zuora.com/developer/api-reference/#tag/Actions) and CRUD operations only) We recommend that you do not specify the decimal values with quotation marks, commas, and spaces. Use characters of `+-0-9.eE`, for example, `5`, `1.9`, `-8.469`, and `7.7e2`. Also, Zuora does not convert currencies for decimal values. ## Testing a Request Use a third party client, such as [curl](https://curl.haxx.se \"curl\"), [Postman](https://www.getpostman.com \"Postman\"), or [Advanced REST Client](https://advancedrestclient.com \"Advanced REST Client\"), to test the Zuora REST API. You can test the Zuora REST API from the Zuora API Sandbox or Production tenants. If connecting to Production, bear in mind that you are working with your live production data, not sample data or test data. ## Testing with Credit Cards Sooner or later it will probably be necessary to test some transactions that involve credit cards. For suggestions on how to handle this, see [Going Live With Your Payment Gateway](https://knowledgecenter.zuora.com/CB_Billing/M_Payment_Gateways/C_Managing_Payment_Gateways/B_Going_Live_Payment_Gateways#Testing_with_Credit_Cards \"C_Zuora_User_Guides/A_Billing_and_Payments/M_Payment_Gateways/C_Managing_Payment_Gateways/B_Going_Live_Payment_Gateways#Testing_with_Credit_Cards\" ). ## Concurrent Request Limits Zuora enforces tenant-level concurrent request limits. See <a href=\"https://knowledgecenter.zuora.com/BB_Introducing_Z_Business/Policies/Concurrent_Request_Limits\" target=\"_blank\">Concurrent Request Limits</a> for more information. ## Timeout Limit If a request does not complete within 120 seconds, the request times out and Zuora returns a Gateway Timeout error. ## Error Handling Responses and error codes are detailed in [Responses and errors](https://knowledgecenter.zuora.com/DC_Developers/REST_API/A_REST_basics/3_Responses_and_errors \"Responses and errors\"). # Pagination When retrieving information (using GET methods), the optional `pageSize` query parameter sets the maximum number of rows to return in a response. The maximum is `40`; larger values are treated as `40`. If this value is empty or invalid, `pageSize` typically defaults to `10`. The default value for the maximum number of rows retrieved can be overridden at the method level. If more rows are available, the response will include a `nextPage` element, which contains a URL for requesting the next page. If this value is not provided, no more rows are available. No \"previous page\" element is explicitly provided; to support backward paging, use the previous call. ## Array Size For data items that are not paginated, the REST API supports arrays of up to 300 rows. Thus, for instance, repeated pagination can retrieve thousands of customer accounts, but within any account an array of no more than 300 rate plans is returned. # API Versions The Zuora REST API are version controlled. Versioning ensures that Zuora REST API changes are backward compatible. Zuora uses a major and minor version nomenclature to manage changes. By specifying a version in a REST request, you can get expected responses regardless of future changes to the API. ## Major Version The major version number of the REST API appears in the REST URL. Currently, Zuora only supports the **v1** major version. For example, `POST https://rest.zuora.com/v1/subscriptions`. ## Minor Version Zuora uses minor versions for the REST API to control small changes. For example, a field in a REST method is deprecated and a new field is used to replace it. Some fields in the REST methods are supported as of minor versions. If a field is not noted with a minor version, this field is available for all minor versions. If a field is noted with a minor version, this field is in version control. You must specify the supported minor version in the request header to process without an error. If a field is in version control, it is either with a minimum minor version or a maximum minor version, or both of them. You can only use this field with the minor version between the minimum and the maximum minor versions. For example, the `invoiceCollect` field in the POST Subscription method is in version control and its maximum minor version is 189.0. You can only use this field with the minor version 189.0 or earlier. If you specify a version number in the request header that is not supported, Zuora will use the minimum minor version of the REST API. In our REST API documentation, if a field or feature requires a minor version number, we note that in the field description. You only need to specify the version number when you use the fields require a minor version. To specify the minor version, set the `zuora-version` parameter to the minor version number in the request header for the request call. For example, the `collect` field is in 196.0 minor version. If you want to use this field for the POST Subscription method, set the `zuora-version` parameter to `196.0` in the request header. The `zuora-version` parameter is case sensitive. For all the REST API fields, by default, if the minor version is not specified in the request header, Zuora will use the minimum minor version of the REST API to avoid breaking your integration. ### Minor Version History The supported minor versions are not serial. This section documents the changes made to each Zuora REST API minor version. The following table lists the supported versions and the fields that have a Zuora REST API minor version. | Fields | Minor Version | REST Methods | Description | |:--------|:--------|:--------|:--------| | invoiceCollect | 189.0 and earlier | [Create Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_Subscription \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_RenewSubscription \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_CancelSubscription \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_SuspendSubscription \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_ResumeSubscription \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-reference/#operation/POST_Account \"Create Account\")|Generates an invoice and collects a payment for a subscription. | | collect | 196.0 and later | [Create Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_Subscription \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_RenewSubscription \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_CancelSubscription \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_SuspendSubscription \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_ResumeSubscription \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-reference/#operation/POST_Account \"Create Account\")|Collects an automatic payment for a subscription. | | invoice | 196.0 and 207.0| [Create Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_Subscription \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_RenewSubscription \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_CancelSubscription \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_SuspendSubscription \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_ResumeSubscription \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-reference/#operation/POST_Account \"Create Account\")|Generates an invoice for a subscription. | | invoiceTargetDate | 196.0 and earlier | [Preview Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_SubscriptionPreview \"Preview Subscription\") |Date through which charges are calculated on the invoice, as `yyyy-mm-dd`. | | invoiceTargetDate | 207.0 and earlier | [Create Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_Subscription \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_RenewSubscription \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_CancelSubscription \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_SuspendSubscription \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_ResumeSubscription \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-reference/#operation/POST_Account \"Create Account\")|Date through which charges are calculated on the invoice, as `yyyy-mm-dd`. | | targetDate | 207.0 and later | [Preview Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_SubscriptionPreview \"Preview Subscription\") |Date through which charges are calculated on the invoice, as `yyyy-mm-dd`. | | targetDate | 211.0 and later | [Create Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_Subscription \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_RenewSubscription \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_CancelSubscription \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_SuspendSubscription \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_ResumeSubscription \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-reference/#operation/POST_Account \"Create Account\")|Date through which charges are calculated on the invoice, as `yyyy-mm-dd`. | | includeExisting DraftInvoiceItems | 196.0 and earlier| [Preview Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_SubscriptionPreview \"Preview Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\") | Specifies whether to include draft invoice items in subscription previews. Specify it to be `true` (default) to include draft invoice items in the preview result. Specify it to be `false` to excludes draft invoice items in the preview result. | | includeExisting DraftDocItems | 207.0 and later | [Preview Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_SubscriptionPreview \"Preview Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\") | Specifies whether to include draft invoice items in subscription previews. Specify it to be `true` (default) to include draft invoice items in the preview result. Specify it to be `false` to excludes draft invoice items in the preview result. | | previewType | 196.0 and earlier| [Preview Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_SubscriptionPreview \"Preview Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\") | The type of preview you will receive. The possible values are `InvoiceItem`(default), `ChargeMetrics`, and `InvoiceItemChargeMetrics`. | | previewType | 207.0 and later | [Preview Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_SubscriptionPreview \"Preview Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\") | The type of preview you will receive. The possible values are `LegalDoc`(default), `ChargeMetrics`, and `LegalDocChargeMetrics`. | | runBilling | 211.0 and later | [Create Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_Subscription \"Create Subscription\"); [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\"); [Renew Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_RenewSubscription \"Renew Subscription\"); [Cancel Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_CancelSubscription \"Cancel Subscription\"); [Suspend Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_SuspendSubscription \"Suspend Subscription\"); [Resume Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_ResumeSubscription \"Resume Subscription\"); [Create Account](https://www.zuora.com/developer/api-reference/#operation/POST_Account \"Create Account\")|Generates an invoice or credit memo for a subscription. **Note:** Credit memos are only available if you have the Invoice Settlement feature enabled. | | invoiceDate | 214.0 and earlier | [Invoice and Collect](https://www.zuora.com/developer/api-reference/#operation/POST_TransactionInvoicePayment \"Invoice and Collect\") |Date that should appear on the invoice being generated, as `yyyy-mm-dd`. | | invoiceTargetDate | 214.0 and earlier | [Invoice and Collect](https://www.zuora.com/developer/api-reference/#operation/POST_TransactionInvoicePayment \"Invoice and Collect\") |Date through which to calculate charges on this account if an invoice is generated, as `yyyy-mm-dd`. | | documentDate | 215.0 and later | [Invoice and Collect](https://www.zuora.com/developer/api-reference/#operation/POST_TransactionInvoicePayment \"Invoice and Collect\") |Date that should appear on the invoice and credit memo being generated, as `yyyy-mm-dd`. | | targetDate | 215.0 and later | [Invoice and Collect](https://www.zuora.com/developer/api-reference/#operation/POST_TransactionInvoicePayment \"Invoice and Collect\") |Date through which to calculate charges on this account if an invoice or a credit memo is generated, as `yyyy-mm-dd`. | | memoItemAmount | 223.0 and earlier | [Create credit memo from charge](https://www.zuora.com/developer/api-reference/#operation/POST_CreditMemoFromPrpc \"Create credit memo from charge\"); [Create debit memo from charge](https://www.zuora.com/developer/api-reference/#operation/POST_DebitMemoFromPrpc \"Create debit memo from charge\") | Amount of the memo item. | | amount | 224.0 and later | [Create credit memo from charge](https://www.zuora.com/developer/api-reference/#operation/POST_CreditMemoFromPrpc \"Create credit memo from charge\"); [Create debit memo from charge](https://www.zuora.com/developer/api-reference/#operation/POST_DebitMemoFromPrpc \"Create debit memo from charge\") | Amount of the memo item. | | subscriptionNumbers | 222.4 and earlier | [Create order](https://www.zuora.com/developer/api-reference/#operation/POST_Order \"Create order\") | Container for the subscription numbers of the subscriptions in an order. | | subscriptions | 223.0 and later | [Create order](https://www.zuora.com/developer/api-reference/#operation/POST_Order \"Create order\") | Container for the subscription numbers and statuses in an order. | #### Version 207.0 and Later The response structure of the [Preview Subscription](https://www.zuora.com/developer/api-reference/#operation/POST_SubscriptionPreview \"Preview Subscription\") and [Update Subscription](https://www.zuora.com/developer/api-reference/#operation/PUT_Subscription \"Update Subscription\") methods are changed. The following invoice related response fields are moved to the invoice container: * amount * amountWithoutTax * taxAmount * invoiceItems * targetDate * chargeMetrics # Zuora Object Model The following diagram presents a high-level view of the key Zuora objects. Click the image to open it in a new tab to resize it. <a href=\"https://www.zuora.com/wp-content/uploads/2017/01/ZuoraERD.jpeg\" target=\"_blank\"><img src=\"https://www.zuora.com/wp-content/uploads/2017/01/ZuoraERD.jpeg\" alt=\"Zuora Object Model Diagram\"></a> See the following articles for information about other parts of the Zuora business object model: * <a href=\"https://knowledgecenter.zuora.com/CB_Billing/Invoice_Settlement/D_Invoice_Settlement_Object_Model\" target=\"_blank\">Invoice Settlement Object Model</a> * <a href=\"https://knowledgecenter.zuora.com/BC_Subscription_Management/Orders/BA_Orders_Object_Model\" target=\"_blank\">Orders Object Model</a> You can use the [Describe object](https://www.zuora.com/developer/api-reference/#operation/GET_Describe) operation to list the fields of each Zuora object that is available in your tenant. When you call the operation, you must specify the API name of the Zuora object. The following table provides the API name of each Zuora object: | Object | API Name | |-----------------------------------------------|--------------------------------------------| | Account | `Account` | | Accounting Code | `AccountingCode` | | Accounting Period | `AccountingPeriod` | | Amendment | `Amendment` | | Application Group | `ApplicationGroup` | | Billing Run | <p>`BillingRun`</p><p>**Note:** The API name of this object is `BillingRun` in the [Describe object](https://www.zuora.com/developer/api-reference/#operation/GET_Describe) operation and Export ZOQL queries only. Otherwise, the API name of this object is `BillRun`.</p> | | Contact | `Contact` | | Contact Snapshot | `ContactSnapshot` | | Credit Balance Adjustment | `CreditBalanceAdjustment` | | Credit Memo | `CreditMemo` | | Credit Memo Application | `CreditMemoApplication` | | Credit Memo Application Item | `CreditMemoApplicationItem` | | Credit Memo Item | `CreditMemoItem` | | Credit Memo Part | `CreditMemoPart` | | Credit Memo Part Item | `CreditMemoPartItem` | | Credit Taxation Item | `CreditTaxationItem` | | Custom Exchange Rate | `FXCustomRate` | | Debit Memo | `DebitMemo` | | Debit Memo Item | `DebitMemoItem` | | Debit Taxation Item | `DebitTaxationItem` | | Discount Applied Metrics | `DiscountAppliedMetrics` | | Entity | `Tenant` | | Gateway Reconciliation Event | `PaymentGatewayReconciliationEventLog` | | Gateway Reconciliation Job | `PaymentReconciliationJob` | | Gateway Reconciliation Log | `PaymentReconciliationLog` | | Invoice | `Invoice` | | Invoice Adjustment | `InvoiceAdjustment` | | Invoice Item | `InvoiceItem` | | Invoice Item Adjustment | `InvoiceItemAdjustment` | | Invoice Payment | `InvoicePayment` | | Journal Entry | `JournalEntry` | | Journal Entry Item | `JournalEntryItem` | | Journal Run | `JournalRun` | | Order | `Order` | | Order Action | `OrderAction` | | Order ELP | `OrderElp` | | Order Item | `OrderItem` | | Order MRR | `OrderMrr` | | Order Quantity | `OrderQuantity` | | Order TCB | `OrderTcb` | | Order TCV | `OrderTcv` | | Payment | `Payment` | | Payment Application | `PaymentApplication` | | Payment Application Item | `PaymentApplicationItem` | | Payment Method | `PaymentMethod` | | Payment Method Snapshot | `PaymentMethodSnapshot` | | Payment Method Transaction Log | `PaymentMethodTransactionLog` | | Payment Method Update | `UpdaterDetail` | | Payment Part | `PaymentPart` | | Payment Part Item | `PaymentPartItem` | | Payment Run | `PaymentRun` | | Payment Transaction Log | `PaymentTransactionLog` | | Processed Usage | `ProcessedUsage` | | Product | `Product` | | Product Rate Plan | `ProductRatePlan` | | Product Rate Plan Charge | `ProductRatePlanCharge` | | Product Rate Plan Charge Tier | `ProductRatePlanChargeTier` | | Rate Plan | `RatePlan` | | Rate Plan Charge | `RatePlanCharge` | | Rate Plan Charge Tier | `RatePlanChargeTier` | | Refund | `Refund` | | Refund Application | `RefundApplication` | | Refund Application Item | `RefundApplicationItem` | | Refund Invoice Payment | `RefundInvoicePayment` | | Refund Part | `RefundPart` | | Refund Part Item | `RefundPartItem` | | Refund Transaction Log | `RefundTransactionLog` | | Revenue Charge Summary | `RevenueChargeSummary` | | Revenue Charge Summary Item | `RevenueChargeSummaryItem` | | Revenue Event | `RevenueEvent` | | Revenue Event Credit Memo Item | `RevenueEventCreditMemoItem` | | Revenue Event Debit Memo Item | `RevenueEventDebitMemoItem` | | Revenue Event Invoice Item | `RevenueEventInvoiceItem` | | Revenue Event Invoice Item Adjustment | `RevenueEventInvoiceItemAdjustment` | | Revenue Event Item | `RevenueEventItem` | | Revenue Event Item Credit Memo Item | `RevenueEventItemCreditMemoItem` | | Revenue Event Item Debit Memo Item | `RevenueEventItemDebitMemoItem` | | Revenue Event Item Invoice Item | `RevenueEventItemInvoiceItem` | | Revenue Event Item Invoice Item Adjustment | `RevenueEventItemInvoiceItemAdjustment` | | Revenue Event Type | `RevenueEventType` | | Revenue Schedule | `RevenueSchedule` | | Revenue Schedule Credit Memo Item | `RevenueScheduleCreditMemoItem` | | Revenue Schedule Debit Memo Item | `RevenueScheduleDebitMemoItem` | | Revenue Schedule Invoice Item | `RevenueScheduleInvoiceItem` | | Revenue Schedule Invoice Item Adjustment | `RevenueScheduleInvoiceItemAdjustment` | | Revenue Schedule Item | `RevenueScheduleItem` | | Revenue Schedule Item Credit Memo Item | `RevenueScheduleItemCreditMemoItem` | | Revenue Schedule Item Debit Memo Item | `RevenueScheduleItemDebitMemoItem` | | Revenue Schedule Item Invoice Item | `RevenueScheduleItemInvoiceItem` | | Revenue Schedule Item Invoice Item Adjustment | `RevenueScheduleItemInvoiceItemAdjustment` | | Subscription | `Subscription` | | Taxable Item Snapshot | `TaxableItemSnapshot` | | Taxation Item | `TaxationItem` | | Updater Batch | `UpdaterBatch` | | Usage | `Usage` | # noqa: E501
OpenAPI spec version: 2018-08-23
Contact: docs@zuora.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import zuora_client
from zuora_client.models.payment_debit_memo_application_unapply_request_type import PaymentDebitMemoApplicationUnapplyRequestType # noqa: E501
from zuora_client.rest import ApiException
class TestPaymentDebitMemoApplicationUnapplyRequestType(unittest.TestCase):
"""PaymentDebitMemoApplicationUnapplyRequestType unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testPaymentDebitMemoApplicationUnapplyRequestType(self):
"""Test PaymentDebitMemoApplicationUnapplyRequestType"""
# FIXME: construct object with mandatory attributes with example values
# model = zuora_client.models.payment_debit_memo_application_unapply_request_type.PaymentDebitMemoApplicationUnapplyRequestType() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
|
[
"jairo.velasco@alertlogic.com"
] |
jairo.velasco@alertlogic.com
|
e90d3914edcfc23c1e31112856f99c98b766538b
|
a450d455fc1da6f3a89eebb562cc2fb28784b129
|
/docs/conf.py
|
36714ac69f1de680f841bad04edc215e5a835504
|
[
"MIT"
] |
permissive
|
hawkthorne/bearweb
|
6c62e0143ab6a19bee6cf340dfec81664f201dcb
|
1533acd9c7610d9ea01e8413853cca70843b9d63
|
refs/heads/master
| 2021-05-28T05:54:55.533462
| 2014-03-16T23:12:01
| 2014-03-16T23:12:01
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 7,778
|
py
|
# -*- coding: utf-8 -*-
#
# stackmachine documentation build configuration file, created by
# sphinx-quickstart on Sun Feb 17 11:46:20 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys, os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = []
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# The suffix of source filenames.
source_suffix = '.rst'
# The encoding of source files.
#source_encoding = 'utf-8-sig'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'stackmachine'
copyright = u'2013, ChangeMyName'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '0.1'
# The full version, including alpha/beta/rc tags.
release = '0.1'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#language = None
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used:
#today = ''
# Else, today_fmt is used as the format for a strftime call.
#today_fmt = '%B %d, %Y'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']
# The reST default role (used for this markup: `text`) to use for all documents.
#default_role = None
# If true, '()' will be appended to :func: etc. cross-reference text.
#add_function_parentheses = True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
#add_module_names = True
# If true, sectionauthor and moduleauthor directives will be shown in the
# output. They are ignored by default.
#show_authors = False
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# A list of ignored prefixes for module index sorting.
#modindex_common_prefix = []
# -- Options for HTML output ---------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'default'
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
#html_title = None
# A shorter title for the navigation bar. Default is the same as html_title.
#html_short_title = None
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels large.
#html_favicon = None
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
#html_last_updated_fmt = '%b %d, %Y'
# If true, SmartyPants will be used to convert quotes and dashes to
# typographically correct entities.
#html_use_smartypants = True
# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
# Additional templates that should be rendered to pages, maps page names to
# template names.
#html_additional_pages = {}
# If false, no module index is generated.
#html_domain_indices = True
# If false, no index is generated.
#html_use_index = True
# If true, the index is split into individual pages for each letter.
#html_split_index = False
# If true, links to the reST sources are added to the pages.
#html_show_sourcelink = True
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#html_show_sphinx = True
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
#html_show_copyright = True
# If true, an OpenSearch description file will be output, and all pages will
# contain a <link> tag referring to it. The value of this option must be the
# base URL from which the finished HTML is served.
#html_use_opensearch = ''
# This is the file name suffix for HTML files (e.g. ".xhtml").
#html_file_suffix = None
# Output file base name for HTML help builder.
htmlhelp_basename = 'stackmachinedoc'
# -- Options for LaTeX output --------------------------------------------------
latex_elements = {
# The paper size ('letterpaper' or 'a4paper').
#'papersize': 'letterpaper',
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
}
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [
('index', 'stackmachine.tex', u'stackmachine Documentation',
u'ChangeToMyName', 'manual'),
]
# The name of an image file (relative to this directory) to place at the top of
# the title page.
#latex_logo = None
# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
#latex_use_parts = False
# If true, show page references after internal links.
#latex_show_pagerefs = False
# If true, show URL addresses after external links.
#latex_show_urls = False
# Documents to append as an appendix to all manuals.
#latex_appendices = []
# If false, no module index is generated.
#latex_domain_indices = True
# -- Options for manual page output --------------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'stackmachine', u'stackmachine Documentation',
[u'ChangeToMyName'], 1)
]
# If true, show URL addresses after external links.
#man_show_urls = False
# -- Options for Texinfo output ------------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
('index', 'stackmachine', u'stackmachine Documentation',
u'ChangeToMyName', 'stackmachine', 'One line description of project.',
'Miscellaneous'),
]
# Documents to append as an appendix to all manuals.
#texinfo_appendices = []
# If false, no module index is generated.
#texinfo_domain_indices = True
# How to display URL addresses: 'footnote', 'no', or 'inline'.
#texinfo_show_urls = 'footnote'
|
[
"kyle@kyleconroy.com"
] |
kyle@kyleconroy.com
|
dfdafec9f08b465c99582efafef3c5f0429c748a
|
70c10c5eeeb038d87841289f109775a9ec5ddc9b
|
/Day8/thread_lock.py
|
ab3ea522b2969168d19431f244cdd1e35f9d5c6c
|
[] |
no_license
|
chenshuo666/pythonWell
|
a68fdae5fab891dd235c7656892ac85eaf9163c5
|
ae4cd795c5cf925830b5f7df8c7668bec5b2904c
|
refs/heads/master
| 2022-12-09T21:35:00.343591
| 2018-09-10T06:04:45
| 2018-09-10T06:04:45
| 130,060,002
| 1
| 0
| null | 2022-12-08T00:44:33
| 2018-04-18T12:38:02
|
JavaScript
|
UTF-8
|
Python
| false
| false
| 431
|
py
|
#!/usr/bin/python
#-*- coding:utf-8 -*-
# Author:Sebastian Williams
import time
import threading
lock=threading.RLock()
num=0
def run(n):
lock.acquire()
global num
num+=1
lock.release()
t_obj=[]
for i in range(50):
t=threading.Thread(target=run,args=("t-%s"%i,))
t.setDaemon(True) #将当前线程设置成守护线程
t.start()
t_obj.append(t)
for t in t_obj:
t.join()
print("num:",num)
|
[
"929387146@qq.com"
] |
929387146@qq.com
|
70f10f1add937c50d07e5e8235e15a6fb0fa56cf
|
d771ec4626a32f6122b155d24eba1320db230fbd
|
/web_frameworks/django/mysite/serializer_relations/apps.py
|
7ec3af488ec96ebd4370ff3a54dd351853e5a9c1
|
[] |
no_license
|
axu4github/Templates
|
9351983f8f7f65b9b2ca354909ce0d2198d23120
|
37e7a7182f14c98eb5cbc1202af3fd74df2bc297
|
refs/heads/master
| 2022-12-11T12:26:19.213955
| 2019-03-03T04:10:08
| 2019-03-03T04:10:08
| 154,787,446
| 0
| 0
| null | 2022-12-08T01:17:45
| 2018-10-26T06:27:54
|
Python
|
UTF-8
|
Python
| false
| false
| 114
|
py
|
from django.apps import AppConfig
class SerializerRelationsConfig(AppConfig):
name = 'serializer_relations'
|
[
"axu.home@gmail.com"
] |
axu.home@gmail.com
|
e8f740e26272bafd38b053bb5e8e1737f5b16837
|
d62863d049c0206bfa744ca4c9e886030bfce1ab
|
/apps/sw_shop/sw_order/views.py
|
2eb7cbc57083cb103a5b7c6b5f867553d8a37e5f
|
[] |
no_license
|
jurgeon018/box
|
51738b99e640202936ed72357d3c67d2517e589b
|
50b84a0afa73fab85a00eef54194f3c126d15397
|
refs/heads/master
| 2021-07-17T13:37:08.665292
| 2020-10-15T09:50:33
| 2020-10-15T09:50:33
| 232,013,297
| 0
| 1
| null | 2020-03-27T02:16:44
| 2020-01-06T03:01:34
|
Python
|
UTF-8
|
Python
| false
| false
| 937
|
py
|
from django.shortcuts import render, redirect
from .models import Payment, Order
from box.core.sw_currency.models import Currency
from django.http import JsonResponse
def liqpay_callback(request):
try:
from box.apps.sw_payment.liqpay.utils import create_liqpay_transaction
except:
# except RuntimeError:
from sw_liqpay.utils import create_liqpay_transaction
# if request.method == 'GET':
# return JsonResponse({'Hello':'Hello'})
print('order liqpay_callback')
form = create_liqpay_transaction(request)
transaction = form.instance
print("transaction:", transaction)
print("transaction.order_id:", transaction.order_id)
order = Order.objects.get(id=transaction.order_id)
payment = Payment.objects.create(
order=order,
amount=transaction.amount,
currency=Currency.objects.get(code=transaction.currency)
)
order.make_order(request)
return redirect('thank_you')
|
[
"jurgeon018@gmail.com"
] |
jurgeon018@gmail.com
|
4609643ace645f4f97139036b9c90ce0a8d8ba63
|
a073e730e32b75f5d4e02f6bcf8defcaa9c5da97
|
/backend/fashion_candy_18064/settings.py
|
bba67dbee4f4084134baf664a6af612e2792240d
|
[] |
no_license
|
crowdbotics-apps/fashion-candy-18064
|
a962d38c9cbc27a90428dda3f962edbb32b5e427
|
87b8ef7ce8c9e29c8b543cfc5b0a0af8191f52a8
|
refs/heads/master
| 2022-10-21T06:00:25.083275
| 2020-06-13T01:15:59
| 2020-06-13T01:15:59
| 271,917,534
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 5,884
|
py
|
"""
Django settings for fashion_candy_18064 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
import environ
env = environ.Env()
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = env.bool("DEBUG", default=False)
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = env.str("SECRET_KEY")
ALLOWED_HOSTS = env.list("HOST", default=["*"])
SITE_ID = 1
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
SECURE_SSL_REDIRECT = env.bool("SECURE_REDIRECT", default=False)
# Application definition
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"django.contrib.sites",
"task",
"task_profile",
"tasker_business",
"location",
"wallet",
"task_category",
"chat",
"chat_user_profile",
]
LOCAL_APPS = [
"home",
"users.apps.UsersConfig",
]
THIRD_PARTY_APPS = [
"rest_framework",
"rest_framework.authtoken",
"rest_auth",
"rest_auth.registration",
"bootstrap4",
"allauth",
"allauth.account",
"allauth.socialaccount",
"allauth.socialaccount.providers.google",
"django_extensions",
"drf_yasg",
# start fcm_django push notifications
"fcm_django",
# end fcm_django push notifications
]
INSTALLED_APPS += LOCAL_APPS + THIRD_PARTY_APPS
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware",
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]
ROOT_URLCONF = "fashion_candy_18064.urls"
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [],
"APP_DIRS": True,
"OPTIONS": {
"context_processors": [
"django.template.context_processors.debug",
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
],
},
},
]
WSGI_APPLICATION = "fashion_candy_18064.wsgi.application"
# Database
# https://docs.djangoproject.com/en/2.2/ref/settings/#databases
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": os.path.join(BASE_DIR, "db.sqlite3"),
}
}
if env.str("DATABASE_URL", default=None):
DATABASES = {"default": env.db()}
# Password validation
# https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
AUTH_PASSWORD_VALIDATORS = [
{
"NAME": "django.contrib.auth.password_validation.UserAttributeSimilarityValidator",
},
{"NAME": "django.contrib.auth.password_validation.MinimumLengthValidator",},
{"NAME": "django.contrib.auth.password_validation.CommonPasswordValidator",},
{"NAME": "django.contrib.auth.password_validation.NumericPasswordValidator",},
]
# Internationalization
# https://docs.djangoproject.com/en/2.2/topics/i18n/
LANGUAGE_CODE = "en-us"
TIME_ZONE = "UTC"
USE_I18N = True
USE_L10N = True
USE_TZ = True
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/2.2/howto/static-files/
STATIC_URL = "/static/"
MIDDLEWARE += ["whitenoise.middleware.WhiteNoiseMiddleware"]
AUTHENTICATION_BACKENDS = (
"django.contrib.auth.backends.ModelBackend",
"allauth.account.auth_backends.AuthenticationBackend",
)
STATIC_ROOT = os.path.join(BASE_DIR, "staticfiles")
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
# allauth / users
ACCOUNT_EMAIL_REQUIRED = True
ACCOUNT_AUTHENTICATION_METHOD = "email"
ACCOUNT_USERNAME_REQUIRED = False
ACCOUNT_EMAIL_VERIFICATION = "mandatory"
ACCOUNT_CONFIRM_EMAIL_ON_GET = True
ACCOUNT_LOGIN_ON_EMAIL_CONFIRMATION = True
ACCOUNT_UNIQUE_EMAIL = True
LOGIN_REDIRECT_URL = "users:redirect"
ACCOUNT_ADAPTER = "users.adapters.AccountAdapter"
SOCIALACCOUNT_ADAPTER = "users.adapters.SocialAccountAdapter"
ACCOUNT_ALLOW_REGISTRATION = env.bool("ACCOUNT_ALLOW_REGISTRATION", True)
SOCIALACCOUNT_ALLOW_REGISTRATION = env.bool("SOCIALACCOUNT_ALLOW_REGISTRATION", True)
REST_AUTH_SERIALIZERS = {
# Replace password reset serializer to fix 500 error
"PASSWORD_RESET_SERIALIZER": "home.api.v1.serializers.PasswordSerializer",
}
REST_AUTH_REGISTER_SERIALIZERS = {
# Use custom serializer that has no username and matches web signup
"REGISTER_SERIALIZER": "home.api.v1.serializers.SignupSerializer",
}
# Custom user model
AUTH_USER_MODEL = "users.User"
EMAIL_HOST = env.str("EMAIL_HOST", "smtp.sendgrid.net")
EMAIL_HOST_USER = env.str("SENDGRID_USERNAME", "")
EMAIL_HOST_PASSWORD = env.str("SENDGRID_PASSWORD", "")
EMAIL_PORT = 587
EMAIL_USE_TLS = True
# start fcm_django push notifications
FCM_DJANGO_SETTINGS = {"FCM_SERVER_KEY": env.str("FCM_SERVER_KEY", "")}
# end fcm_django push notifications
if DEBUG:
# output email to console instead of sending
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
|
[
"team@crowdbotics.com"
] |
team@crowdbotics.com
|
7b285f649b01ce696d22c4fbd5cb8dae8b8d1286
|
e63a36870512edb7fd947b809631cf153b028997
|
/doc/source/conf.py
|
eed13ab7549cb2d023a203b106150682f25abb0b
|
[
"Apache-2.0"
] |
permissive
|
titilambert/surveil
|
632c7e65d10e03c675d78f278822015346f5c47a
|
8feeb64e40ca2bd95ebd60506074192ecdf627b6
|
refs/heads/master
| 2020-05-25T13:36:59.708227
| 2015-06-29T14:07:07
| 2015-06-29T14:07:07
| 38,249,530
| 1
| 0
| null | 2015-06-29T13:38:04
| 2015-06-29T13:38:03
| null |
UTF-8
|
Python
| false
| false
| 2,531
|
py
|
# -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import sys
sys.path.insert(0, os.path.abspath('../..'))
# -- General configuration ----------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinxcontrib.autohttp.flask',
'sphinxcontrib.pecanwsme.rest',
# 'oslosphinx',
'wsmeext.sphinxext',
]
wsme_protocols = ['restjson', 'restxml']
# autodoc generation is a bit aggressive and a nuisance when doing heavy
# text edit cycles.
# execute "export SPHINX_DEBUG=1" in your terminal to disable
# The suffix of source filenames.
source_suffix = '.rst'
# The master toctree document.
master_doc = 'index'
# General information about the project.
project = u'surveil'
copyright = u'2014-2015, Surveil Contributors'
# If true, '()' will be appended to :func: etc. cross-reference text.
add_function_parentheses = True
# If true, the current module name will be prepended to all description
# unit titles (such as .. function::).
add_module_names = True
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'
# -- Options for HTML output --------------------------------------------------
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
# html_theme_path = ["."]
import sphinx_rtd_theme
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# Output file base name for HTML help builder.
htmlhelp_basename = '%sdoc' % project
# -- Options for manual page output -------------------------------------------
# If true, show URL addresses after external links.
man_show_urls = True
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'http://docs.python.org/': None}
|
[
"alexandre.viau@savoirfairelinux.com"
] |
alexandre.viau@savoirfairelinux.com
|
d675945d9dcc0f99396a02cefb496fc58d518c2b
|
edb906c10790abc1eba4047bca557aa173616f10
|
/business/serializer.py
|
9c6d69a222cb016743cecfb85d7e3c1b365aab12
|
[] |
no_license
|
Wakarende/neighbourhood
|
743d26ee76a79018865a15c523f390c35812b73c
|
29003acc8f760046a33f1b3313b5a016a007890d
|
refs/heads/master
| 2023-05-13T12:43:53.257053
| 2021-06-08T06:59:09
| 2021-06-08T06:59:09
| 373,812,884
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 219
|
py
|
from rest_framework import serializers
from .models import BusinessModel
from django.db import models
class BusinessSerializer(serializers.ModelSerializer):
class Meta:
model=BusinessModel
fields='__all__'
|
[
"joykirii@gmail.com"
] |
joykirii@gmail.com
|
54916cd6aef8b96949a3900348ef5e689648aa2c
|
1ed4e96c20da03fbd3aa4f18d4b004a59d8f89e5
|
/Repo/venv/Lib/site-packages/torch/utils/file_baton.py
|
d474bfb4a810ea042d978407b1239dea9dd3f8b9
|
[] |
no_license
|
donhatkha/CS2225.CH1501
|
eebc854864dc6fe72a3650f640787de11d4e82b7
|
19d4dd3b11f8c9560d0d0a93882298637cacdc80
|
refs/heads/master
| 2023-07-19T13:27:17.862158
| 2021-02-08T07:19:05
| 2021-02-08T07:19:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,625
|
py
|
import os
import sys
import time
if sys.version < '3.3':
# Note(jiayq): in Python 2, FileExistsError is not defined and the
# error manifests it as OSError.
FileExistsError = OSError
class FileBaton:
'''A primitive, file-based synchronization utility.'''
def __init__(self, lock_file_path, wait_seconds=0.1):
'''
Creates a new :class:`FileBaton`.
Args:
lock_file_path: The path to the file used for locking.
wait_seconds: The seconds to periorically sleep (spin) when
calling ``wait()``.
'''
self.lock_file_path = lock_file_path
self.wait_seconds = wait_seconds
self.fd = None
def try_acquire(self):
'''
Tries to atomically create a file under exclusive access.
Returns:
True if the file could be created, else False.
'''
try:
self.fd = os.open(self.lock_file_path, os.O_CREAT | os.O_EXCL)
return True
except FileExistsError:
return False
def wait(self):
'''
Periodically sleeps for a certain amount until the baton is released.
The amount of time slept depends on the ``wait_seconds`` parameter
passed to the constructor.
'''
while os.path.exists(self.lock_file_path):
time.sleep(self.wait_seconds)
def release(self):
'''Releases the baton and removes its file.'''
if self.fd is not None:
os.close(self.fd)
os.remove(self.lock_file_path)
|
[
"59596379+khado2359@users.noreply.github.com"
] |
59596379+khado2359@users.noreply.github.com
|
894489a6d159e040d5ca697e4bb1fadf471b887c
|
1dacbf90eeb384455ab84a8cf63d16e2c9680a90
|
/lib/python2.7/site-packages/_pytest/recwarn.py
|
753bfd18742651b338e79169aab68ed417785218
|
[
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] |
permissive
|
wangyum/Anaconda
|
ac7229b21815dd92b0bd1c8b7ec4e85c013b8994
|
2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6
|
refs/heads/master
| 2022-10-21T15:14:23.464126
| 2022-10-05T12:10:31
| 2022-10-05T12:10:31
| 76,526,728
| 11
| 10
|
Apache-2.0
| 2022-10-05T12:10:32
| 2016-12-15T05:26:12
|
Python
|
UTF-8
|
Python
| false
| false
| 7,173
|
py
|
""" recording warnings during test function execution. """
import inspect
import py
import sys
import warnings
import pytest
@pytest.yield_fixture
def recwarn(request):
"""Return a WarningsRecorder instance that provides these methods:
* ``pop(category=None)``: return last warning matching the category.
* ``clear()``: clear list of warnings
See http://docs.python.org/library/warnings.html for information
on warning categories.
"""
wrec = WarningsRecorder()
with wrec:
warnings.simplefilter('default')
yield wrec
def pytest_namespace():
return {'deprecated_call': deprecated_call,
'warns': warns}
def deprecated_call(func, *args, **kwargs):
""" assert that calling ``func(*args, **kwargs)`` triggers a
``DeprecationWarning`` or ``PendingDeprecationWarning``.
Note: we cannot use WarningsRecorder here because it is still subject
to the mechanism that prevents warnings of the same type from being
triggered twice for the same module. See #1190.
"""
categories = []
def warn_explicit(message, category, *args, **kwargs):
categories.append(category)
old_warn_explicit(message, category, *args, **kwargs)
def warn(message, category=None, *args, **kwargs):
if isinstance(message, Warning):
categories.append(message.__class__)
else:
categories.append(category)
old_warn(message, category, *args, **kwargs)
old_warn = warnings.warn
old_warn_explicit = warnings.warn_explicit
warnings.warn_explicit = warn_explicit
warnings.warn = warn
try:
ret = func(*args, **kwargs)
finally:
warnings.warn_explicit = old_warn_explicit
warnings.warn = old_warn
deprecation_categories = (DeprecationWarning, PendingDeprecationWarning)
if not any(issubclass(c, deprecation_categories) for c in categories):
__tracebackhide__ = True
raise AssertionError("%r did not produce DeprecationWarning" % (func,))
return ret
def warns(expected_warning, *args, **kwargs):
"""Assert that code raises a particular class of warning.
Specifically, the input @expected_warning can be a warning class or
tuple of warning classes, and the code must return that warning
(if a single class) or one of those warnings (if a tuple).
This helper produces a list of ``warnings.WarningMessage`` objects,
one for each warning raised.
This function can be used as a context manager, or any of the other ways
``pytest.raises`` can be used::
>>> with warns(RuntimeWarning):
... warnings.warn("my warning", RuntimeWarning)
"""
wcheck = WarningsChecker(expected_warning)
if not args:
return wcheck
elif isinstance(args[0], str):
code, = args
assert isinstance(code, str)
frame = sys._getframe(1)
loc = frame.f_locals.copy()
loc.update(kwargs)
with wcheck:
code = py.code.Source(code).compile()
py.builtin.exec_(code, frame.f_globals, loc)
else:
func = args[0]
with wcheck:
return func(*args[1:], **kwargs)
class RecordedWarning(object):
def __init__(self, message, category, filename, lineno, file, line):
self.message = message
self.category = category
self.filename = filename
self.lineno = lineno
self.file = file
self.line = line
class WarningsRecorder(object):
"""A context manager to record raised warnings.
Adapted from `warnings.catch_warnings`.
"""
def __init__(self, module=None):
self._module = sys.modules['warnings'] if module is None else module
self._entered = False
self._list = []
@property
def list(self):
"""The list of recorded warnings."""
return self._list
def __getitem__(self, i):
"""Get a recorded warning by index."""
return self._list[i]
def __iter__(self):
"""Iterate through the recorded warnings."""
return iter(self._list)
def __len__(self):
"""The number of recorded warnings."""
return len(self._list)
def pop(self, cls=Warning):
"""Pop the first recorded warning, raise exception if not exists."""
for i, w in enumerate(self._list):
if issubclass(w.category, cls):
return self._list.pop(i)
__tracebackhide__ = True
raise AssertionError("%r not found in warning list" % cls)
def clear(self):
"""Clear the list of recorded warnings."""
self._list[:] = []
def __enter__(self):
if self._entered:
__tracebackhide__ = True
raise RuntimeError("Cannot enter %r twice" % self)
self._entered = True
self._filters = self._module.filters
self._module.filters = self._filters[:]
self._showwarning = self._module.showwarning
def showwarning(message, category, filename, lineno,
file=None, line=None):
self._list.append(RecordedWarning(
message, category, filename, lineno, file, line))
# still perform old showwarning functionality
self._showwarning(
message, category, filename, lineno, file=file, line=line)
self._module.showwarning = showwarning
# allow the same warning to be raised more than once
self._module.simplefilter('always', append=True)
return self
def __exit__(self, *exc_info):
if not self._entered:
__tracebackhide__ = True
raise RuntimeError("Cannot exit %r without entering first" % self)
self._module.filters = self._filters
self._module.showwarning = self._showwarning
class WarningsChecker(WarningsRecorder):
def __init__(self, expected_warning=None, module=None):
super(WarningsChecker, self).__init__(module=module)
msg = ("exceptions must be old-style classes or "
"derived from Warning, not %s")
if isinstance(expected_warning, tuple):
for exc in expected_warning:
if not inspect.isclass(exc):
raise TypeError(msg % type(exc))
elif inspect.isclass(expected_warning):
expected_warning = (expected_warning,)
elif expected_warning is not None:
raise TypeError(msg % type(expected_warning))
self.expected_warning = expected_warning
def __exit__(self, *exc_info):
super(WarningsChecker, self).__exit__(*exc_info)
# only check if we're not currently handling an exception
if all(a is None for a in exc_info):
if self.expected_warning is not None:
if not any(r.category in self.expected_warning for r in self):
__tracebackhide__ = True
pytest.fail("DID NOT WARN")
|
[
"wgyumg@mgail.com"
] |
wgyumg@mgail.com
|
175217a2e8693dc6abc2fb06bf86ba8bf7c9fb06
|
8f807e00570227aff15cadb9fb9cfbd46d5c5ab1
|
/uninas/tasks/abstract.py
|
45d13cc9cf1959a227e08f67a526d0632340edd4
|
[
"MIT"
] |
permissive
|
MLDL/uninas
|
cbe704e6e992af9f1c683f36cdbeab5919289c9b
|
06729b9cf517ec416fb798ae387c5bd9c3a278ac
|
refs/heads/main
| 2023-04-19T06:49:23.213220
| 2021-04-26T12:20:04
| 2021-04-26T12:20:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 9,040
|
py
|
import os
import shutil
import logging
import random
from typing import Union, List
import numpy as np
import torch
from uninas.utils.args import ArgsInterface, Argument, MetaArgument, Namespace, sanitize, save_as_json
from uninas.utils.misc import split
from uninas.utils.loggers.python import LoggerManager, log_headline, log_in_columns, log_args
from uninas.utils.paths import get_task_config_path
from uninas.utils.system import dump_system_info
from uninas.methods.abstract import AbstractMethod
from uninas.methods.strategies.manager import StrategyManager
from uninas.register import Register
cla_type = Union[str, List, None]
class AbstractTask(ArgsInterface):
def __init__(self, args: Namespace, wildcards: dict, descriptions: dict = None):
super().__init__()
# args, seed
self.args = args
self.save_dir = self._parsed_argument('save_dir', args)
self.is_test_run = self._parsed_argument('is_test_run', args)
self.seed = self._parsed_argument('seed', args)
self.is_deterministic = self._parsed_argument('is_deterministic', args)
random.seed(self.seed)
np.random.seed(self.seed)
torch.manual_seed(self.seed)
if self.is_deterministic:
# see https://docs.nvidia.com/cuda/cublas/index.html#cublasApi_reproducibility
os.environ.setdefault("CUBLAS_WORKSPACE_CONFIG", ":4096:8")
torch.set_deterministic(self.is_deterministic)
# maybe delete old dir, note arguments, save run_config
if self._parsed_argument('save_del_old', args):
shutil.rmtree(self.save_dir, ignore_errors=True)
os.makedirs(self.save_dir, exist_ok=True)
save_as_json(args, get_task_config_path(self.save_dir), wildcards)
dump_system_info(self.save_dir + 'sysinfo.txt')
# logging
self.log_file = '%slog_task.txt' % self.save_dir
LoggerManager().set_logging(default_save_file=self.log_file)
self.logger = self.new_logger(index=None)
log_args(self.logger, None, self.args, add_git_hash=True, descriptions=descriptions)
Register.log_all(self.logger)
# reset weight strategies so that consecutive tasks do not conflict with each other
StrategyManager().reset()
self.methods = []
@classmethod
def args_to_add(cls, index=None) -> [Argument]:
""" list arguments to add to argparse when this class (or a child class) is chosen """
return super().args_to_add(index) + [
Argument('is_test_run', default='False', type=str, help='test runs stop epochs early', is_bool=True),
Argument('seed', default=0, type=int, help='random seed for the experiment'),
Argument('is_deterministic', default='False', type=str, help='use deterministic operations', is_bool=True),
Argument('note', default='note', type=str, help='just to take notes'),
# saving
Argument('save_dir', default='{path_tmp}', type=str, help='where to save', is_path=True),
Argument('save_del_old', default='True', type=str, help='wipe the save dir before starting', is_bool=True),
]
@classmethod
def _add_meta_from_argsfile_to_args(cls, all_args: [str], meta_keys: [str], args_in_file: dict, overwrite=True):
""" copy all meta arguments in 'meta_keys' and their respective arguments to the 'all_args' list """
already_added = set()
if not overwrite:
for s in all_args:
already_added.add(s.split('=')[0][2:])
for key_meta in meta_keys:
value_meta = args_in_file.get(key_meta)
value_splits = split(sanitize(value_meta))
for key_cls in value_splits:
for k, v in args_in_file.items():
if k in already_added:
continue
if key_meta in k or key_cls in k:
all_args.append('--%s=%s' % (k, v))
already_added.add(k)
if key_meta == k:
print('\t\tusing "%s" as %s, copying arguments' % (v, key_meta))
def get_method(self) -> AbstractMethod:
""" get the only existing method """
assert len(self.methods) == 1, "Must have exactly one method, but %d exist" % len(self.methods)
return self.methods[0]
def checkpoint_dir(self, save_dir: str = None) -> str:
return save_dir if save_dir is not None else self.save_dir
def new_logger(self, index: int = None):
return LoggerManager().get_logger(
name=index if index is None else str(index),
default_level=logging.DEBUG if self.is_test_run else logging.INFO,
save_file=self.log_file)
def load(self, checkpoint_dir: str = None) -> 'AbstractTask':
""" load """
log_headline(self.logger, 'Loading')
checkpoint_dir = self.checkpoint_dir(checkpoint_dir)
try:
if not self._load(checkpoint_dir):
self.logger.info('Did not load, maybe nothing to do: %s' % checkpoint_dir)
except Exception as e:
self.logger.error('Failed loading from checkpoint dir: "%s"' % checkpoint_dir, exc_info=e)
return self
def _load(self, checkpoint_dir: str) -> bool:
""" load """
return False
def run(self) -> 'AbstractTask':
""" execute the task """
try:
self._run()
for method in self.methods:
method.flush_logging()
self.logger.info("Done!")
return self
except Exception as e:
raise e
finally:
LoggerManager().cleanup()
def _run(self):
""" execute the task """
raise NotImplementedError
class AbstractNetTask(AbstractTask):
def __init__(self, args: Namespace, *args_, **kwargs):
AbstractTask.__init__(self, args, *args_, **kwargs)
# device handling
cls_dev_handler = self._parsed_meta_argument(Register.devices_managers, 'cls_device', args, None)
self.devices_handler = cls_dev_handler.from_args(self.seed, self.is_deterministic, args, index=None)
# classes
self.cls_method = self._parsed_meta_argument(Register.methods, 'cls_method', args, None)
self.cls_trainer = self._parsed_meta_argument(Register.trainers, 'cls_trainer', args, None)
# methods and trainers
self.trainer = []
@classmethod
def meta_args_to_add(cls) -> [MetaArgument]:
"""
list meta arguments to add to argparse for when this class is chosen,
classes specified in meta arguments may have their own respective arguments
"""
kwargs = Register.get_my_kwargs(cls)
methods = Register.methods.filter_match_all(search=kwargs.get('search'))
return super().meta_args_to_add() + [
MetaArgument('cls_device', Register.devices_managers, help_name='device manager', allowed_num=1),
MetaArgument('cls_trainer', Register.trainers, help_name='trainer', allowed_num=1),
MetaArgument('cls_method', methods, help_name='method', allowed_num=1),
]
def add_method(self):
""" adds a new method (lightning module) """
# never try loading from checkpoint, since custom checkpoints are used
# if checkpoint_file is not None and os.path.isfile(checkpoint_file):
# self.logger.info('Loading Lightning module from checkpoint "%s"' % checkpoint_file)
# return self.cls_method.load_from_checkpoint(checkpoint_file)
method = self.cls_method(self.args)
self.methods.append(method)
def add_trainer(self, method: AbstractMethod, save_dir: str, num_devices=-1):
""" adds a new trainer which saves to 'save_dir' and uses 'num_gpus' gpus """
mover = self.devices_handler.allocate_devices(num_devices)
logger = self.logger if self.devices_handler.get_num_free() == 0 else self.new_logger(len(self.trainer))
trainer = self.cls_trainer(method=method,
args=self.args,
mover=mover,
save_dir=save_dir,
logger=logger,
is_test_run=self.is_test_run)
self.trainer.append(trainer)
def log_detailed(self):
# log some things
log_headline(self.logger, 'Trainer, Method, Data, ...')
rows = [('Trainer', '')]
for i, trainer in enumerate(self.trainer):
rows.append((' (%d)' % i, trainer.str()))
log_in_columns(self.logger, rows)
for i, method in enumerate(self.methods):
log_headline(self.logger, "Method %d/%d" % (i+1, len(self.methods)), target_len=80)
method.log_detailed(self.logger)
StrategyManager().log_detailed(self.logger)
def _run(self):
""" execute the task """
raise NotImplementedError
|
[
"kevin.laube@uni-tuebingen.de"
] |
kevin.laube@uni-tuebingen.de
|
b891c1b843660a251c2fc198054adab99dfba8ab
|
289bc4207b1c3efe3b99ac637d1ddfb88e28a5be
|
/Section05/debug_example.py
|
cdd21ee0a121d1d8cc04721135fa4e495be7ebd1
|
[
"MIT"
] |
permissive
|
PacktPublishing/-Hands-on-Reinforcement-Learning-with-TensorFlow
|
f5e41ed9e218f721b179e0b1d9aaa3c27957d38a
|
6de9980db2bfc761524c27606e6495c093ddf516
|
refs/heads/master
| 2021-06-20T19:31:45.442884
| 2021-01-15T08:59:53
| 2021-01-15T08:59:53
| 145,985,316
| 11
| 3
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,935
|
py
|
import numpy as np
import tensorflow as tf
from tensorflow.python import debug as tf_debug
learning_rate = 0.01
num_epochs = 1000
train_X = np.asarray(
[3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.779, 6.182, 7.59, 2.167,
7.042, 10.791, 5.313, 7.997, 5.654, 9.27, 3.1])
train_Y = np.asarray(
[1.7, 2.76, 2.09, 3.19, 1.694, 1.573, 3.366, 2.596, 2.53, 1.221,
2.827, 3.465, 1.65, 2.904, 2.42, 2.94, 1.3])
n_samples = train_X.shape[0]
input_x = tf.placeholder("float")
actual_y = tf.placeholder("float")
# Simple linear regression tries to find W and b such that
# y = Wx + b
W = tf.Variable(np.random.randn(), name="weight")
b = tf.Variable(np.random.randn(), name="bias")
prediction = tf.add(tf.multiply(input_x, W), b)
loss = tf.squared_difference(actual_y, prediction)
# loss = tf.Print(loss, [loss], 'Loss: ', summarize=n_samples)
optimizer = tf.train.GradientDescentOptimizer(learning_rate).minimize(loss)
init = tf.global_variables_initializer()
with tf.Session() as sess:
# sess = tf_debug.LocalCLIDebugWrapperSession(sess)
# sess = tf_debug.TensorBoardDebugWrapperSession(
# sess, 'localhost:6064')
sess.run(init)
initial_loss = sess.run(loss, feed_dict={
input_x: train_X,
actual_y: train_Y
})
print("Initial loss", initial_loss)
for epoch in range(num_epochs):
for x, y in zip(train_X, train_Y):
_, c_loss = sess.run([optimizer, loss], feed_dict={
input_x: x,
actual_y: y
})
tf.add_to_collection("Asserts", tf.assert_less(loss, 2.0, [loss]))
tf.add_to_collection("Asserts", tf.assert_positive(loss, [loss]))
assert_op = tf.group(*tf.get_collection('Asserts'))
final_loss, _ = sess.run([loss, assert_op], feed_dict={
input_x: train_X,
actual_y: train_Y
})
print("Final Loss: {}\n W:{}, b:{}".format(
final_loss, sess.run(W), sess.run(b)))
|
[
"noreply@github.com"
] |
PacktPublishing.noreply@github.com
|
cfc1119d27d112c18ef8a4cf62a55b777689fd7e
|
57775b4c245723078fd43abc35320cb16f0d4cb6
|
/Leetcode/hash-table/find-words-that-can-be-formed-by-characters.py
|
5d7dfafa4509bc65009744a92a838b98562774db
|
[] |
no_license
|
farhapartex/code-ninja
|
1757a7292ac4cdcf1386fe31235d315a4895f072
|
168fdc915a4e3d3e4d6f051c798dee6ee64ea290
|
refs/heads/master
| 2020-07-31T16:10:43.329468
| 2020-06-18T07:00:34
| 2020-06-18T07:00:34
| 210,668,245
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 481
|
py
|
class Solution:
def countCharacters(self, words: List[str], chars: str) -> int:
n = 0
for word in words:
y = chars
flag = False
for w in word:
if w in y:
y = y.replace(w,"",1)
else:
flag = True
break
if not flag:
n += len(word)
return n
|
[
"farhapartex@gmail.com"
] |
farhapartex@gmail.com
|
755a2aaad8acce2a42387f5c5739b2381f4c4253
|
8fe6a6790013eed7ca470414c398ea4848e798c4
|
/src/datasets.py
|
c9a59f9a12256e6e0655c82d503fc40b155f989a
|
[
"MIT"
] |
permissive
|
sovit-123/SSD300-VGG11-on-Pascal-VOC-2005-Data
|
d7aef30277076561c46d5f8a3d07985e09b9f13c
|
cb21c4c3e762a0184611b1a1659e7e730ef31932
|
refs/heads/master
| 2022-12-02T11:51:59.256715
| 2020-08-06T16:08:24
| 2020-08-06T16:08:24
| 284,756,098
| 3
| 0
| null | 2020-08-06T05:40:31
| 2020-08-03T16:53:09
|
Python
|
UTF-8
|
Python
| false
| false
| 2,345
|
py
|
import torch
import json
import os
from torch.utils.data import Dataset, DataLoader
from PIL import Image
from utils import transform
class PascalVOCDataset(Dataset):
"""
Custom dataset to load PascalVOC data as batches
"""
def __init__(self, data_folder, split):
"""
:param data_folder: folder path of the data files
:param split: either `TRAIN` or `TEST`
"""
self.split = split.upper()
assert self.split in {'TRAIN', 'TEST'}
self.data_folder = data_folder
# read the data files
with open(os.path.join(data_folder,
self.split + '_images.json'), 'r') as j:
self.images = json.load(j)
with open(os.path.join(data_folder,
self.split + '_objects.json'), 'r') as j:
self.objects = json.load(j)
assert len(self.images) == len(self.objects)
def __len__(self):
return len(self.images)
def __getitem__(self, i):
# read image
image = Image.open(self.images[i])
image = image.convert('RGB')
# get bounding boxes, labels, diffculties for the corresponding image
# all of them are objects
objects = self.objects[i]
boxes = torch.FloatTensor(objects['boxes']) # (n_objects, 4)
labels = torch.LongTensor(objects['labels']) # (n_objects)
# apply transforms
image, boxes, labels = transform(image, boxes, labels, split=self.split)
return image, boxes, labels
def collate_fn(self, batch):
"""
Each batch can have different number of objects.
We will pass this collate function to the DataLoader.
You can define this function outside the class as well.
:param batch: iterable items from __getitem(), size equal to batch size
:return: a tensor of images, lists of varying-size tensors of
bounding boxes, labels, and difficulties
"""
images = list()
boxes = list()
labels = list()
for b in batch:
images.append(b[0])
boxes.append(b[1])
labels.append(b[2])
images = torch.stack(images, dim=0)
# return a tensor (N, 3, 300, 300), 3 lists of N tesnors each
return images, boxes, labels
|
[
"sovitrath5@gmail.com"
] |
sovitrath5@gmail.com
|
3c54d18e1ddff0980eaddc81064f2886f30343da
|
80052e0cbfe0214e4878d28eb52009ff3054fe58
|
/e2yun_addons/extra-addons/merp_picking_wave/wizard/message_wizard.py
|
0e5a598da22cd2017115952c6a2839e8fa5675d9
|
[] |
no_license
|
xAlphaOmega/filelib
|
b022c86f9035106c24ba806e6ece5ea6e14f0e3a
|
af4d4b079041f279a74e786c1540ea8df2d6b2ac
|
refs/heads/master
| 2021-01-26T06:40:06.218774
| 2020-02-26T14:25:11
| 2020-02-26T14:25:11
| 243,349,887
| 0
| 2
| null | 2020-02-26T19:39:32
| 2020-02-26T19:39:31
| null |
UTF-8
|
Python
| false
| false
| 977
|
py
|
# Copyright 2019 VentorTech OU
# Part of Ventor modules. See LICENSE file for full copyright and licensing details.
from odoo import models, fields as oe_fields, api, _
class MessageWizard(models.TransientModel):
_name = 'message.wizard'
message = oe_fields.Text()
@api.model
def default_get(self, fields):
res = super(MessageWizard, self).default_get(fields)
res['message'] = self.env.context.get('message')
return res
@api.multi
def wizard_view(self):
view = self.env.ref('merp_picking_wave.view_message_wizard')
return {
'name': _('Message'),
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': 'message.wizard',
'views': [(view.id, 'form')],
'view_id': view.id,
'target': 'new',
# 'res_id': self.ids[0],
'context': self.env.context,
}
|
[
"joytao.zhu@icloud.com"
] |
joytao.zhu@icloud.com
|
8f53dfcc7f2f3305bc737e1491065fa5815c5aa6
|
660328cb139ce1f90da70dbe640df62bf79bcc61
|
/infra/src/stages/train_stage_base.py
|
05241ecd3f6f9cd28a02c5b6c310f1a38a27c433
|
[
"MIT-0"
] |
permissive
|
cyrilhamidechi/amazon-frauddetector-mlops-multiaccount-cdk
|
0801f4b844bd9b8e80776748c1056db83c9023fb
|
379def0a571452b7920a9aaa56bccc2bfb39c523
|
refs/heads/main
| 2023-04-23T13:49:37.413348
| 2021-05-10T18:37:41
| 2021-05-10T18:37:41
| 366,139,181
| 0
| 0
|
NOASSERTION
| 2021-05-10T18:25:59
| 2021-05-10T18:25:58
| null |
UTF-8
|
Python
| false
| false
| 2,432
|
py
|
# ***************************************************************************************
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. *
# *
# Permission is hereby granted, free of charge, to any person obtaining a copy of this *
# software and associated documentation files (the "Software"), to deal in the Software *
# without restriction, including without limitation the rights to use, copy, modify, *
# merge, publish, distribute, sublicense, and/or sell copies of the Software, and to *
# permit persons to whom the Software is furnished to do so. *
# *
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, *
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A *
# PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT *
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION *
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE *
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
# ***************************************************************************************
from typing import List, Dict
from aws_cdk import core
from aws_cdk.aws_codebuild import BuildEnvironmentVariable
from aws_cdk.aws_codepipeline import Artifact
from aws_cdk.aws_codepipeline_actions import Action
StageActionList = List[Action]
OutputArtifacts = List[Artifact]
OutputVariables = Dict[str, BuildEnvironmentVariable]
VariableNamespace = str
class TrainStageBase:
@property
def name(self):
return NotImplementedError
@property
def output_variables(self):
return NotImplementedError
def get_stage_actions(self, scope: core.Construct, env: str, stage_name: str,
source_artifacts: List[Artifact]) -> (StageActionList, VariableNamespace):
"""
Creates stage actions and returns the actions, the output artifacts and output variables
:param env:
:param scope:
:param stage_name:
:param source_artifacts:
:return:
"""
raise NotImplementedError
|
[
"aeg@amazon.com"
] |
aeg@amazon.com
|
d65784b7ec0cdad3d8e2ac0b3c31ebe3e21c263e
|
9743d5fd24822f79c156ad112229e25adb9ed6f6
|
/xai/brain/wordbase/nouns/_embassy.py
|
8c0f88ca692520c38a075b1fcc908e831280b60a
|
[
"MIT"
] |
permissive
|
cash2one/xai
|
de7adad1758f50dd6786bf0111e71a903f039b64
|
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
|
refs/heads/master
| 2021-01-19T12:33:54.964379
| 2017-01-28T02:00:50
| 2017-01-28T02:00:50
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 397
|
py
|
#calss header
class _EMBASSY():
def __init__(self,):
self.name = "EMBASSY"
self.definitions = [u'the group of people who represent their country in a foreign country: ', u'the building that these people work in: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'nouns'
def run(self, obj1 = [], obj2 = []):
return self.jsondata
|
[
"xingwang1991@gmail.com"
] |
xingwang1991@gmail.com
|
57b68e4a74604876334affc613d1d972667cfbe0
|
c6431cdf572dd10f0f4d45839e6081124b246f90
|
/code/lc3.py
|
2ec290d3bc538c94abd8a7e80c92e02c5ff01e14
|
[] |
no_license
|
bendanwwww/myleetcode
|
1ec0285ea19a213bc629e0e12fb8748146e26d3d
|
427846d2ad1578135ef92fd6549235f104f68998
|
refs/heads/master
| 2021-09-27T19:36:40.111456
| 2021-09-24T03:11:32
| 2021-09-24T03:11:32
| 232,493,899
| 2
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,052
|
py
|
"""
给定一个字符串,请你找出其中不含有重复字符的 最长子串 的长度。
示例 1:
输入: "abcabcbb"
输出: 3
解释: 因为无重复字符的最长子串是 "abc",所以其长度为 3。
示例 2:
输入: "bbbbb"
输出: 1
解释: 因为无重复字符的最长子串是 "b",所以其长度为 1。
示例 3:
输入: "pwwkew"
输出: 3
解释: 因为无重复字符的最长子串是 "wke",所以其长度为 3。
请注意,你的答案必须是 子串 的长度,"pwke" 是一个子序列,不是子串。
"""
class Solution(object):
def lengthOfLongestSubstring(self, s):
dictMap = {}
res = 0
first = 0
for i in range(len(s)):
if s[i] not in dictMap:
dictMap[s[i]] = i
else:
index = dictMap[s[i]]
first = max(first, index + 1)
dictMap[s[i]] = i
res = max(res, i - first + 1)
return res
s = Solution()
res = s.lengthOfLongestSubstring('abba')
print(res)
|
[
"461806307@qq.com"
] |
461806307@qq.com
|
903a77f4a02718a688e108e05b286348b1c99a65
|
eef243e450cea7e91bac2f71f0bfd45a00c6f12c
|
/.history/worker_master_20210128031009.py
|
16168c2cf8a83eb1dfb82220fd383d845e05ab9a
|
[] |
no_license
|
hoaf13/nlp-chatbot-lol
|
910ab2ea3b62d5219901050271fc1a1340e46a2f
|
18cb64efa9d6b4cafe1015f1cd94f4409271ef56
|
refs/heads/master
| 2023-05-08T04:17:19.450718
| 2021-02-02T02:37:38
| 2021-02-02T02:37:38
| 332,535,094
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 493
|
py
|
import redis
red = redis.StrictRedis(host='localhost',port=6379,db=0)
queue = list()
def str_to_bool(str):
if str == b'False':
return False
if str == b'True':
return True
return None
while True:
# check supplier product status
is_new = str_to_bool(red.get("new_product_worker1"))
if is_new:
taken_product = red.get('product_worker1')
queue.append(taken_product)
red.set("new_product_worker1", str(False))
|
[
"samartcall@gmail.com"
] |
samartcall@gmail.com
|
509601af0ae5337e7f8b9fc2f49be25dda28dc54
|
4acc08d2c165b5d88119df6bb4081bcfaca684f7
|
/PythonPrograms/python_program/multiple_matrix.py
|
c88486026ddb4fe56be352d8cd4c3a355b0923f6
|
[] |
no_license
|
xiaotuzixuedaima/PythonProgramDucat
|
9059648f070db7304f9aaa45657c8d3df75f3cc2
|
90c6947e6dfa8ebb6c8758735960379a81d88ae3
|
refs/heads/master
| 2022-01-16T04:13:17.849130
| 2019-02-22T15:43:18
| 2019-02-22T15:43:18
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 516
|
py
|
# Python Program to Multiply Two Matrices ????
l = [[1,2,3],
[2,3,4],
[3,4,5]]
m = [[3,4,5],
[5,6,7],
[6,7,8]]
for i in range(3):
for j in range(len(l)):
sum = 0
for k in range(len(m)):
sum=sum + l[i][k] * m[k][j]
print(sum,end=" ")
print()
'''
output ==
l = [[1,2,3],
[2,3,4],
[3,4,5]]
m = [[3,4,5],
[5,6,7],
[6,7,8]]
output ==== ***********
l*m = 31 37 43 *
45 54 63 *
59 71 83 *
==== ***********
'''
|
[
"ss7838094755@gmail.com"
] |
ss7838094755@gmail.com
|
83503bae694f4bdf6c82b15e366f28e0066e3537
|
93e9bbcdd981a6ec08644e76ee914e42709579af
|
/depth-first-search/323_Number_of_Connected_Components_in_an_Undirected_Graph.py
|
4009e47f32f8f461cc7dbd9fe5c9d094309c835b
|
[] |
no_license
|
vsdrun/lc_public
|
57aa418a8349629494782f1a009c1a8751ffe81d
|
6350568d16b0f8c49a020f055bb6d72e2705ea56
|
refs/heads/master
| 2020-05-31T11:23:28.448602
| 2019-10-02T21:00:57
| 2019-10-02T21:00:57
| 190,259,739
| 6
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 2,112
|
py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/description/
Given n nodes labeled from 0 to n - 1 and a list of undirected edges
(each edge is a pair of nodes)
write a function to find the number of
connected components in an undirected graph.
Example 1:
0 3
| |
1 --- 2 4
Given n = 5 and edges = [[0, 1], [1, 2], [3, 4]], return 2.
Example 2:
0 4
| |
1 --- 2 --- 3
Given n = 5 and edges = [[0, 1], [1, 2], [2, 3], [3, 4]], return 1.
Note:
You can assume that no duplicate edges will appear in edges.
Since all edges are undirected,
[0, 1] is the same as [1, 0] and thus will not appear together in edges.
"""
class Solution(object):
def countComponents(self, n, edges):
"""
:type n: int
:type edges: List[List[int]]
:rtype: int
"""
from __builtin__ import xrange
graph = {i: [] for i in xrange(n)}
# build graph
for e in edges:
graph[e[0]] += e[1],
graph[e[1]] += e[0],
def dfs(key):
child = graph.pop(key, [])
for c in child:
dfs(c)
cnt = 0
while graph:
key = graph.keys()[0]
dfs(key)
cnt += 1
return cnt
def rewrite(self, n, edges):
"""
:type n: int
:type edges: List[List[int]]
:rtype: int
"""
# build bi-dir graph
dmap = {i: [] for i in range(n)}
for e in edges:
dmap[e[0]].append(e[1])
dmap[e[1]].append(e[0])
def dfs(node):
child = dmap.pop(node, [])
for c in child:
dfs(c)
cnt = 0
while dmap:
cnt += 1
k = dmap.keys()[0]
dfs(k)
return cnt
def build():
return 5, [[0, 1], [1, 2], [3, 4]]
if __name__ == "__main__":
s = Solution()
print(s.countComponents(*build()))
print(s.rewrite(*build()))
|
[
"vsdmars@gmail.com"
] |
vsdmars@gmail.com
|
20afedb1b001619332e9d7e143861e7ec13ba57a
|
45e97bd0c32042504052342bc1ae4e66a30d4d9a
|
/corepy/chapter13/demo5-trackInstance.py
|
34e5d0f1d27f10ca12c701e54330defcbeef7adc
|
[] |
no_license
|
vonzhou/py-learn
|
acf20c5183bff9788fcae9e36abdcd6f9bc553da
|
f0794164105dddbdffe082dfc90520f8778cbec3
|
refs/heads/master
| 2016-09-10T01:29:30.551541
| 2015-12-08T08:53:46
| 2015-12-08T08:53:46
| 27,669,547
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 373
|
py
|
''' P343'''
class InsCnt(object):
count = 0 #count是一个类属性
def __init__(self):
InsCnt.count += 1
def __del__(self):
InsCnt.count -= 1
def howMany(self):
return InsCnt.count
c1 = InsCnt()
print c1.howMany()
c2 = c1
print c2.howMany()
c3 = InsCnt()
print howMany()
del c1
del c2
print howMany()
del c3
print howMany()
raw_input()
raw_input()
|
[
"vonzhou@163.com"
] |
vonzhou@163.com
|
8eb17eeafb990dd19724e7110b8af45955b7f221
|
aa37b7aec635fd62707c90a7b536926e20cddaef
|
/test/functional/test_runner.py
|
59b3e989a6b2fc8b11611cac66ce1fcd22c7d4aa
|
[
"MIT"
] |
permissive
|
planbcoin/planbcoin
|
d85b9345998c9a2221ea0b44ed0dec86c7d3dc1e
|
7d132eebdce94f34ca2e74278b5ca09dc012d164
|
refs/heads/master
| 2020-12-02T20:58:31.167685
| 2017-08-06T17:57:51
| 2017-08-06T17:57:51
| 96,237,224
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 20,194
|
py
|
#!/usr/bin/env python3
# Copyright (c) 2014-2016 The PlanBcoin developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Run regression test suite.
This module calls down into individual test cases via subprocess. It will
forward all unrecognized arguments onto the individual test scripts.
Functional tests are disabled on Windows by default. Use --force to run them anyway.
For a description of arguments recognized by test scripts, see
`test/functional/test_framework/test_framework.py:PlanbcoinTestFramework.main`.
"""
import argparse
import configparser
import datetime
import os
import time
import shutil
import signal
import sys
import subprocess
import tempfile
import re
import logging
# Formatting. Default colors to empty strings.
BOLD, BLUE, RED, GREY = ("", ""), ("", ""), ("", ""), ("", "")
try:
# Make sure python thinks it can write unicode to its stdout
"\u2713".encode("utf_8").decode(sys.stdout.encoding)
TICK = "✓ "
CROSS = "✖ "
CIRCLE = "○ "
except UnicodeDecodeError:
TICK = "P "
CROSS = "x "
CIRCLE = "o "
if os.name == 'posix':
# primitive formatting on supported
# terminal via ANSI escape sequences:
BOLD = ('\033[0m', '\033[1m')
BLUE = ('\033[0m', '\033[0;34m')
RED = ('\033[0m', '\033[0;31m')
GREY = ('\033[0m', '\033[1;30m')
TEST_EXIT_PASSED = 0
TEST_EXIT_SKIPPED = 77
BASE_SCRIPTS= [
# Scripts that are run by the travis build process.
# Longest test should go first, to favor running tests in parallel
'wallet-hd.py',
'walletbackup.py',
# vv Tests less than 5m vv
'p2p-fullblocktest.py',
'fundrawtransaction.py',
'p2p-compactblocks.py',
'segwit.py',
# vv Tests less than 2m vv
'wallet.py',
'wallet-accounts.py',
'p2p-segwit.py',
'wallet-dump.py',
'listtransactions.py',
# vv Tests less than 60s vv
'sendheaders.py',
'zapwallettxes.py',
'importmulti.py',
'mempool_limit.py',
'merkle_blocks.py',
'receivedby.py',
'abandonconflict.py',
'bip68-112-113-p2p.py',
'rawtransactions.py',
'reindex.py',
# vv Tests less than 30s vv
'zmq_test.py',
'mempool_resurrect_test.py',
'txn_doublespend.py --mineblock',
'txn_clone.py',
'getchaintips.py',
'rest.py',
'mempool_spendcoinbase.py',
'mempool_reorg.py',
'mempool_persist.py',
'httpbasics.py',
'multi_rpc.py',
'proxy_test.py',
'signrawtransactions.py',
'disconnect_ban.py',
'decodescript.py',
'blockchain.py',
'disablewallet.py',
'net.py',
'keypool.py',
'p2p-mempool.py',
'prioritise_transaction.py',
'invalidblockrequest.py',
'invalidtxrequest.py',
'p2p-versionbits-warning.py',
'preciousblock.py',
'importprunedfunds.py',
'signmessages.py',
'nulldummy.py',
'import-rescan.py',
'mining.py',
'bumpfee.py',
'rpcnamedargs.py',
'listsinceblock.py',
'p2p-leaktests.py',
'wallet-encryption.py',
'uptime.py',
]
EXTENDED_SCRIPTS = [
# These tests are not run by the travis build process.
# Longest test should go first, to favor running tests in parallel
'pruning.py',
# vv Tests less than 20m vv
'smartfees.py',
# vv Tests less than 5m vv
'maxuploadtarget.py',
'mempool_packages.py',
'dbcrash.py',
# vv Tests less than 2m vv
'bip68-sequence.py',
'getblocktemplate_longpoll.py',
'p2p-timeouts.py',
# vv Tests less than 60s vv
'bip9-softforks.py',
'p2p-feefilter.py',
'rpcbind_test.py',
# vv Tests less than 30s vv
'assumevalid.py',
'bip65-cltv.py',
'bip65-cltv-p2p.py',
'bipdersig-p2p.py',
'bipdersig.py',
'example_test.py',
'txn_doublespend.py',
'txn_clone.py --mineblock',
'forknotify.py',
'invalidateblock.py',
'p2p-acceptblock.py',
'replace-by-fee.py',
]
# Place EXTENDED_SCRIPTS first since it has the 3 longest running tests
ALL_SCRIPTS = EXTENDED_SCRIPTS + BASE_SCRIPTS
NON_SCRIPTS = [
# These are python files that live in the functional tests directory, but are not test scripts.
"combine_logs.py",
"create_cache.py",
"test_runner.py",
]
def main():
# Parse arguments and pass through unrecognised args
parser = argparse.ArgumentParser(add_help=False,
usage='%(prog)s [test_runner.py options] [script options] [scripts]',
description=__doc__,
epilog='''
Help text and arguments for individual test script:''',
formatter_class=argparse.RawTextHelpFormatter)
parser.add_argument('--coverage', action='store_true', help='generate a basic coverage report for the RPC interface')
parser.add_argument('--exclude', '-x', help='specify a comma-seperated-list of scripts to exclude.')
parser.add_argument('--extended', action='store_true', help='run the extended test suite in addition to the basic tests')
parser.add_argument('--force', '-f', action='store_true', help='run tests even on platforms where they are disabled by default (e.g. windows).')
parser.add_argument('--help', '-h', '-?', action='store_true', help='print help text and exit')
parser.add_argument('--jobs', '-j', type=int, default=4, help='how many test scripts to run in parallel. Default=4.')
parser.add_argument('--keepcache', '-k', action='store_true', help='the default behavior is to flush the cache directory on startup. --keepcache retains the cache from the previous testrun.')
parser.add_argument('--quiet', '-q', action='store_true', help='only print results summary and failure logs')
parser.add_argument('--tmpdirprefix', '-t', default=tempfile.gettempdir(), help="Root directory for datadirs")
args, unknown_args = parser.parse_known_args()
# args to be passed on always start with two dashes; tests are the remaining unknown args
tests = [arg for arg in unknown_args if arg[:2] != "--"]
passon_args = [arg for arg in unknown_args if arg[:2] == "--"]
# Read config generated by configure.
config = configparser.ConfigParser()
configfile = os.path.abspath(os.path.dirname(__file__)) + "/../config.ini"
config.read_file(open(configfile))
passon_args.append("--configfile=%s" % configfile)
# Set up logging
logging_level = logging.INFO if args.quiet else logging.DEBUG
logging.basicConfig(format='%(message)s', level=logging_level)
# Create base test directory
tmpdir = "%s/planbcoin_test_runner_%s" % (args.tmpdirprefix, datetime.datetime.now().strftime("%Y%m%d_%H%M%S"))
os.makedirs(tmpdir)
logging.debug("Temporary test directory at %s" % tmpdir)
enable_wallet = config["components"].getboolean("ENABLE_WALLET")
enable_utils = config["components"].getboolean("ENABLE_UTILS")
enable_planbcoind = config["components"].getboolean("ENABLE_BITCOIND")
if config["environment"]["EXEEXT"] == ".exe" and not args.force:
# https://github.com/planbcoin/planbcoin/commit/d52802551752140cf41f0d9a225a43e84404d3e9
# https://github.com/planbcoin/planbcoin/pull/5677#issuecomment-136646964
print("Tests currently disabled on Windows by default. Use --force option to enable")
sys.exit(0)
if not (enable_wallet and enable_utils and enable_planbcoind):
print("No functional tests to run. Wallet, utils, and planbcoind must all be enabled")
print("Rerun `configure` with -enable-wallet, -with-utils and -with-daemon and rerun make")
sys.exit(0)
# Build list of tests
if tests:
# Individual tests have been specified. Run specified tests that exist
# in the ALL_SCRIPTS list. Accept the name with or without .py extension.
tests = [re.sub("\.py$", "", t) + ".py" for t in tests]
test_list = []
for t in tests:
if t in ALL_SCRIPTS:
test_list.append(t)
else:
print("{}WARNING!{} Test '{}' not found in full test list.".format(BOLD[1], BOLD[0], t))
else:
# No individual tests have been specified.
# Run all base tests, and optionally run extended tests.
test_list = BASE_SCRIPTS
if args.extended:
# place the EXTENDED_SCRIPTS first since the three longest ones
# are there and the list is shorter
test_list = EXTENDED_SCRIPTS + test_list
# Remove the test cases that the user has explicitly asked to exclude.
if args.exclude:
tests_excl = [re.sub("\.py$", "", t) + ".py" for t in args.exclude.split(',')]
for exclude_test in tests_excl:
if exclude_test in test_list:
test_list.remove(exclude_test)
else:
print("{}WARNING!{} Test '{}' not found in current test list.".format(BOLD[1], BOLD[0], exclude_test))
if not test_list:
print("No valid test scripts specified. Check that your test is in one "
"of the test lists in test_runner.py, or run test_runner.py with no arguments to run all tests")
sys.exit(0)
if args.help:
# Print help for test_runner.py, then print help of the first script (with args removed) and exit.
parser.print_help()
subprocess.check_call([(config["environment"]["SRCDIR"] + '/test/functional/' + test_list[0].split()[0])] + ['-h'])
sys.exit(0)
check_script_list(config["environment"]["SRCDIR"])
if not args.keepcache:
shutil.rmtree("%s/test/cache" % config["environment"]["BUILDDIR"], ignore_errors=True)
run_tests(test_list, config["environment"]["SRCDIR"], config["environment"]["BUILDDIR"], config["environment"]["EXEEXT"], tmpdir, args.jobs, args.coverage, passon_args)
def run_tests(test_list, src_dir, build_dir, exeext, tmpdir, jobs=1, enable_coverage=False, args=[]):
# Warn if planbcoind is already running (unix only)
try:
if subprocess.check_output(["pidof", "planbcoind"]) is not None:
print("%sWARNING!%s There is already a planbcoind process running on this system. Tests may fail unexpectedly due to resource contention!" % (BOLD[1], BOLD[0]))
except (OSError, subprocess.SubprocessError):
pass
# Warn if there is a cache directory
cache_dir = "%s/test/cache" % build_dir
if os.path.isdir(cache_dir):
print("%sWARNING!%s There is a cache directory here: %s. If tests fail unexpectedly, try deleting the cache directory." % (BOLD[1], BOLD[0], cache_dir))
#Set env vars
if "BITCOIND" not in os.environ:
os.environ["BITCOIND"] = build_dir + '/src/planbcoind' + exeext
tests_dir = src_dir + '/test/functional/'
flags = ["--srcdir={}/src".format(build_dir)] + args
flags.append("--cachedir=%s" % cache_dir)
if enable_coverage:
coverage = RPCCoverage()
flags.append(coverage.flag)
logging.debug("Initializing coverage directory at %s" % coverage.dir)
else:
coverage = None
if len(test_list) > 1 and jobs > 1:
# Populate cache
subprocess.check_output([tests_dir + 'create_cache.py'] + flags + ["--tmpdir=%s/cache" % tmpdir])
#Run Tests
job_queue = TestHandler(jobs, tests_dir, tmpdir, test_list, flags)
time0 = time.time()
test_results = []
max_len_name = len(max(test_list, key=len))
for _ in range(len(test_list)):
test_result, stdout, stderr = job_queue.get_next()
test_results.append(test_result)
if test_result.status == "Passed":
logging.debug("\n%s%s%s passed, Duration: %s s" % (BOLD[1], test_result.name, BOLD[0], test_result.time))
elif test_result.status == "Skipped":
logging.debug("\n%s%s%s skipped" % (BOLD[1], test_result.name, BOLD[0]))
else:
print("\n%s%s%s failed, Duration: %s s\n" % (BOLD[1], test_result.name, BOLD[0], test_result.time))
print(BOLD[1] + 'stdout:\n' + BOLD[0] + stdout + '\n')
print(BOLD[1] + 'stderr:\n' + BOLD[0] + stderr + '\n')
print_results(test_results, max_len_name, (int(time.time() - time0)))
if coverage:
coverage.report_rpc_coverage()
logging.debug("Cleaning up coverage data")
coverage.cleanup()
# Clear up the temp directory if all subdirectories are gone
if not os.listdir(tmpdir):
os.rmdir(tmpdir)
all_passed = all(map(lambda test_result: test_result.was_successful, test_results))
sys.exit(not all_passed)
def print_results(test_results, max_len_name, runtime):
results = "\n" + BOLD[1] + "%s | %s | %s\n\n" % ("TEST".ljust(max_len_name), "STATUS ", "DURATION") + BOLD[0]
test_results.sort(key=lambda result: result.name.lower())
all_passed = True
time_sum = 0
for test_result in test_results:
all_passed = all_passed and test_result.was_successful
time_sum += test_result.time
test_result.padding = max_len_name
results += str(test_result)
status = TICK + "Passed" if all_passed else CROSS + "Failed"
results += BOLD[1] + "\n%s | %s | %s s (accumulated) \n" % ("ALL".ljust(max_len_name), status.ljust(9), time_sum) + BOLD[0]
results += "Runtime: %s s\n" % (runtime)
print(results)
class TestHandler:
"""
Trigger the testscrips passed in via the list.
"""
def __init__(self, num_tests_parallel, tests_dir, tmpdir, test_list=None, flags=None):
assert(num_tests_parallel >= 1)
self.num_jobs = num_tests_parallel
self.tests_dir = tests_dir
self.tmpdir = tmpdir
self.test_list = test_list
self.flags = flags
self.num_running = 0
# In case there is a graveyard of zombie planbcoinds, we can apply a
# pseudorandom offset to hopefully jump over them.
# (625 is PORT_RANGE/MAX_NODES)
self.portseed_offset = int(time.time() * 1000) % 625
self.jobs = []
def get_next(self):
while self.num_running < self.num_jobs and self.test_list:
# Add tests
self.num_running += 1
t = self.test_list.pop(0)
portseed = len(self.test_list) + self.portseed_offset
portseed_arg = ["--portseed={}".format(portseed)]
log_stdout = tempfile.SpooledTemporaryFile(max_size=2**16)
log_stderr = tempfile.SpooledTemporaryFile(max_size=2**16)
test_argv = t.split()
tmpdir = ["--tmpdir=%s/%s_%s" % (self.tmpdir, re.sub(".py$", "", test_argv[0]), portseed)]
self.jobs.append((t,
time.time(),
subprocess.Popen([self.tests_dir + test_argv[0]] + test_argv[1:] + self.flags + portseed_arg + tmpdir,
universal_newlines=True,
stdout=log_stdout,
stderr=log_stderr),
log_stdout,
log_stderr))
if not self.jobs:
raise IndexError('pop from empty list')
while True:
# Return first proc that finishes
time.sleep(.5)
for j in self.jobs:
(name, time0, proc, log_out, log_err) = j
if os.getenv('TRAVIS') == 'true' and int(time.time() - time0) > 20 * 60:
# In travis, timeout individual tests after 20 minutes (to stop tests hanging and not
# providing useful output.
proc.send_signal(signal.SIGINT)
if proc.poll() is not None:
log_out.seek(0), log_err.seek(0)
[stdout, stderr] = [l.read().decode('utf-8') for l in (log_out, log_err)]
log_out.close(), log_err.close()
if proc.returncode == TEST_EXIT_PASSED and stderr == "":
status = "Passed"
elif proc.returncode == TEST_EXIT_SKIPPED:
status = "Skipped"
else:
status = "Failed"
self.num_running -= 1
self.jobs.remove(j)
return TestResult(name, status, int(time.time() - time0)), stdout, stderr
print('.', end='', flush=True)
class TestResult():
def __init__(self, name, status, time):
self.name = name
self.status = status
self.time = time
self.padding = 0
def __repr__(self):
if self.status == "Passed":
color = BLUE
glyph = TICK
elif self.status == "Failed":
color = RED
glyph = CROSS
elif self.status == "Skipped":
color = GREY
glyph = CIRCLE
return color[1] + "%s | %s%s | %s s\n" % (self.name.ljust(self.padding), glyph, self.status.ljust(7), self.time) + color[0]
@property
def was_successful(self):
return self.status != "Failed"
def check_script_list(src_dir):
"""Check scripts directory.
Check that there are no scripts in the functional tests directory which are
not being run by pull-tester.py."""
script_dir = src_dir + '/test/functional/'
python_files = set([t for t in os.listdir(script_dir) if t[-3:] == ".py"])
missed_tests = list(python_files - set(map(lambda x: x.split()[0], ALL_SCRIPTS + NON_SCRIPTS)))
if len(missed_tests) != 0:
print("%sWARNING!%s The following scripts are not being run: %s. Check the test lists in test_runner.py." % (BOLD[1], BOLD[0], str(missed_tests)))
if os.getenv('TRAVIS') == 'true':
# On travis this warning is an error to prevent merging incomplete commits into master
sys.exit(1)
class RPCCoverage(object):
"""
Coverage reporting utilities for test_runner.
Coverage calculation works by having each test script subprocess write
coverage files into a particular directory. These files contain the RPC
commands invoked during testing, as well as a complete listing of RPC
commands per `planbcoin-cli help` (`rpc_interface.txt`).
After all tests complete, the commands run are combined and diff'd against
the complete list to calculate uncovered RPC commands.
See also: test/functional/test_framework/coverage.py
"""
def __init__(self):
self.dir = tempfile.mkdtemp(prefix="coverage")
self.flag = '--coveragedir=%s' % self.dir
def report_rpc_coverage(self):
"""
Print out RPC commands that were unexercised by tests.
"""
uncovered = self._get_uncovered_rpc_commands()
if uncovered:
print("Uncovered RPC commands:")
print("".join((" - %s\n" % i) for i in sorted(uncovered)))
else:
print("All RPC commands covered.")
def cleanup(self):
return shutil.rmtree(self.dir)
def _get_uncovered_rpc_commands(self):
"""
Return a set of currently untested RPC commands.
"""
# This is shared from `test/functional/test-framework/coverage.py`
reference_filename = 'rpc_interface.txt'
coverage_file_prefix = 'coverage.'
coverage_ref_filename = os.path.join(self.dir, reference_filename)
coverage_filenames = set()
all_cmds = set()
covered_cmds = set()
if not os.path.isfile(coverage_ref_filename):
raise RuntimeError("No coverage reference found")
with open(coverage_ref_filename, 'r') as f:
all_cmds.update([i.strip() for i in f.readlines()])
for root, dirs, files in os.walk(self.dir):
for filename in files:
if filename.startswith(coverage_file_prefix):
coverage_filenames.add(os.path.join(root, filename))
for filename in coverage_filenames:
with open(filename, 'r') as f:
covered_cmds.update([i.strip() for i in f.readlines()])
return all_cmds - covered_cmds
if __name__ == '__main__':
main()
|
[
"ysoheil@gmail.com"
] |
ysoheil@gmail.com
|
2c6c3a09d95945c7a9f020b9df2ee127ebe4414a
|
00e29479dc7c45a9e019f96c90a69a49af618ccf
|
/src/api-engine/src/api/routes/user/views.py
|
42300c55ed400a24f4c2f80abe33262434251b0a
|
[
"Apache-2.0",
"CC-BY-4.0"
] |
permissive
|
yunchaozou/cello
|
8dd081db2ce5d9b8975d553d4491d329790588ef
|
68158f572c688f1710813c4df47fad28c3d4276c
|
refs/heads/master
| 2020-04-22T08:40:53.157301
| 2019-02-08T22:35:35
| 2019-02-08T22:35:55
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 2,549
|
py
|
#
# SPDX-License-Identifier: Apache-2.0
#
import logging
from rest_framework import viewsets, status
from rest_framework.decorators import action
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from drf_yasg.utils import swagger_auto_schema
from api.routes.network.serializers import NetworkListResponse
from api.utils.common import with_common_response
from api.routes.company.serializers import (
NodeOperationSerializer,
CompanyQuery,
CompanyCreateBody,
CompanyIDSerializer,
)
from api.auth import CustomAuthenticate
LOG = logging.getLogger(__name__)
class UserViewSet(viewsets.ViewSet):
authentication_classes = (CustomAuthenticate,)
permission_classes = (IsAuthenticated,)
@swagger_auto_schema(
query_serializer=CompanyQuery,
responses=with_common_response(
with_common_response({status.HTTP_200_OK: NetworkListResponse})
),
)
def list(self, request, *args, **kwargs):
"""
List Users
List user through query parameter
"""
LOG.info("user %s", request.user.role)
return Response(data=[], status=status.HTTP_200_OK)
@swagger_auto_schema(
request_body=CompanyCreateBody,
responses=with_common_response(
{status.HTTP_201_CREATED: CompanyIDSerializer}
),
)
def create(self, request):
"""
Create User
Create new user
"""
pass
@swagger_auto_schema(
responses=with_common_response(
{status.HTTP_204_NO_CONTENT: "No Content"}
)
)
def destroy(self, request, pk=None):
"""
Delete User
Delete user
"""
pass
@action(
methods=["get", "post", "put", "delete"],
detail=True,
url_path="attributes",
)
def attributes(self, request, pk=None):
"""
get:
Get User Attributes
Get attributes of user
post:
Create Attributes
Create attribute for user
put:
Update Attribute
Update attribute of user
delete:
Delete Attribute
Delete attribute of user
"""
pass
@swagger_auto_schema(method="post", responses=with_common_response())
@action(methods=["post"], detail=True, url_path="password")
def password(self, request, pk=None):
"""
post:
Update/Reset Password
Update/Reset password for user
"""
pass
|
[
"hightall@me.com"
] |
hightall@me.com
|
0fac751aa2481ed3243e8b4ecef04a4bc1c5f709
|
1d0c89ecaa7598e5cb6a26a20a1bdd5f51d60123
|
/apps/venta/views.py
|
4d70ba59937d3b4dd2807cc2520c3a70b605026b
|
[] |
no_license
|
chrisstianandres/american_audio
|
a1fee70e798a151fcbfd492ed75878a8524c783b
|
ee31f01af4212cc2484188003900648064811fcb
|
refs/heads/master
| 2023-02-01T02:36:59.824789
| 2020-12-09T23:17:45
| 2020-12-09T23:17:45
| 307,203,032
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 27,972
|
py
|
import json
from datetime import datetime
from django.db import transaction
from django.db.models import Sum, Count
from django.db.models.functions import Coalesce
from django.http import JsonResponse, HttpResponse, HttpResponseRedirect
from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.decorators.csrf import csrf_exempt
from django.views.generic import *
from apps.Mixins import ValidatePermissionRequiredMixin
from apps.backEnd import nombre_empresa
from apps.cliente.forms import ClienteForm
from apps.compra.models import Compra
from apps.delvoluciones_venta.models import Devolucion
from apps.inventario.models import Inventario
from apps.servicio.models import Servicio
from apps.venta.forms import VentaForm, Detalle_VentaForm, Detalle_VentaForm_serv
from apps.venta.models import Venta, Detalle_venta, Detalle_venta_servicios
from apps.empresa.models import Empresa
from apps.producto.models import Producto
import os
from django.conf import settings
from django.template.loader import get_template
from xhtml2pdf import pisa
from django.contrib.staticfiles import finders
opc_icono = 'fa fa-shopping-basket '
opc_entidad = 'Ventas'
crud = '/venta/crear'
empresa = nombre_empresa()
class lista(ValidatePermissionRequiredMixin, ListView):
model = Venta
template_name = 'front-end/venta/venta_list.html'
permission_required = 'view_venta'
def get_queryset(self):
return Venta.objects.none()
def get_context_data(self, **kwargs):
data = super().get_context_data(**kwargs)
data['icono'] = opc_icono
data['entidad'] = opc_entidad
data['boton'] = 'Nueva Venta'
data['titulo'] = 'Listado de Ventas'
data['nuevo'] = '/venta/nuevo'
data['empresa'] = empresa
return data
@csrf_exempt
def data(request):
data = []
start_date = request.POST.get('start_date', '')
end_date = request.POST.get('end_date', '')
try:
if start_date == '' and end_date == '':
venta = Venta.objects.all()
else:
venta = Venta.objects.filter(fecha_venta__range=[start_date, end_date])
for c in venta:
data.append([
c.fecha_venta.strftime('%d-%m-%Y'),
c.cliente.nombres + " " + c.cliente.apellidos,
c.empleado.get_full_name(),
format(c.total, '.2f'),
c.id,
c.get_estado_display(),
c.id
])
except:
pass
return JsonResponse(data, safe=False)
def nuevo(request):
data = {
'icono': opc_icono, 'entidad': opc_entidad, 'crud': '../venta/get_producto',
'crudserv': '../venta/get_servicio',
'empresa': empresa,
'boton': 'Guardar Venta', 'action': 'add', 'titulo': 'Nuevo Registro de una Venta',
'key': ''
}
if request.method == 'GET':
data['form'] = VentaForm()
data['form2'] = Detalle_VentaForm()
data['form3'] = Detalle_VentaForm_serv()
data['formc'] = ClienteForm()
data['detalle'] = []
return render(request, 'front-end/venta/venta_form.html', data)
@csrf_exempt
def crear(request):
data = {}
if request.method == 'POST':
datos = json.loads(request.POST['ventas'])
if datos:
with transaction.atomic():
c = Venta()
c.fecha_venta = datos['fecha_venta']
c.cliente_id = datos['cliente']
c.empleado_id = request.user.id
c.subtotal = float(datos['subtotal'])
c.iva = float(datos['iva'])
c.total = float(datos['total'])
c.save()
if datos['productos'] and datos['servicios']:
for i in datos['productos']:
dv = Detalle_venta()
dv.venta_id = c.id
dv.producto_id = i['producto']['id']
dv.cantidadp = int(i['cantidad'])
x = Producto.objects.get(pk=i['producto']['id'])
dv.pvp_actual = float(x.pvp)
x.stock = x.stock - int(i['cantidad'])
dv.subtotalp = float(i['subtotal'])
x.save()
dv.save()
inv = Inventario.objects.filter(producto_id=i['producto']['id'], estado=1)[:i['cantidad']]
for itr in inv:
w = Inventario.objects.get(pk=itr.id)
w.estado = 0
w.venta_id = c.id
w.save()
for s in datos['servicios']:
dvs = Detalle_venta_servicios()
dvs.venta_id = c.id
dvs.servicio_id = s['id']
dvs.cantidads = int(s['cantidad'])
dvs.subtotals = float(s['subtotal'])
dvs.pvp_actual_s = float(s['pvp'])
dvs.save()
data['id'] = c.id
data['resp'] = True
elif datos['productos']:
for i in datos['productos']:
dv = Detalle_venta()
dv.venta_id = c.id
dv.producto_id = i['producto']['id']
dv.cantidadp = int(i['cantidad'])
dv.subtotalp = float(i['subtotal'])
x = Producto.objects.get(pk=i['producto']['id'])
dv.pvp_actual = float(x.pvp)
x.stock = x.stock - int(i['cantidad'])
x.save()
inv = Inventario.objects.filter(producto_id=i['producto']['id'], estado=1)[:i['cantidad']]
for itr in inv:
x = Inventario.objects.get(pk=itr.id)
x.estado = 0
x.venta_id = c.id
x.save()
dv.save()
data['id'] = c.id
data['resp'] = True
else:
for i in datos['servicios']:
dvs = Detalle_venta_servicios()
dvs.venta_id = c.id
dvs.servicio_id = s['id']
dvs.cantidads = int(s['cantidad'])
dvs.subtotals = float(s['subtotal'])
dvs.pvp_actual_s = float(s['pvp'])
dvs.save()
data['id'] = c.id
data['resp'] = True
else:
data['resp'] = False
data['error'] = "Datos Incompletos"
return HttpResponse(json.dumps(data), content_type="application/json")
def editar(request, id):
data = {
'icono': opc_icono, 'entidad': opc_entidad, 'crud': '../../venta/get_producto', 'empresa': empresa,
'boton': 'Editar Venta', 'action': 'edit', 'titulo': 'Editar Registro de una Venta',
'key': id
}
venta = Venta.objects.get(id=id)
if request.method == 'GET':
data['form'] = VentaForm(instance=venta)
data['form2'] = Detalle_VentaForm()
data['detalle'] = json.dumps(get_detalle_productos(id))
return render(request, 'front-end/venta/venta_form.html', data)
@csrf_exempt
def editar_save(request):
data = {}
datos = json.loads(request.POST['ventas'])
if request.POST['action'] == 'edit':
with transaction.atomic():
# c = Compra.objects.get(pk=self.get_object().id)
c = Venta.objects.get(pk=request.POST['key'])
c.fecha_venta = datos['fecha_venta']
c.cliente_id = datos['cliente']
c.subtotal = float(datos['subtotal'])
c.iva = float(datos['iva'])
c.total = float(datos['total'])
c.save()
c.detalle_venta_set.all().delete()
for i in datos['productos']:
dv = Detalle_venta()
dv.venta_id = c.id
dv.producto_id = i['id']
dv.cantidad = int(i['cantidad'])
dv.save()
data['resp'] = True
else:
data['resp'] = False
data['error'] = "Datos Incompletos"
return HttpResponse(json.dumps(data), content_type="application/json")
def get_detalle_productos(id):
data = []
try:
for i in Detalle_venta.objects.filter(venta_id=id):
iva_emp = Empresa.objects.get(pk=1)
item = i.producto.toJSON()
item['cantidad'] = i.cantidad
item['iva_emp'] = format(iva_emp.iva, '.2f')
data.append(item)
except:
pass
return data
@csrf_exempt
def get_producto(request):
data = {}
try:
id = request.POST['id']
if id:
query = Inventario.objects.filter(producto_id=id, estado=1, select=0)[0:1]
iva_emp = Empresa.objects.get(pk=1)
data = []
for i in query:
item = i.toJSON()
item['producto'] = i.producto.toJSON()
item['pvp'] = (i.producto.pvp * 100) / (iva_emp.iva + 100)
item['cantidad'] = 1
item['subtotal'] = 0.00
item['iva_emp'] = iva_emp.iva / 100
data.append(item)
i.select = 1
i.save()
else:
data['error'] = 'No ha selecionado ningun Producto'
except Exception as e:
data['error'] = 'Ha ocurrido un error'
return JsonResponse(data, safe=False)
@csrf_exempt
def get_servicio(request):
data = {}
try:
id = request.POST['id']
if id:
servicio = Servicio.objects.filter(pk=id)
iva_emp = Empresa.objects.get(pk=1)
data = []
for i in servicio:
item = i.toJSON()
item['pvp'] = 1.00
item['cantidad'] = 1
item['subtotal'] = 0.00
item['iva_emp'] = iva_emp.iva / 100
data.append(item)
else:
data['error'] = 'No ha selecionado ningun Servicio'
except Exception as e:
data['error'] = 'Ha ocurrido un error'
return JsonResponse(data, safe=False)
@csrf_exempt
def get_detalle(request):
data = {}
try:
id = request.POST['id']
if id:
data = []
result = Detalle_venta.objects.filter(venta_id=id)
empresa = Empresa.objects.get(pk=1)
for p in result:
data.append({
'producto': p.producto.nombre,
'categoria': p.producto.categoria.nombre,
'presentacion': p.producto.presentacion.nombre,
'cantidad': p.cantidadp,
'pvp': format(((p.pvp_actual * 100) / (empresa.iva + 100)), '.2f'),
# format(((p.pvp_actual_s * 100) / (empresa.iva + 100)), '.2f'),
'subtotal': format(((p.pvp_actual * 100) / (empresa.iva + 100)), '.2f')*p.cantidadp,
})
else:
data['error'] = 'Ha ocurrido un error'
except Exception as e:
data['error'] = str(e)
return JsonResponse(data, safe=False)
@csrf_exempt
def get_detalle_serv(request):
data = {}
try:
id = request.POST['id']
if id:
data = []
empresa = Empresa.objects.get(pk=1)
result = Detalle_venta_servicios.objects.filter(venta_id=id)
for p in result:
data.append({
'servicio': p.servicio.nombre,
'cantidad': p.cantidads,
'pvp': format(((p.pvp_actual_s * 100) / (empresa.iva + 100)), '.2f'),
'subtotal': format(((p.pvp_actual_s * 100) / (empresa.iva + 100)), '.2f')*p.cantidads
})
else:
data['error'] = 'Ha ocurrido un error'
except Exception as e:
data['error'] = str(e)
return JsonResponse(data, safe=False)
@csrf_exempt
def estado(request):
data = {}
try:
id = request.POST['id']
if id:
with transaction.atomic():
es = Venta.objects.get(id=id)
es.estado = 0
dev = Devolucion()
dev.venta_id = id
dev.fecha = datetime.now()
dev.save()
for i in Detalle_venta.objects.filter(venta_id=id):
if i.producto==None:
es.save()
else:
ch = Producto.objects.get(id=i.producto.id)
ch.stock = int(ch.stock) + int(i.cantidadp)
ch.save()
for a in Inventario.objects.filter(venta_id=id):
a.estado = 1
a.select = 0
a.venta_id = None
a.save()
es.save()
else:
data['error'] = 'Ha ocurrido un error'
except Exception as e:
data['error'] = str(e)
return JsonResponse(data)
@csrf_exempt
def eliminar(request):
data = {}
try:
id = request.POST['id']
if id:
es = Venta.objects.get(id=id)
es.delete()
else:
data['error'] = 'Ha ocurrido un error'
except Exception as e:
data['error'] = str(e)
return JsonResponse(data)
@csrf_exempt
def grap(request):
data = {}
try:
action = request.POST['action']
if action == 'chart':
data = {
'dat': {
'name': 'Total de ventas',
'type': 'column',
'colorByPoint': True,
'showInLegend': True,
'data': grap_data(),
},
'year': datetime.now().year,
'chart2': {
'data': dataChart2(),
},
'chart3': {
'compras': datachartcontr(),
'ventas': grap_data()
},
'tarjets': {
'data': data_tarjets()
}
}
else:
data['error'] = 'Ha ocurrido un error'
except Exception as e:
data['error'] = str(e)
return JsonResponse(data, safe=False)
def grap_data():
year = datetime.now().year
data = []
for y in range(1, 13):
total = Venta.objects.filter(fecha_venta__year=year, fecha_venta__month=y, estado=1).aggregate(
r=Coalesce(Sum('total'), 0)).get('r')
data.append(float(total))
return data
def data_tarjets():
year = datetime.now().year
ventas = Venta.objects.filter(fecha_venta__year=year, estado=1).aggregate(r=Coalesce(Count('id'), 0)).get('r')
compras = Compra.objects.filter(fecha_compra__year=year, estado=1).aggregate(r=Coalesce(Count('id'), 0)).get('r')
inventario = Inventario.objects.filter(compra__fecha_compra__year=year, estado=1).aggregate(
r=Coalesce(Count('id'), 0)).get('r')
data = {
'ventas': int(ventas),
'compras': int(compras),
'inventario': int(inventario),
}
return data
def dataChart2():
year = datetime.now().year
month = datetime.now().month
data = []
producto = Producto.objects.all()
for p in producto:
total = Detalle_venta.objects.filter(venta__fecha_venta__year=year, venta__fecha_venta__month=month,
producto_id=p).aggregate(r=Coalesce(Sum('venta__total'), 0)).get('r')
data.append({
'name': p.nombre,
'y': float(total)
})
return data
def datachartcontr():
year = datetime.now().year
data = []
for y in range(1, 13):
totalc = Compra.objects.filter(fecha_compra__year=year, fecha_compra__month=y, estado=1).aggregate(
r=Coalesce(Sum('total'), 0)).get('r')
data.append(float(totalc))
return data
class printpdf(View):
def link_callback(self, uri, rel):
"""
Convert HTML URIs to absolute system paths so xhtml2pdf can access those
resources
"""
result = finders.find(uri)
if result:
if not isinstance(result, (list, tuple)):
result = [result]
result = list(os.path.realpath(path) for path in result)
path = result[0]
else:
sUrl = settings.STATIC_URL # Typically /static/
sRoot = settings.STATIC_ROOT # Typically /home/userX/project_static/
mUrl = settings.MEDIA_URL # Typically /media/
mRoot = settings.MEDIA_ROOT # Typically /home/userX/project_static/media/
if uri.startswith(mUrl):
path = os.path.join(mRoot, uri.replace(mUrl, ""))
elif uri.startswith(sUrl):
path = os.path.join(sRoot, uri.replace(sUrl, ""))
else:
return uri
# make sure that file exists
if not os.path.isfile(path):
raise Exception(
'media URI must start with %s or %s' % (sUrl, mUrl)
)
return path
def pvp_cal(self, *args, **kwargs):
data = []
try:
iva_emp = Empresa.objects.get(pk=1)
for i in Detalle_venta.objects.filter(venta_id=self.kwargs['pk']):
item = i.venta.toJSON()
item['producto'] = i.producto.toJSON()
item['pvp'] = format(((i.pvp_actual * 100) / (iva_emp.iva + 100)), '.2f')
item['cantidadp'] = i.cantidadp
item['subtotalp'] = format(((i.pvp_actual * 100) / (iva_emp.iva + 100)), '.2f')*i.cantidadp
data.append(item)
except:
pass
return data
def serv(self, *args, **kwargs):
data = []
try:
iva_emp = Empresa.objects.get(pk=1)
for i in Detalle_venta_servicios.objects.filter(venta_id=self.kwargs['pk']):
item = i.venta.toJSON()
item['servicio'] = i.servicio.toJSON()
item['pvp_s'] = format(((i.pvp_actual_s * 100) / (iva_emp.iva + 100)), '.2f')
item['cantidads'] = i.cantidads
item['subtotals'] = format(((i.pvp_actual_s * 100) / (iva_emp.iva + 100)), '.2f')*i.cantidads
data.append(item)
except:
pass
return data
def get(self, request, *args, **kwargs):
try:
template = get_template('front-end/report/pdf.html')
context = {'title': 'Comprobante de Venta',
'sale': Venta.objects.get(pk=self.kwargs['pk']),
'det_sale': self.pvp_cal(),
'det_serv': self.serv(),
'empresa': Empresa.objects.get(id=1),
'icon': 'media/logo_don_chuta.png',
'inventario': Inventario.objects.filter(venta_id=self.kwargs['pk'])
}
html = template.render(context)
response = HttpResponse(content_type='application/pdf')
response['Content-Disposition'] = 'attachment; filename="report.pdf"'
pisa_status = pisa.CreatePDF(html, dest=response, link_callback=self.link_callback)
return response
except:
pass
return HttpResponseRedirect(reverse_lazy('venta:lista'))
@csrf_exempt
def data_report(request):
data = []
start_date = request.POST.get('start_date', '')
end_date = request.POST.get('end_date', '')
tipo = request.POST.get('tipo', '')
empresa = Empresa.objects.get(pk=1)
iva = float(empresa.iva / 100)
try:
if int(tipo) == 1:
if start_date == '' and end_date == '':
query = Detalle_venta.objects.exclude(cantidadp=0).values('venta__fecha_venta', 'producto__nombre',
'pvp_actual').order_by().annotate(
Sum('cantidadp')).filter(venta__estado=1)
else:
query = Detalle_venta.objects.exclude(cantidadp=0).values('venta__fecha_venta', 'producto__nombre',
'pvp_actual') \
.filter(venta__fecha_venta__range=[start_date, end_date], venta__estado=1).order_by().annotate(
Sum('cantidadp'))
for p in query:
total = p['pvp_actual'] * p['cantidadp__sum']
total_sin_iva = float((total * 100) / (100 + empresa.iva))
data.append([
p['venta__fecha_venta'].strftime("%d/%m/%Y"),
p['producto__nombre'],
'Producto',
int(p['cantidadp__sum']),
format(p['pvp_actual'], '.2f'),
format(total_sin_iva, '.2f'),
format(total_sin_iva * iva, '.2f'),
format(total, '.2f')
])
elif int(tipo) == 2:
if start_date == '' and end_date == '':
query = Detalle_venta.objects.exclude(cantidads=0).values('venta__fecha_venta', 'servicio__nombre',
'pvp_actual_s').annotate(
Sum('cantidads')).filter(venta__estado=1)
else:
query = Detalle_venta.objects.exclude(cantidads=0).values('venta__fecha_venta', 'servicio__nombre',
'pvp_actual_s') \
.filter(venta__fecha_venta__range=[start_date, end_date], venta__estado=1).annotate(
Sum('cantidads'))
for p in query:
total = float(p['pvp_actual_s'] * p['cantidads__sum'])
data.append([
p['venta__fecha_venta'].strftime("%d/%m/%Y"),
p['servicio__nombre'],
'Servicio',
int(p['cantidads__sum']),
format(p['pvp_actual_s'], '.2f'),
format(total, '.2f'),
format(total * iva, '.2f'),
format(total * (1 + iva), '.2f')
])
else:
if start_date == '' and end_date == '':
query = Detalle_venta.objects.exclude(cantidadp=0).values('venta__fecha_venta', 'producto__nombre',
'pvp_actual').order_by().annotate(
Sum('cantidadp')).filter(venta__estado=1)
query2 = Detalle_venta.objects.exclude(cantidads=0).values('venta__fecha_venta', 'servicio__nombre',
'pvp_actual_s').annotate(
Sum('cantidads')).filter(venta__estado=1)
else:
query = Detalle_venta.objects.exclude(cantidadp=0).values('venta__fecha_venta', 'producto__nombre',
'pvp_actual') \
.filter(venta__fecha_venta__range=[start_date, end_date], venta__estado=1).order_by().annotate(
Sum('cantidadp'))
query2 = Detalle_venta.objects.exclude(cantidads=0).values('venta__fecha_venta', 'servicio__nombre',
'pvp_actual_s') \
.filter(venta__fecha_venta__range=[start_date, end_date], venta__estado=1).annotate(
Sum('cantidads'))
for p in query:
totalp = p['pvp_actual'] * p['cantidadp__sum']
total_sin_iva = float((totalp * 100) / (100 + empresa.iva))
data.append([
p['venta__fecha_venta'].strftime("%d/%m/%Y"),
p['producto__nombre'],
'Producto',
int(p['cantidadp__sum']),
format(p['pvp_actual'], '.2f'),
format(total_sin_iva, '.2f'),
format(total_sin_iva * iva, '.2f'),
format(totalp, '.2f')
])
for q in query2:
totals = float(q['pvp_actual_s'] * q['cantidads__sum'])
data.append([
q['venta__fecha_venta'].strftime("%d/%m/%Y"),
q['servicio__nombre'],
'Servicio',
int(q['cantidads__sum']),
format(q['pvp_actual_s'], '.2f'),
format(totals, '.2f'),
format(totals * iva, '.2f'),
format(totals * (1 + iva), '.2f')
])
except:
pass
return JsonResponse(data, safe=False)
class report(ValidatePermissionRequiredMixin, ListView):
model = Venta
template_name = 'front-end/venta/venta_report_product.html'
permission_required = 'view_venta'
def get_queryset(self):
return Venta.objects.none()
def get_context_data(self, **kwargs):
data = super().get_context_data(**kwargs)
data['icono'] = opc_icono
data['entidad'] = opc_entidad
data['boton'] = 'Nueva Venta'
data['titulo'] = 'Listado de Ventas'
data['nuevo'] = '/venta/nuevo'
data['empresa'] = empresa
data['filter_prod'] = '/venta/lista'
return data
@csrf_exempt
def data_report_total(request):
x = Venta.objects.get(id=35)
x.iva = float(1.80)
x.save()
data = []
start_date = request.POST.get('start_date', '')
end_date = request.POST.get('end_date', '')
try:
if start_date == '' and end_date == '':
query = Venta.objects.values('fecha_venta', 'cliente__nombres', 'cliente__apellidos', 'empleado__first_name'
, 'empleado__last_name').annotate(Sum('subtotal')). \
annotate(Sum('iva')).annotate(Sum('total')).filter(estado=1)
else:
query = Venta.objects.values('fecha_venta', 'cliente__nombres', 'cliente__apellidos',
'empleado__first_name',
'empleado__last_name').filter(
fecha_venta__range=[start_date, end_date], estado=1).annotate(Sum('subtotal')). \
annotate(Sum('iva')).annotate(Sum('total'))
for p in query:
data.append([
p['fecha_venta'].strftime("%d/%m/%Y"),
p['cliente__nombres'] + " " + p['cliente__apellidos'],
p['empleado__first_name'] + " " + p['empleado__last_name'],
format(p['subtotal__sum'], '.2f'),
format((p['iva__sum']), '.2f'),
format(p['total__sum'], '.2f')
])
except:
pass
return JsonResponse(data, safe=False)
class report_total(ValidatePermissionRequiredMixin, ListView):
model = Venta
template_name = 'front-end/venta/venta_report_total.html'
permission_required = 'view_venta'
def get_queryset(self):
return Venta.objects.none()
def get_context_data(self, **kwargs):
data = super().get_context_data(**kwargs)
data['icono'] = opc_icono
data['entidad'] = opc_entidad
data['boton'] = 'Nueva Venta'
data['titulo'] = 'Listado de Ventas'
data['nuevo'] = '/venta/nuevo'
data['empresa'] = empresa
data['filter_prod'] = '/venta/lista'
return data
|
[
"Chrisstianandres@gmail.com"
] |
Chrisstianandres@gmail.com
|
ac605461478c38b29888febfb314e4ce4df02cb0
|
163bbb4e0920dedd5941e3edfb2d8706ba75627d
|
/Code/CodeRecords/2223/60595/241841.py
|
6076414ea5c1392865c888fc83043dbdc578bc50
|
[] |
no_license
|
AdamZhouSE/pythonHomework
|
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
|
ffc5606817a666aa6241cfab27364326f5c066ff
|
refs/heads/master
| 2022-11-24T08:05:22.122011
| 2020-07-28T16:21:24
| 2020-07-28T16:21:24
| 259,576,640
| 2
| 1
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 121
|
py
|
num=input()
if(num=="1,2,4,7"):
print("[0, -4]")
elif(num=="1,2,2,4"):
print("[2, 3]")
else:
print("[2, 1]")
|
[
"1069583789@qq.com"
] |
1069583789@qq.com
|
0f638cb37c3cfe9526b6699975d791d2e7f0eaff
|
487ce91881032c1de16e35ed8bc187d6034205f7
|
/codes/CodeJamCrawler/16_0_3_neat/16_0_3_yesdongil_main_big.py
|
207b07db4c346d26f784da03b2499dd769587875
|
[] |
no_license
|
DaHuO/Supergraph
|
9cd26d8c5a081803015d93cf5f2674009e92ef7e
|
c88059dc66297af577ad2b8afa4e0ac0ad622915
|
refs/heads/master
| 2021-06-14T16:07:52.405091
| 2016-08-21T13:39:13
| 2016-08-21T13:39:13
| 49,829,508
| 2
| 0
| null | 2021-03-19T21:55:46
| 2016-01-17T18:23:00
|
Python
|
UTF-8
|
Python
| false
| false
| 1,846
|
py
|
import os
import sys
import math
import itertools
def xrange(start, stop):
i = start
while i < stop:
yield i
i += 1
def is_prime(value) :
ret = 0
if (value % 2) == 0 :
ret = 2
elif (value % 3) == 0 :
ret = 3
else :
limit = int(math.sqrt(value))
index_limit = limit/6 + 1
for i in xrange(1, index_limit) :
prime_v = 6*i - 1
if (value % prime_v) == 0 :
ret = prime_v
break
prime_v = 6*i + 1
if (value % prime_v) == 0 :
ret = prime_v
break
if(prime_v > 10000) :
break
return ret
def make_value(N, middle, base) :
result = 1 + base**(N-1)
mul = base
while (middle > 0) :
remainder = middle % 2
if(remainder == 1) :
result += mul
mul=mul*base
middle /= 2
return result
def get_result(N, J) :
ret = []
result = []
limit = 2**(N-2)
prime_ret = 0
list_count = 0
for i in range(0, limit) :
divisor_list = []
for base in range(2, 11) :
test_v = make_value(N, i, base)
prime_ret = is_prime(test_v)
if(prime_ret == 0) :
break
else :
divisor_list.append(prime_ret)
if(prime_ret > 0) :
result.append(make_value(N, i, 10))
result.extend(divisor_list)
ret.append(result)
result = []
list_count += 1
if(list_count == J) :
break
return ret
def Main():
result_list = []
arg = []
CASE_N = int(raw_input())
line = raw_input()
arg = line.split()
result_list = get_result(int(arg[0]), int(arg[1]))
print 'Case #1:'
for result in result_list :
for result_one in result :
sys.stdout.write(str(result_one) + ' ')
sys.stdout.write('\n')
if __name__ == '__main__':
sys.exit(Main())
|
[
"[dhuo@tcd.ie]"
] |
[dhuo@tcd.ie]
|
edeee6602b190ca18e61ad5f160a964b27d00952
|
53fab060fa262e5d5026e0807d93c75fb81e67b9
|
/backup/user_256/ch34_2020_04_23_17_53_27_919517.py
|
ee3644d60592c2aae2ec473d6ba51ecadb41d2fe
|
[] |
no_license
|
gabriellaec/desoft-analise-exercicios
|
b77c6999424c5ce7e44086a12589a0ad43d6adca
|
01940ab0897aa6005764fc220b900e4d6161d36b
|
refs/heads/main
| 2023-01-31T17:19:42.050628
| 2020-12-16T05:21:31
| 2020-12-16T05:21:31
| 306,735,108
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 486
|
py
|
def eh_primo(n):
if n == 0 or n == 1:
return False
elif n == 2:
return True
for i in range(3, n, 2):
if n%2==0:
return False
elif n%i==0:
return False
else:
return True
def maior_primo_menor_que(n):
p = -1
while n>0:
if n ==2:
return 2
else:
if eh_primo(n):
p == n
elif:
n-=1
return p
|
[
"you@example.com"
] |
you@example.com
|
fafe549264abbc0749503ca3d08dbbc62fe4299b
|
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
|
/lambda_write_f/function-event-invoke-config_delete.py
|
15016e42d8d9604bacece336bdaec2f86610b9a1
|
[] |
no_license
|
lxtxl/aws_cli
|
c31fc994c9a4296d6bac851e680d5adbf7e93481
|
aaf35df1b7509abf5601d3f09ff1fece482facda
|
refs/heads/master
| 2023-02-06T09:00:33.088379
| 2020-12-27T13:38:45
| 2020-12-27T13:38:45
| 318,686,394
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,010
|
py
|
#!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__':
"""
get-function-event-invoke-config : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lambda/get-function-event-invoke-config.html
list-function-event-invoke-configs : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lambda/list-function-event-invoke-configs.html
put-function-event-invoke-config : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lambda/put-function-event-invoke-config.html
update-function-event-invoke-config : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lambda/update-function-event-invoke-config.html
"""
write_parameter("lambda", "delete-function-event-invoke-config")
|
[
"hcseo77@gmail.com"
] |
hcseo77@gmail.com
|
4e42e313b4e8f4517cca59865a67badc6b525b39
|
200df6cda6e54d56a4c800e10e6d5f248d7d59f2
|
/02-算法思想/广度优先搜索/778.水位上升的泳池中游泳(H).py
|
0d5613ed1b63a75e2a20984da04124b0b0f7e70b
|
[] |
no_license
|
jh-lau/leetcode_in_python
|
b9b9a47d0b3ce29c3c56836b39decc3ec4487777
|
1d1876620a55ff88af7bc390cf1a4fd4350d8d16
|
refs/heads/master
| 2023-04-17T15:01:49.925774
| 2021-04-24T01:17:39
| 2021-04-24T01:17:39
| 192,735,826
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 6,600
|
py
|
"""
@Author : liujianhan
@Date : 20/9/26 19:31
@Project : leetcode_in_python
@FileName : 778.水位上升的泳池中游泳(H).py
@Description : 在一个 N x N 的坐标方格 grid 中,每一个方格的值 grid[i][j] 表示在位置 (i,j) 的平台高度。
现在开始下雨了。当时间为 t 时,此时雨水导致水池中任意位置的水位为 t 。你可以从一个平台游向四周相邻的任意一个平台,
但是前提是此时水位必须同时淹没这两个平台。假定你可以瞬间移动无限距离,也就是默认在方格内部游动是不耗时的。
当然,在你游泳的时候你必须待在坐标方格里面。
你从坐标方格的左上平台 (0,0) 出发。最少耗时多久你才能到达坐标方格的右下平台 (N-1, N-1)?
示例 1:
输入: [[0,2],[1,3]]
输出: 3
解释:
时间为0时,你位于坐标方格的位置为 (0, 0)。
此时你不能游向任意方向,因为四个相邻方向平台的高度都大于当前时间为 0 时的水位。
等时间到达 3 时,你才可以游向平台 (1, 1). 因为此时的水位是 3,坐标方格中的平台没有比水位 3 更高的,所以你可以游向坐标方格中的任意位置
示例2:
输入: [[0,1,2,3,4],[24,23,22,21,5],[12,13,14,15,16],[11,17,18,19,20],[10,9,8,7,6]]
输出: 16
解释:
0 1 2 3 4
24 23 22 21 5
12 13 14 15 16
11 17 18 19 20
10 9 8 7 6
最终的路线用加粗进行了标记。
我们必须等到时间为 16,此时才能保证平台 (0, 0) 和 (4, 4) 是连通的
提示:
2 <= N <= 50.
grid[i][j] 位于区间 [0, ..., N*N - 1] 内。
"""
import bisect
import sys
from typing import List
class Solution:
# 228ms, 14MB
@staticmethod
def swim_in_water(grid: List[List[int]]) -> int:
"""
并查集
@param grid:
@return:
"""
n = len(grid)
p = [[(i, j) for j in range(n)] for i in range(n)] # 并查集二维数组初始化
h = sorted([[grid[i][j], i, j] for j in range(n) for i in range(n)]) # 按高度对点排序
def f(a, b):
if (a, b) != p[a][b]:
p[a][b] = f(*p[a][b]) # 二元并查集,元组传参要用*解包
return p[a][b]
k = 0
for t in range(max(grid[0][0], grid[-1][-1]), h[-1][0]): # 起点是两个对角的最大值,终点是整个数据里的最大高度
while h[k][0] <= t:
_, i, j = h[k]
for x, y in [(i + 1, j), (i, j + 1), (i - 1, j), (i, j - 1)]:
if 0 <= x < n and 0 <= y < n:
if grid[i][j] <= t and grid[x][y] <= t:
(pi, pj), (px, py) = f(i, j), f(x, y)
if (pi, pj) != (px, py): # 让符合时间空间条件且不相同的集合合并
p[px][py] = (pi, pj)
k += 1
if f(0, 0) == f(n - 1, n - 1): # 首末元素属于同一个集合就返回答案
return t
return h[-1][0]
# 172ms,, 13.8MB
@staticmethod
def swim_in_water_v2(grid: List[List[int]]) -> int:
"""
BFS
@param grid:
@return:
"""
n = len(grid)
c = {(0, 0)} # 访问标记
for t in range(max(grid[0][0], grid[-1][-1]), sys.maxsize): # 从首末元素的最大时间作为最开始的判断条件
p = c.copy() # 宽搜队列初始化,每个时间点的初始状态是上一轮时间访问标记过的坐标
while p:
q = set() # 下一批宽搜队列
for i, j in p:
if i == j == n - 1: # 如果走到目标了就返回时间
return t
for x, y in [(i + 1, j), (i, j + 1), (i - 1, j), (i, j - 1)]:
if 0 <= x < n and 0 <= y < n and grid[x][y] <= t and (x, y) not in c: # 符合时空条件就扩散地图
q |= {(x, y)}
c |= {(x, y)}
p = q
# 128ms, 13.8MB
@staticmethod
def swim_in_water_v3(grid: List[List[int]]) -> int:
"""
升序队列
@param grid:
@return:
"""
n = len(grid)
b = {(0, 0)} # 访问标记
p = [[grid[0][0], 0, 0]] # 升序队列初始化
t = 0 # 途径最大时间标记
while True:
h, i, j = p.pop(0)
t = max(t, h)
if i == j == n - 1: # 找到终点就就返回时间
return t
for x, y in [(i + 1, j), (i, j + 1), (i - 1, j), (i, j - 1)]:
if 0 <= x < n and 0 <= y < n and (x, y) not in b:
bisect.insort(p, [grid[x][y], x, y]) # 二分插入
b |= {(x, y)}
# 140ms, 13.7MB
@staticmethod
def swim_in_water_v4(grid: List[List[int]]) -> int:
"""
双向升序队列
@param grid:
@return:
"""
n = len(grid)
b, e = {(0, 0)}, {(n - 1, n - 1)} # 双向访问标记
p, q = [[grid[0][0], 0, 0]], [[grid[-1][-1], n - 1, n - 1]] # 双向升序队列初始化
t = 0 # 途径最大时间标记
while True:
h, i, j = p.pop(0)
t = max(t, h)
if (i, j) in e: # 如果找到的点已经存在于另一个队列里,就返回答案
return t
for x, y in [(i + 1, j), (i, j + 1), (i - 1, j), (i, j - 1)]:
if 0 <= x < n and 0 <= y < n and (x, y) not in b:
bisect.insort(p, [grid[x][y], x, y])
b |= {(x, y)}
h, i, j = q.pop(0) # 从这里开始都是对称的,调换p,q,b,e就行。
t = max(t, h)
if (i, j) in b:
return t
for x, y in [(i + 1, j), (i, j + 1), (i - 1, j), (i, j - 1)]:
if 0 <= x < n and 0 <= y < n and (x, y) not in e:
bisect.insort(q, [grid[x][y], x, y])
e |= {(x, y)}
if __name__ == '__main__':
test_cases = [
[[0, 2], [1, 3]],
[[0, 1, 2, 3, 4], [24, 23, 22, 21, 5], [12, 13, 14, 15, 16], [11, 17, 18, 19, 20], [10, 9, 8, 7, 6]],
]
for tc in test_cases:
print(Solution.swim_in_water(tc))
print(Solution.swim_in_water_v2(tc))
print(Solution.swim_in_water_v3(tc))
print(Solution.swim_in_water_v4(tc))
|
[
"lorgerd@163.com"
] |
lorgerd@163.com
|
8f6544b242c2b325c60dfe4ba718e842a1bd5da5
|
99c4d4a6592fded0e8e59652484ab226ac0bd38c
|
/code/batch-2/dn4 - krajevne funkcije/M-17221-2470.py
|
10d80965dddb932bac3c85dd6f23dabfac539c8c
|
[] |
no_license
|
benquick123/code-profiling
|
23e9aa5aecb91753e2f1fecdc3f6d62049a990d5
|
0d496d649247776d121683d10019ec2a7cba574c
|
refs/heads/master
| 2021-10-08T02:53:50.107036
| 2018-12-06T22:56:38
| 2018-12-06T22:56:38
| 126,011,752
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 11,073
|
py
|
# Tu pišite svoje funkcije:
from math import *
def koordinate(ime, kraji):
for kraj in kraji:
if(kraj[0] == ime):
return (kraj[1], kraj[2])
return None
def razdalja_koordinat(x1, y1, x2, y2):
return sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)
def razdalja(ime1, ime2, kraji):
koordinate1 = koordinate(ime1, kraji)
koordinate2 = koordinate(ime2, kraji)
return razdalja_koordinat(koordinate1[0], koordinate1[1], koordinate2[0], koordinate2[1])
def v_dometu(ime, domet, kraji):
seznamKrajev = []
for kraj in kraji:
if(kraj[0] != ime and razdalja(ime, kraj[0], kraji) <= domet):
seznamKrajev.append(kraj[0])
return seznamKrajev
def najbolj_oddaljeni(ime, imena, kraji):
maxLen = -1
returnIme = None
for imeL in imena:
if(razdalja(ime, imeL, kraji) > maxLen):
maxLen = razdalja(ime, imeL, kraji)
returnIme = imeL
return returnIme
def zalijemo(ime, domet, kraji):
return najbolj_oddaljeni(ime, v_dometu(ime, domet, kraji), kraji)
def presek(s1, s2):
presekKraji = []
for kraj1 in s1:
for kraj2 in s2:
if(kraj1 == kraj2):
presekKraji.append(kraj1)
return presekKraji
def skupno_zalivanje(ime1, ime2, domet, kraji):
seznamKrajev = []
for kraj in kraji:
if razdalja(ime1, kraj[0], kraji) < domet and razdalja(ime2, kraj[0], kraji) < domet:
seznamKrajev.append(kraj[0])
return seznamKrajev
import unittest
class TestKraji(unittest.TestCase):
vsi_kraji = [
('Brežice', 68.66, 7.04),
('Lenart', 85.20, 78.75),
('Rateče', -65.04, 70.04),
('Ljutomer', 111.26, 71.82),
('Rogaška Slatina', 71.00, 42.00),
('Ribnica', 7.10, -10.50),
('Dutovlje', -56.80, -6.93),
('Lokve', -57.94, 19.32),
('Vinica', 43.81, -38.43),
('Brtonigla', -71.00, -47.25),
('Kanal', -71.00, 26.25),
('Črnomelj', 39.05, -27.93),
('Trbovlje', 29.61, 35.07),
('Beltinci', 114.81, 80.54),
('Domžale', -2.34, 31.50),
('Hodoš', 120.70, 105.00),
('Škofja Loka', -23.64, 35.07),
('Velike Lašče', 0.00, 0.00),
('Velenje', 33.16, 54.29),
('Šoštanj', 29.61, 57.75),
('Laško', 42.60, 33.29),
('Postojna', -29.54, -5.25),
('Ilirska Bistrica', -27.19, -27.93),
('Radenci', 100.61, 84.00),
('Črna', 15.41, 66.57),
('Radeče', 39.05, 24.57),
('Vitanje', 47.36, 57.75),
('Bled', -37.84, 56.07),
('Tolmin', -63.90, 36.75),
('Miren', -72.14, 7.04),
('Ptuj', 87.61, 61.32),
('Gornja Radgona', 97.06, 89.25),
('Plave', -73.34, 21.00),
('Novo mesto', 37.91, -3.47),
('Bovec', -76.89, 52.50),
('Nova Gorica', -69.79, 12.29),
('Krško', 60.35, 14.07),
('Cerknica', -18.89, -3.47),
('Slovenska Bistrica', 66.31, 57.75),
('Anhovo', -72.14, 22.78),
('Ormož', 107.71, 61.32),
('Škofije', -59.14, -27.93),
('Čepovan', -60.35, 22.78),
('Murska Sobota', 108.91, 87.57),
('Ljubljana', -8.24, 22.78),
('Idrija', -43.74, 17.54),
('Radlje ob Dravi', 41.46, 82.32),
('Žalec', 37.91, 43.79),
('Mojstrana', -49.70, 64.79),
('Log pod Mangartom', -73.34, 59.54),
('Podkoren', -62.69, 70.04),
('Kočevje', 16.61, -21.00),
('Soča', -69.79, 52.50),
('Ajdovščina', -53.25, 5.25),
('Bohinjska Bistrica', -48.49, 47.25),
('Tržič', -22.44, 56.07),
('Piran', -75.69, -31.50),
('Kranj', -20.09, 43.79),
('Kranjska Gora', -60.35, 68.25),
('Izola', -68.59, -31.50),
('Radovljica', -31.95, 54.29),
('Gornji Grad', 13.06, 49.03),
('Šentjur', 54.46, 40.32),
('Koper', -63.90, -29.72),
('Celje', 45.01, 42.00),
('Mislinja', 42.60, 66.57),
('Metlika', 48.56, -19.21),
('Žaga', -81.65, 49.03),
('Komen', -63.90, -1.68),
('Žužemberk', 21.30, 0.00),
('Pesnica', 74.55, 80.54),
('Vrhnika', -23.64, 14.07),
('Dravograd', 28.40, 78.75),
('Kamnik', -1.14, 40.32),
('Jesenice', -40.19, 64.79),
('Kobarid', -74.55, 43.79),
('Portorož', -73.34, -33.18),
('Muta', 37.91, 82.32),
('Sežana', -54.39, -13.96),
('Vipava', -47.29, 1.79),
('Maribor', 72.21, 75.28),
('Slovenj Gradec', 31.95, 71.82),
('Litija', 14.20, 22.78),
('Na Logu', -62.69, 57.75),
('Stara Fužina', -52.04, 47.25),
('Motovun', -56.80, -52.50),
('Pragersko', 73.41, 57.75),
('Most na Soči', -63.90, 33.29),
('Brestanica', 60.35, 15.75),
('Savudrija', -80.44, -34.96),
('Sodražica', 0.00, -6.93),
]
class CountCalls:
def __init__(self, f):
self.f = f
self.call_count = 0
def __call__(self, *args, **kwargs):
self.call_count += 1
return self.f(*args, **kwargs)
@classmethod
def setUpClass(cls):
global koordinate, razdalja_koordinat
try:
koordinate = cls.CountCalls(koordinate)
except:
pass
try:
razdalja_koordinat = cls.CountCalls(razdalja_koordinat)
except:
pass
def test_1_koordinate(self):
kraji = [
('Brežice', 68.66, 7.04),
('Lenart', 85.20, 78.75),
('Rateče', -65.04, 70.04),
('Ljutomer', 111.26, 71.82)
]
self.assertEqual(koordinate("Brežice", kraji), (68.66, 7.04))
self.assertEqual(koordinate("Lenart", kraji), (85.20, 78.75))
self.assertEqual(koordinate("Rateče", kraji), (-65.04, 70.04))
self.assertEqual(koordinate("Ljutomer", kraji), (111.26, 71.82))
self.assertIsNone(koordinate("Ljubljana", kraji))
kraji = [('Brežice', 68.66, 7.04)]
self.assertEqual(koordinate("Brežice", kraji), (68.66, 7.04))
self.assertIsNone(koordinate("Lenart", kraji))
kraji = []
self.assertIsNone(koordinate("Brežice", kraji))
def test_1_range_len(self):
class NoGetItem(list):
def __getitem__(*x):
raise IndexError("Nauči se (pravilno) uporabljati zanko for!")
kraji = NoGetItem([('Brežice', 68.66, 7.04), ('Lenart', 85.20, 78.75),
('Rateče', -65.04, 70.04)])
self.assertEqual(koordinate("Brežice", kraji), (68.66, 7.04))
self.assertEqual(koordinate("Lenart", kraji), (85.20, 78.75))
self.assertEqual(koordinate("Rateče", kraji), (-65.04, 70.04))
self.assertIsNone(koordinate("Ljubljana", kraji))
def test_2_razdalja_koordinat(self):
self.assertEqual(razdalja_koordinat(0, 0, 1, 0), 1)
self.assertEqual(razdalja_koordinat(0, 0, 0, 1), 1)
self.assertEqual(razdalja_koordinat(0, 0, -1, 0), 1)
self.assertEqual(razdalja_koordinat(0, 0, 0, -1), 1)
self.assertEqual(razdalja_koordinat(1, 0, 0, 0), 1)
self.assertEqual(razdalja_koordinat(0, 1, 0, 0), 1)
self.assertEqual(razdalja_koordinat(-1, 0, 0, 0), 1)
self.assertEqual(razdalja_koordinat(0, -1, 0, 0), 1)
self.assertEqual(razdalja_koordinat(1, 2, 4, 6), 5)
self.assertEqual(razdalja_koordinat(1, 2, -2, 6), 5)
self.assertEqual(razdalja_koordinat(1, 2, 4, -2), 5)
self.assertEqual(razdalja_koordinat(1, 2, -2, -2), 5)
from math import sqrt
self.assertAlmostEqual(razdalja_koordinat(1, 2, 0, 1), sqrt(2))
def test_3_razdalja_krajev(self):
kraji = [
('Brežice', 10, 20),
('Lenart', 13, 24),
('Rateče', 17, 20),
('Ljutomer', 8, 36)
]
from math import sqrt
self.assertEqual(razdalja("Brežice", "Lenart", kraji), 5)
self.assertEqual(razdalja("Lenart", "Brežice", kraji), 5)
self.assertEqual(razdalja("Brežice", "Rateče", kraji), 7)
self.assertAlmostEqual(razdalja("Lenart", "Rateče", kraji), sqrt(32))
self.assertEqual(razdalja("Lenart", "Ljutomer", kraji), 13)
koordinate.call_count = razdalja_koordinat.call_count = 0
razdalja("Brežice", "Lenart", kraji)
self.assertEqual(
koordinate.call_count, 2,
"Funkcija `razdalja` mora dvakrat poklicati `koordinate`")
self.assertEqual(
razdalja_koordinat.call_count, 1,
"Funkcija `razdalja` mora enkrat poklicati `razdalja`")
def test_4_v_dometu(self):
kraji = [
('Lenart', 13, 24),
('Brežice', 10, 20), # Lenart <-> Brežice = 5
('Rateče', 17, 20), # Lenart <-> Rateče = 5.66
('Ljutomer', 8, 36) # Lenart <-> Ljutomer = 13
]
self.assertEqual(v_dometu("Lenart", 5, kraji), ["Brežice"])
self.assertEqual(v_dometu("Lenart", 3, kraji), [])
self.assertEqual(set(v_dometu("Lenart", 6, kraji)), {"Brežice", "Rateče"})
kraji = self.vsi_kraji
self.assertEqual(set(v_dometu("Ljubljana", 20, kraji)), {'Vrhnika', 'Domžale', 'Kamnik', 'Škofja Loka'})
def test_5_najbolj_oddaljeni(self):
kraji = [
('Lenart', 13, 24),
('Brežice', 10, 20), # Lenart <-> Brežice = 5
('Rateče', 17, 20), # Lenart <-> Rateče = 5.66
('Ljutomer', 8, 36) # Lenart <-> Ljutomer = 13
]
self.assertEqual(najbolj_oddaljeni("Lenart", ["Brežice", "Rateče"], kraji), "Rateče")
self.assertEqual(najbolj_oddaljeni("Lenart", ["Brežice"], kraji), "Brežice")
kraji = self.vsi_kraji
self.assertEqual(najbolj_oddaljeni("Ljubljana", ["Domžale", "Kranj", "Maribor", "Vrhnika"], kraji), "Maribor")
def test_6_zalijemo(self):
self.assertEqual(zalijemo("Ljubljana", 30, self.vsi_kraji), "Cerknica")
def test_7_presek(self):
self.assertEqual(presek([1, 5, 2], [3, 1, 4]), [1])
self.assertEqual(presek([1, 5, 2], [3, 0, 4]), [])
self.assertEqual(presek([1, 5, 2], []), [])
self.assertEqual(presek([], [3, 0, 4]), [])
self.assertEqual(presek([], []), [])
self.assertEqual(set(presek([1, 5, 2], [2, 0, 5])), {2, 5})
self.assertEqual(presek(["Ana", "Berta", "Cilka"], ["Cilka", "Dani", "Ema"]), ["Cilka"])
def test_8_skupno_zalivanje(self):
self.assertEqual(set(skupno_zalivanje("Bled", "Ljubljana", 30, self.vsi_kraji)),
{"Kranj", "Škofja Loka"})
if __name__ == "__main__":
unittest.main()
|
[
"benjamin.fele@gmail.com"
] |
benjamin.fele@gmail.com
|
d4a5b1ba6b6f1f3a11524fac579af53d35e04cf7
|
b18660ec434f8ebafeb5397690aa1b4c0a1cb528
|
/train_ALL_LSTM.py
|
528fe8ecf051ad46dbbf40705f292c601be2e094
|
[] |
no_license
|
wp0517/pytorch_SRU
|
5d46956406c7b64431b736981f4565264ca9aa29
|
96be5b4f4f0b73a4e0532bb18d726655af0fdb50
|
refs/heads/master
| 2020-04-09T12:06:47.847348
| 2018-06-17T00:53:05
| 2018-06-17T00:53:05
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 8,866
|
py
|
import os
import sys
import torch
import torch.autograd as autograd
import torch.nn.functional as F
import torch.nn.utils as utils
import torch.optim.lr_scheduler as lr_scheduler
import shutil
import random
import hyperparams
import time
torch.manual_seed(hyperparams.seed_num)
random.seed(hyperparams.seed_num)
def train(train_iter, dev_iter, test_iter, model, args):
if args.cuda:
model = model.cuda()
if args.Adam is True:
print("Adam Training......")
optimizer = torch.optim.Adam(model.parameters(), lr=args.lr, weight_decay=args.init_weight_decay)
elif args.SGD is True:
print("SGD Training.......")
optimizer = torch.optim.SGD(model.parameters(), lr=args.lr, weight_decay=args.init_weight_decay,
momentum=args.momentum_value)
elif args.Adadelta is True:
print("Adadelta Training.......")
optimizer = torch.optim.Adadelta(model.parameters(), lr=args.lr, weight_decay=args.init_weight_decay)
'''
lambda1 = lambda epoch: epoch // 30
lambda2 = lambda epoch: 0.99 ** epoch
print("lambda1 {} lambda2 {} ".format(lambda1, lambda2))
scheduler = lr_scheduler.LambdaLR(optimizer, lr_lambda=[lambda2])
scheduler = lr_scheduler.StepLR(optimizer, step_size=1, gamma=0.9)
'''
# scheduler = lr_scheduler.ReduceLROnPlateau(optimizer, 'min')
lambda2 = lambda epoch: args.learning_rate_decay ** epoch
scheduler = lr_scheduler.LambdaLR(optimizer, lr_lambda=[lambda2])
steps = 0
model_count = 0
model.train()
time_list = []
for epoch in range(1, args.epochs+1):
print("\n## 第{} 轮迭代,共计迭代 {} 次 !##\n".format(epoch, args.epochs))
scheduler.step()
# print("now lr is {} \n".format(scheduler.get_lr()))
print("now lr is {} \n".format(optimizer.param_groups[0].get("lr")))
for batch in train_iter:
feature, target = batch.text, batch.label
# feature.data.t_()
target.data.sub_(1) # batch first, index align
if args.cuda:
feature, target = feature.cuda(), target.cuda()
# print(feature)
# target = autograd.Variable(target) # question 1
optimizer.zero_grad()
model.zero_grad()
model.hidden = model.init_hidden(args.lstm_num_layers, args.batch_size)
if feature.size(1) != args.batch_size:
# continue
model.hidden = model.init_hidden(args.lstm_num_layers, feature.size(1))
# start_time = time.time()
logit = model(feature)
loss = F.cross_entropy(logit, target)
start_time = time.time()
loss.backward()
end_time = time.time()
time_list.append(end_time - start_time)
# print("Backward Time is {} ".format(end_time - start_time))
if args.init_clip_max_norm is not None:
# print("aaaa {} ".format(args.init_clip_max_norm))
utils.clip_grad_norm(model.parameters(), max_norm=args.init_clip_max_norm)
optimizer.step()
steps += 1
if steps % args.log_interval == 0:
train_size = len(train_iter.dataset)
# print("sadasd", torch.max(logit, 0))
corrects = (torch.max(logit, 1)[1].view(target.size()).data == target.data).sum()
accuracy = float(corrects)/batch.batch_size * 100.0
sys.stdout.write(
'\rBatch[{}/{}] - loss: {:.6f} acc: {:.4f}%({}/{})'.format(steps,
train_size,
loss.data[0],
accuracy,
corrects,
batch.batch_size))
if steps % args.test_interval == 0:
eval(dev_iter, model, args, scheduler)
if steps % args.save_interval == 0:
if not os.path.isdir(args.save_dir): os.makedirs(args.save_dir)
save_prefix = os.path.join(args.save_dir, 'snapshot')
save_path = '{}_steps{}.pt'.format(save_prefix, steps)
torch.save(model, save_path)
print("\n", save_path, end=" ")
test_model = torch.load(save_path)
model_count += 1
test_eval(test_iter, test_model, save_path, args, model_count)
sum = 0
for index, value in enumerate(time_list):
if index != 0:
sum += value
avg = sum / len(time_list)
print("Time is {} ".format(avg))
return model_count
def eval(data_iter, model, args, scheduler):
model.eval()
corrects, avg_loss = 0, 0
for batch in data_iter:
feature, target = batch.text, batch.label
target.data.sub_(1)
# feature, target = batch.text, batch.label.data.sub_(1)
if args.cuda is True:
feature, target = feature.cuda(), target.cuda()
model.hidden = model.init_hidden(args.lstm_num_layers, args.batch_size)
if feature.size(1) != args.batch_size:
model.hidden = model.init_hidden(args.lstm_num_layers, feature.size(1))
logit = model(feature)
loss = F.cross_entropy(logit, target, size_average=False)
avg_loss += loss.data[0]
corrects += (torch.max(logit, 1)[1].view(target.size()).data == target.data).sum()
size = len(data_iter.dataset)
avg_loss = loss.data[0]/size
accuracy = float(corrects)/size * 100.0
model.train()
print('\nEvaluation - loss: {:.6f} acc: {:.4f}%({}/{}) \n'.format(avg_loss,
accuracy,
corrects,
size))
def test_eval(data_iter, model, save_path, args, model_count):
# print(save_path)
model.eval()
corrects, avg_loss = 0, 0
for batch in data_iter:
feature, target = batch.text, batch.label
target.data.sub_(1)
if args.cuda:
feature, target = feature.cuda(), target.cuda()
# feature.data.t_()
# target.data.sub_(1) # batch first, index align
# target = autograd.Variable(target)
if args.cuda:
feature, target = feature.cuda(), target.cuda()
model.hidden = model.init_hidden(args.lstm_num_layers, args.batch_size)
if feature.size(1) != args.batch_size:
# continue
model.hidden = model.init_hidden(args.lstm_num_layers, feature.size(1))
logit = model(feature)
loss = F.cross_entropy(logit, target, size_average=False)
avg_loss += loss.data[0]
corrects += (torch.max(logit, 1)
[1].view(target.size()).data == target.data).sum()
size = len(data_iter.dataset)
avg_loss = loss.data[0]/size
accuracy = float(corrects)/size * 100.0
model.train()
print('\nEvaluation - loss: {:.6f} acc: {:.4f}%({}/{}) \n'.format(avg_loss,
accuracy,
corrects,
size))
print("model_count {}".format(model_count))
# test result
if os.path.exists("./Test_Result.txt"):
file = open("./Test_Result.txt", "a")
else:
file = open("./Test_Result.txt", "w")
file.write("model " + save_path + "\n")
file.write("Evaluation - loss: {:.6f} acc: {:.4f}%({}/{}) \n".format(avg_loss, accuracy, corrects, size))
file.write("model_count {} \n".format(model_count))
file.write("\n")
file.close()
# calculate the best score in current file
resultlist = []
if os.path.exists("./Test_Result.txt"):
file = open("./Test_Result.txt")
for line in file.readlines():
if line[:10] == "Evaluation":
resultlist.append(float(line[34:41]))
result = sorted(resultlist)
file.close()
file = open("./Test_Result.txt", "a")
file.write("\nThe Current Best Result is : " + str(result[len(result) - 1]))
file.write("\n\n")
file.close()
shutil.copy("./Test_Result.txt", "./snapshot/" + args.mulu + "/Test_Result.txt")
# whether to delete the model after test acc so that to save space
if os.path.isfile(save_path) and args.rm_model is True:
os.remove(save_path)
|
[
"bamtercelboo@163.com"
] |
bamtercelboo@163.com
|
793c15be2778bfa6a0852f657ea403fc51e685ba
|
a3f793a53361d08f3e0cdedc7fab9df40e201eef
|
/main.py
|
a53882b59400172fbcb656c830535363798e384d
|
[] |
no_license
|
songshanshi/imoocc_py3
|
156db4f072bc956f45cbcc8c61fca964be8acfb9
|
6f3491ce857c541bf55d5ed8993265b7dd4dee09
|
refs/heads/master
| 2020-04-28T02:25:18.241155
| 2018-10-16T07:20:15
| 2018-10-16T07:20:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 6,917
|
py
|
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#########################################################################
# Author:Jeson
# Email:jeson@imoocc.com
import datetime
import os
import re
import yaml
PROJECT_ROOT = os.path.realpath(os.path.dirname(__file__))
# import sys
os.environ["DJANGO_SETTINGS_MODULE"] = 'admin.settings.local_cj'
import django
import time
django.setup()
from scanhosts.models import HostLoginifo
from scanhosts.util.nmap_all_server import NmapNet
from scanhosts.util.nmap_all_server import NmapDocker
from scanhosts.util.nmap_all_server import NmapKVM
from scanhosts.util.nmap_all_server import NmapVMX
from scanhosts.util.nmap_all_server import snmp_begin
from scanhosts.util.j_filter import FilterRules
from scanhosts.util.get_pv_relation import GetHostType
from detail.models import PhysicalServerInfo,ConnectionInfo,OtherMachineInfo,StatisticsRecord
from operations.models import MachineOperationsInfo
from scanhosts.util.nmap_all_server import NetDevLogin
from admin.settings.local_cj import BASE_DIR
import logging
logger = logging.getLogger("django")
from apps.detail.utils.machines import Machines
# def net_begin():
# '''
# 开始执行网络扫描
# :return:
# '''
# nm = NmapNet(oid='1.3.6.1.2.1.1.5.0',Version=2)
# nm_res = nm.query()
# print "...................",nm_res
def main():
'''
读取扫描所需配置文件
:return:
'''
s_conf = yaml.load(open('conf/scanhosts.yaml'))
s_nets = s_conf['hostsinfo']['nets']
s_ports = s_conf['hostsinfo']['ports']
s_pass = s_conf['hostsinfo']['ssh_pass']
s_cmds = s_conf['hostsinfo']['syscmd_list']
s_keys = s_conf['hostsinfo']['ssh_key_file']
s_blacks = s_conf['hostsinfo']['black_list']
s_emails = s_conf['hostsinfo']['email_list']
n_sysname_oid = s_conf['netinfo']['sysname_oid']
n_sn_oid = s_conf['netinfo']['sn_oids']
n_commu = s_conf['netinfo']['community']
n_login_sw = s_conf['netinfo']['login_enable']
n_backup_sw = s_conf['netinfo']['backup_enable']
n_backup_sever = s_conf['netinfo']['tfp_server']
d_pass = s_conf['dockerinfo']['ssh_pass']
starttime = datetime.datetime.now()
'''
扫描主机信息
'''
for nmap_type in s_nets:
unkown_list,key_not_login_list = snmp_begin(nmap_type,s_ports,s_pass,s_keys,s_cmds,s_blacks,s_emails)
'''
扫描网络信息
'''
nm = NmapNet(n_sysname_oid,n_sn_oid,n_commu)
if key_not_login_list:
for item in key_not_login_list:
is_net = nm.query(item)
if is_net[0] or is_net[1]:
HostLoginifo.objects.update_or_create(ip=item,hostname=is_net[0],sn=is_net[1],mathine_type="Network device")
else:
HostLoginifo.objects.update_or_create(ip=item,ssh_port=key_not_login_list[item][0],ssh_status=0)
other_sn = item.replace('.','')
ob = OtherMachineInfo.objects.filter(sn_key=other_sn)
if not ob:
print(".........................OtherMachineInfo",item,other_sn)
OtherMachineInfo.objects.create(ip=item,sn_key=other_sn,reson_str=u"SSH端口存活,无法登录",oth_cab_id=1)
if unkown_list:
for item in unkown_list:
is_net = nm.query(item)
if is_net[0] or is_net[1]:
HostLoginifo.objects.update_or_create(ip=item,hostname=is_net,mathine_type="Network device")
else:
HostLoginifo.objects.update_or_create(ip=item,ssh_status=0)
other_sn = item.replace('.','')
ob = OtherMachineInfo.objects.filter(sn_key=other_sn)
if not ob:
OtherMachineInfo.objects.create(ip=item,sn_key=other_sn,reson_str=u"IP存活,非Linux服务器",oth_cab_id=1)
# '''
# 网络设备备份或者登录功能
# '''
# net_login_dct = {}
# with open("%s/conf/net_dev.pass"%BASE_DIR,'r') as f:
# for item in f.readlines():
# ip,username,passwd,en_passwd = re.split("\s+",item)[:4]
# net_login_dct[ip] = (username,passwd,en_passwd)
# if n_login_sw == "True":
# res = NetDevLogin(dev_ips=net_login_dct,backup_sw=n_backup_sw,back_server=n_backup_sever)
'''
规则:主机信息,去重、生成关系字典
'''
ft = FilterRules()
key_ip_dic = ft.run()
'''
梳理虚拟服务器主机于服务器信息
'''
pv = GetHostType()
p_relate_dic = pv.get_host_type(key_ip_dic)
'''
更新宿主机类型中表对应关系
'''
ip_key_dic = {v:k for k,v in key_ip_dic.items()}
docker_p_list = p_relate_dic["docker-containerd"]
kvm_p_list = p_relate_dic["qemu-system-x86_64"]
vmware_p_list = p_relate_dic["vmx"]
for item in docker_p_list:
PhysicalServerInfo.objects.filter(conn_phy__sn_key=ip_key_dic[item]).update(vir_type="1")
for item in kvm_p_list:
PhysicalServerInfo.objects.filter(conn_phy__sn_key=ip_key_dic[item]).update(vir_type="0")
for item in vmware_p_list:
PhysicalServerInfo.objects.filter(conn_phy__sn_key=ip_key_dic[item]).update(vir_type="2")
'''
扫描docker的宿主机和虚拟服务的关系
'''
ds = NmapDocker(s_cmds,d_pass,ip_key_dic)
ds.do_nmap(docker_p_list)
'''
扫描KVM的宿主机和虚拟服务的关系
# '''
ks = NmapKVM(ip_key_dic)
ks.do_nmap(kvm_p_list)
'''
扫描ESXI虚拟机配置
'''
ne = NmapVMX(vmware_p_list,ip_key_dic)
ne.dosnmp()
'''
更新状态表,用户信息表
'''
c_sn_lst = [item.sn_key for item in ConnectionInfo.objects.all()]
o_sn_lst = [item.sn_key for item in OtherMachineInfo.objects.all()]
old_sn_list = [item.sn_key for item in MachineOperationsInfo.objects.all()]
new_sn_lst = c_sn_lst + o_sn_lst
diff_sn_lst = set(new_sn_lst + old_sn_list)
for item in diff_sn_lst:
try:
nsin = MachineOperationsInfo.objects.filter(sn_key=item)
if not nsin:
MachineOperationsInfo.objects.create(sn_key=item)
except Exception as e:
print("Error:SN:%s not insert into database,reason is:%s"%(item,e))
logger.error("Error:SN:%s not insert into database,reason is:%s"%(item,e))
'''
统计总数
'''
info_dic = Machines().get_all_count()
StatisticsRecord.objects.create(all_count=info_dic['all_c'],pyh_count=info_dic['pyh_c'],net_count=info_dic['net_c'],
other_count=info_dic['other_c'],vmx_count=info_dic['vmx_c'],kvm_count=info_dic['kvm_c'],docker_count=info_dic['docker_c'])
endtime = datetime.datetime.now()
totaltime = (endtime - starttime).seconds
logger.info("{Finish:Use time %s s}"%totaltime)
print("{Finish:Use time %s s}"%totaltime)
if __name__ == "__main__":
main()
|
[
"gengming8859@icloud.com"
] |
gengming8859@icloud.com
|
2bb1e7e593dfb67298aa570a9c0e2c150b0dc54b
|
d0bd9c3c5539141c74e0eeae2fa6b7b38af84ce2
|
/src/cogent3/parse/__init__.py
|
7559bc6dcc006e4be1bcd02096d3c56f55fc2512
|
[
"BSD-3-Clause"
] |
permissive
|
KaneWh1te/cogent3
|
150c72e2f80a6439de0413b39c4c37c09c9966e3
|
115e9eb5700627fdb24be61441a7e3e155c02c61
|
refs/heads/master
| 2023-07-29T00:32:03.742351
| 2021-04-20T04:32:00
| 2021-04-20T04:32:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 956
|
py
|
#!/usr/bin/env python
__all__ = [
"blast",
"cigar",
"clustal",
"dialign",
"ebi",
"fasta",
"gcg",
"genbank",
"gff",
"locuslink",
"ncbi_taxonomy",
"newick",
"nexus",
"paml",
"paml_matrix",
"phylip",
"rdb",
"record",
"record_finder",
"sequence",
"table",
"tinyseq",
"tree",
"tree_xml",
"unigene",
]
__author__ = ""
__copyright__ = "Copyright 2007-2021, The Cogent Project"
__credits__ = [
"Gavin Huttley",
"Peter Maxwell",
"Rob Knight",
"Catherine Lozupone",
"Jeremy Widmann",
"Matthew Wakefield",
"Sandra Smit",
"Greg Caporaso",
"Zongzhi Liu",
"Micah Hamady",
"Jason Carnes",
"Raymond Sammut",
"Hua Ying",
"Andrew Butterfield",
"Marcin Cieslik",
]
__license__ = "BSD-3"
__version__ = "2021.04.20a"
__maintainer__ = "Gavin Huttley"
__email__ = "Gavin.Huttley@anu.edu.au"
__status__ = "Production"
|
[
"Gavin.Huttley@anu.edu.au"
] |
Gavin.Huttley@anu.edu.au
|
41a00bab3f061077909f54d74dc574355af1929d
|
1b77eaf078321b1320d72aa36a4357568101e4ca
|
/江南大学教务处/test.py
|
93ac06b18e5699d2285b3f417e63ee409aaa3bec
|
[] |
no_license
|
BEE-JN/python_homework
|
92ffc1216a380d124901fd64cc541f70813847dc
|
8ba4ea79cbd422f40e6f9f1cc5fed4d75715d207
|
refs/heads/master
| 2020-03-23T08:02:47.863607
| 2018-07-17T15:30:21
| 2018-07-17T15:30:21
| 141,305,118
| 1
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 187
|
py
|
import requests
import time
url = "https://survey.zkeycc/pku/xsdc/?dm=bk"
if __name__=='__main__':
while 1:
r=requests.get(url)
print(r.content)
time.sleep(1)
|
[
"41156190+GCS-CN@users.noreply.github.com"
] |
41156190+GCS-CN@users.noreply.github.com
|
96c1f73d17d18f7906615ca48bc2e2d25d8b7259
|
caa06eca3eef2549d5088f6487201f734b35822e
|
/multi_ie/EE/model/multi_pointer_net.py
|
0d2334ed6d7a09e87757e36528cedd3c228713c5
|
[] |
no_license
|
kelvincjr/shared
|
f947353d13e27530ba44ea664e27de51db71a5b6
|
4bc4a12b0ab44c6847a67cbd7639ce3c025f38f8
|
refs/heads/master
| 2023-06-23T19:38:14.801083
| 2022-05-17T09:45:22
| 2022-05-17T09:45:22
| 141,774,490
| 6
| 1
| null | 2023-06-12T21:30:07
| 2018-07-21T02:22:34
|
Python
|
UTF-8
|
Python
| false
| false
| 7,694
|
py
|
# _*_ coding:utf-8 _*_
import warnings
import numpy as np
import torch
import torch.nn as nn
from transformers import BertModel
from transformers import BertPreTrainedModel
from .layernorm import ConditionalLayerNorm
#from utils.data_util import batch_gather
warnings.filterwarnings("ignore")
def batch_gather(data: torch.Tensor, index: torch.Tensor):
length = index.shape[0]
t_index = index.cpu().numpy()
t_data = data.cpu().data.numpy()
result = []
for i in range(length):
result.append(t_data[i, t_index[i], :])
return torch.from_numpy(np.array(result)).to(data.device)
class ERENet(nn.Module):
"""
ERENet : entity relation jointed extraction
"""
def __init__(self, encoder, classes_num):
super().__init__()
self.classes_num = classes_num
# BERT model
self.bert = encoder
config = encoder.config
self.token_entity_emb = nn.Embedding(num_embeddings=2, embedding_dim=config.hidden_size,
padding_idx=0)
# self.encoder_layer = TransformerEncoderLayer(config.hidden_size, nhead=4)
# self.transformer_encoder = TransformerEncoder(self.encoder_layer, num_layers=1)
self.LayerNorm = ConditionalLayerNorm(config.hidden_size, eps=config.layer_norm_eps)
# pointer net work
self.po_dense = nn.Linear(config.hidden_size, self.classes_num * 2)
self.subject_dense = nn.Linear(config.hidden_size, 2)
self.loss_fct = nn.BCEWithLogitsLoss(reduction='none')
#self.init_weights()
def forward(self, q_ids=None, passage_ids=None, segment_ids=None, attention_mask=None, subject_ids=None,
subject_labels=None,
object_labels=None, eval_file=None,
is_eval=False):
mask = (passage_ids != 0).float()
bert_encoder = self.bert(passage_ids, token_type_ids=segment_ids, attention_mask=mask)[0]
if not is_eval:
# subject_encoder = self.token_entity_emb(token_type_ids)
# context_encoder = bert_encoder + subject_encoder
sub_start_encoder = batch_gather(bert_encoder, subject_ids[:, 0])
sub_end_encoder = batch_gather(bert_encoder, subject_ids[:, 1])
subject = torch.cat([sub_start_encoder, sub_end_encoder], 1)
context_encoder = self.LayerNorm(bert_encoder, subject)
sub_preds = self.subject_dense(bert_encoder)
po_preds = self.po_dense(context_encoder).reshape(passage_ids.size(0), -1, self.classes_num, 2)
subject_loss = self.loss_fct(sub_preds, subject_labels)
# subject_loss = F.binary_cross_entropy(F.sigmoid(sub_preds) ** 2, subject_labels, reduction='none')
subject_loss = subject_loss.mean(2)
subject_loss = torch.sum(subject_loss * mask.float()) / torch.sum(mask.float())
po_loss = self.loss_fct(po_preds, object_labels)
# po_loss = F.binary_cross_entropy(F.sigmoid(po_preds) ** 4, object_labels, reduction='none')
po_loss = torch.sum(po_loss.mean(3), 2)
po_loss = torch.sum(po_loss * mask.float()) / torch.sum(mask.float())
loss = subject_loss + po_loss
return loss
else:
subject_preds = nn.Sigmoid()(self.subject_dense(bert_encoder))
answer_list = list()
for qid, sub_pred in zip(q_ids.cpu().numpy(),
subject_preds.cpu().numpy()):
context = eval_file[qid].bert_tokens
start = np.where(sub_pred[:, 0] > 0.6)[0]
end = np.where(sub_pred[:, 1] > 0.5)[0]
subjects = []
for i in start:
j = end[end >= i]
if i == 0 or i > len(context) - 2:
continue
if len(j) > 0:
j = j[0]
if j > len(context) - 2:
continue
subjects.append((i, j))
answer_list.append(subjects)
qid_ids, bert_encoders, pass_ids, subject_ids, token_type_ids = [], [], [], [], []
for i, subjects in enumerate(answer_list):
if subjects:
qid = q_ids[i].unsqueeze(0).expand(len(subjects))
pass_tensor = passage_ids[i, :].unsqueeze(0).expand(len(subjects), passage_ids.size(1))
new_bert_encoder = bert_encoder[i, :, :].unsqueeze(0).expand(len(subjects), bert_encoder.size(1),
bert_encoder.size(2))
token_type_id = torch.zeros((len(subjects), passage_ids.size(1)), dtype=torch.long)
for index, (start, end) in enumerate(subjects):
token_type_id[index, start:end + 1] = 1
qid_ids.append(qid)
pass_ids.append(pass_tensor)
subject_ids.append(torch.tensor(subjects, dtype=torch.long))
bert_encoders.append(new_bert_encoder)
token_type_ids.append(token_type_id)
if len(qid_ids) == 0:
subject_ids = torch.zeros(1, 2).long().to(bert_encoder.device)
qid_tensor = torch.tensor([-1], dtype=torch.long).to(bert_encoder.device)
po_tensor = torch.zeros(1, bert_encoder.size(1)).long().to(bert_encoder.device)
return qid_tensor, subject_ids, po_tensor
qids = torch.cat(qid_ids).to(bert_encoder.device)
pass_ids = torch.cat(pass_ids).to(bert_encoder.device)
bert_encoders = torch.cat(bert_encoders).to(bert_encoder.device)
# token_type_ids = torch.cat(token_type_ids).to(bert_encoder.device)
subject_ids = torch.cat(subject_ids).to(bert_encoder.device)
flag = False
split_heads = 1024
bert_encoders_ = torch.split(bert_encoders, split_heads, dim=0)
pass_ids_ = torch.split(pass_ids, split_heads, dim=0)
# token_type_ids_ = torch.split(token_type_ids, split_heads, dim=0)
subject_encoder_ = torch.split(subject_ids, split_heads, dim=0)
po_preds = list()
for i in range(len(bert_encoders_)):
bert_encoders = bert_encoders_[i]
# token_type_ids = token_type_ids_[i]
pass_ids = pass_ids_[i]
subject_encoder = subject_encoder_[i]
if bert_encoders.size(0) == 1:
flag = True
# print('flag = True**********')
bert_encoders = bert_encoders.expand(2, bert_encoders.size(1), bert_encoders.size(2))
subject_encoder = subject_encoder.expand(2, subject_encoder.size(1))
# pass_ids = pass_ids.expand(2, pass_ids.size(1))
sub_start_encoder = batch_gather(bert_encoders, subject_encoder[:, 0])
sub_end_encoder = batch_gather(bert_encoders, subject_encoder[:, 1])
subject = torch.cat([sub_start_encoder, sub_end_encoder], 1)
context_encoder = self.LayerNorm(bert_encoders, subject)
po_pred = self.po_dense(context_encoder).reshape(subject_encoder.size(0), -1, self.classes_num, 2)
if flag:
po_pred = po_pred[1, :, :, :].unsqueeze(0)
po_preds.append(po_pred)
po_tensor = torch.cat(po_preds).to(qids.device)
po_tensor = nn.Sigmoid()(po_tensor)
return qids, subject_ids, po_tensor
|
[
"deco_2004@163.com"
] |
deco_2004@163.com
|
b865fa83e9b8e72b08e144110aa75b200cf807d4
|
7ec04fc867d0a48fffc05c65bff9217cfe211fe7
|
/HW/统计字符串/countHotal.py
|
31f95d4500041b28fa209a1a7c4dae778ad024c5
|
[] |
no_license
|
Cherry93/pythonPractic
|
3b9d1f99803503073bbb2f3a58009665338bd278
|
2889183af6c9a01ab47895b23e2d6ce8c288fd4d
|
refs/heads/master
| 2021-08-31T16:41:56.655989
| 2017-12-22T03:53:18
| 2017-12-22T03:53:18
| 115,008,198
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 520
|
py
|
'''
统计加州旅馆中所有单词出现的次数,并降序打印
'''
import collections
file = input("Enter a filename:")
with open(file, 'r') as fpr:
content = fpr.read()
content = content.replace("\n", '')
content1 = content.split()
print(content1)
print(content1[0].lower())
print(len(content1))
list =[]
for i in range(0,len(content1)):
list.append(content1[i].lower())
print(list)
print("\n各单词出现的个数:\n%s"%collections.Counter(list))
#content2 = content1.lower()
#print(content1)
|
[
"358544104@qq.com"
] |
358544104@qq.com
|
c7eee2a22a1efb7ddb4b5278189a0424acae6d63
|
14ebcf98e7c64505839e0b7bbab89e32af7abe1e
|
/deep4rec/datasets/census.py
|
4d58743074fe1b8d1eb3004a4a18b2d8469a1f62
|
[
"Apache-2.0"
] |
permissive
|
Luiz-FS/Deep4Rec
|
b021fbc36e377e1055e46e9a52f68c32018894f8
|
78c5ca74f0e0d06a9f4bb2f267817b69abd40d1d
|
refs/heads/master
| 2020-09-03T14:27:45.828007
| 2019-11-18T01:10:30
| 2019-11-18T01:10:30
| 219,484,411
| 0
| 0
|
Apache-2.0
| 2019-11-18T01:10:31
| 2019-11-04T11:22:00
|
Python
|
UTF-8
|
Python
| false
| false
| 6,110
|
py
|
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Dataset interface for Census dataset.
Census dataset: https://archive.ics.uci.edu/ml/machine-learning-databases/adult
"""
import os
import urllib.request
import numpy as np
import pandas as pd
from sklearn.preprocessing import OrdinalEncoder
from sklearn.preprocessing import OneHotEncoder
import tensorflow as tf
from deep4rec.datasets.dataset import Dataset
import deep4rec.utils as utils
_CSV_COLUMNS = [
"age",
"workclass",
"fnlwgt",
"education",
"education_num",
"marital_status",
"occupation",
"relationship",
"race",
"gender",
"capital_gain",
"capital_loss",
"hours_per_week",
"native_country",
"income_bracket",
]
_CSV_COLUMN_DEFAULTS = [
[0],
[""],
[0],
[""],
[0],
[""],
[""],
[""],
[""],
[""],
[0],
[0],
[0],
[""],
[""],
]
class CensusDataset(Dataset):
url = "https://archive.ics.uci.edu/ml/machine-learning-databases/adult"
def __init__(self, dataset_name, output_dir, *args, **kwargs):
super().__init__(dataset_name, output_dir, *args, **kwargs)
self.train_filename = "adult.data"
self.test_filename = "adult.test"
self.train_url = os.path.join(self.url, self.train_filename)
self.test_url = os.path.join(self.url, self.test_filename)
self.train_path = os.path.join(self.output_dir, self.train_filename)
self.test_path = os.path.join(self.output_dir, self.test_filename)
self.preprocessed_path = os.path.join(self.output_dir, self.dataset_name)
self._ord_encoder = OrdinalEncoder()
self._occupation_ord_encoder = OrdinalEncoder()
self._one_hot_encoder = OneHotEncoder(sparse=False)
def _download_and_clean_file(self, url, filename):
"""Downloads data from url, and makes changes to match the CSV format."""
temp_file, _ = urllib.request.urlretrieve(url)
with tf.gfile.Open(temp_file, "r") as temp_eval_file:
with tf.gfile.Open(filename, "w") as eval_file:
for line in temp_eval_file:
line = line.strip()
line = line.replace(", ", ",")
if not line or "," not in line:
continue
if line[-1] == ".":
line = line[:-1]
line += "\n"
eval_file.write(line)
tf.gfile.Remove(temp_file)
def download(self):
if not os.path.exists(self.output_dir):
os.mkdir(self.output_dir)
self._download_and_clean_file(self.train_url, self.train_path)
self._download_and_clean_file(self.test_url, self.test_path)
def check_downloaded(self):
return os.path.exists(self.train_path) and os.path.exists(self.test_path)
def check_preprocessed(self):
return False
def _preprocess(self, filename, train_data=False):
df = pd.read_csv(filename, names=_CSV_COLUMNS)
# Categorical columns
df_base_columns = df[
["education", "marital_status", "relationship", "workclass"]
]
if train_data:
base_columns = self._ord_encoder.fit_transform(df_base_columns.values)
occupation_column = self._occupation_ord_encoder.fit_transform(
df["occupation"].values.reshape(-1, 1)
)
one_hot_base_columns = self._one_hot_encoder.fit_transform(
df_base_columns.values
)
else:
base_columns = self._ord_encoder.transform(df_base_columns.values)
occupation_column = self._occupation_ord_encoder.transform(
df["occupation"].values.reshape(-1, 1)
)
one_hot_base_columns = self._one_hot_encoder.transform(
df_base_columns.values
)
# Age buckets
buckets = [0, 18, 25, 30, 35, 40, 45, 50, 55, 60, 65, 200]
age_buckets = np.array(
pd.cut(df["age"], buckets, labels=range(len(buckets) - 1)).values
)
wide_columns = np.concatenate(
(base_columns, age_buckets.reshape(-1, 1)), axis=1
)
numerical_columns = df[
["age", "education_num", "capital_gain", "capital_loss", "hours_per_week"]
].values
deep_columns = np.concatenate((one_hot_base_columns, numerical_columns), axis=1)
labels = np.where(df["income_bracket"].values == ">50K", 1, 0)
return wide_columns, deep_columns, occupation_column, labels
def preprocess(self):
self.train_wide_data, self.train_deep_data, self.train_embedding_data, self.train_y = self._preprocess(
self.train_path, train_data=True
)
self.test_wide_data, self.test_deep_data, self.test_embedding_data, self.test_y = self._preprocess(
self.test_path, train_data=False
)
@property
def train_size(self):
return len(self.train_wide_data)
@property
def train_features(self):
return [self.train_embedding_data, self.train_wide_data, self.train_deep_data]
@property
def test_features(self):
return [self.test_embedding_data, self.test_wide_data, self.test_deep_data]
@property
def num_features_one_hot(self):
return len(np.unique(self.train_embedding_data))
@property
def num_features(self):
return 1
|
[
"mariannelinharesm@gmail.com"
] |
mariannelinharesm@gmail.com
|
e469b1c0df202afbdf63411ba8abdbd4527e1190
|
493f99b210303d019f62195ae8dde9d02ee1b81f
|
/indy_node/test/api/test_rich_schema_objects_reply.py
|
56dbda7791bdd23e1fda9ccddcde4b9f7330077d
|
[
"Apache-2.0"
] |
permissive
|
darklordz-217/indy-node
|
745baa357fe739bac20433cb2daa0f7c5a2f2caf
|
4d2f6a9dc0ff136117f8766a4f2cf70b239404e0
|
refs/heads/master
| 2022-10-06T17:01:12.414734
| 2020-06-11T08:49:17
| 2020-06-11T08:49:17
| 271,472,931
| 2
| 0
|
Apache-2.0
| 2020-06-11T09:04:23
| 2020-06-11T06:48:21
|
Python
|
UTF-8
|
Python
| false
| false
| 2,499
|
py
|
import json
import pytest
from indy_common.constants import JSON_LD_CONTEXT, RS_CONTEXT_TYPE_VALUE, RICH_SCHEMA, RICH_SCHEMA_ENCODING, \
RICH_SCHEMA_MAPPING, RICH_SCHEMA_CRED_DEF, RS_CRED_DEF_TYPE_VALUE, RS_MAPPING_TYPE_VALUE, \
RS_ENCODING_TYPE_VALUE, RS_SCHEMA_TYPE_VALUE, RICH_SCHEMA_PRES_DEF, RS_PRES_DEF_TYPE_VALUE
from indy_node.test.api.helper import validate_write_reply, validate_rich_schema_txn, sdk_build_rich_schema_request
from indy_node.test.rich_schema.templates import RICH_SCHEMA_EX1, W3C_BASE_CONTEXT, RICH_SCHEMA_ENCODING_EX1, \
RICH_SCHEMA_MAPPING_EX1, RICH_SCHEMA_CRED_DEF_EX1, RICH_SCHEMA_PRES_DEF_EX1
from plenum.common.util import randomString
from plenum.test.helper import sdk_get_reply, sdk_sign_and_submit_req
# The order of creation is essential as some rich schema object reference others by ID
# Encoding's id must be equal to the one used in RICH_SCHEMA_MAPPING_EX1
@pytest.mark.parametrize('txn_type, rs_type, content, rs_id',
[(JSON_LD_CONTEXT, RS_CONTEXT_TYPE_VALUE, W3C_BASE_CONTEXT, randomString()),
(RICH_SCHEMA, RS_SCHEMA_TYPE_VALUE, RICH_SCHEMA_EX1, RICH_SCHEMA_EX1['@id']),
(RICH_SCHEMA_ENCODING, RS_ENCODING_TYPE_VALUE, RICH_SCHEMA_ENCODING_EX1,
"did:sov:1x9F8ZmxuvDqRiqqY29x6dx9oU4qwFTkPbDpWtwGbdUsrCD"),
(RICH_SCHEMA_MAPPING, RS_MAPPING_TYPE_VALUE, RICH_SCHEMA_MAPPING_EX1,
RICH_SCHEMA_MAPPING_EX1['@id']),
(RICH_SCHEMA_CRED_DEF, RS_CRED_DEF_TYPE_VALUE, RICH_SCHEMA_CRED_DEF_EX1, randomString()),
(RICH_SCHEMA_PRES_DEF, RS_PRES_DEF_TYPE_VALUE, RICH_SCHEMA_PRES_DEF_EX1,
RICH_SCHEMA_PRES_DEF_EX1['@id'])])
def test_rich_schema_object_reply_is_valid(looper, sdk_pool_handle, sdk_wallet_steward,
txn_type, rs_type, content, rs_id):
request = sdk_build_rich_schema_request(looper, sdk_wallet_steward,
txn_type=txn_type, rs_id=rs_id, rs_name=randomString(),
rs_version='1.0', rs_type=rs_type,
rs_content=json.dumps(content))
reply = sdk_get_reply(looper, sdk_sign_and_submit_req(sdk_pool_handle, sdk_wallet_steward, request))[1]
validate_write_reply(reply)
validate_rich_schema_txn(reply['result']['txn'], txn_type)
|
[
"alexander.sherbakov@dsr-corporation.com"
] |
alexander.sherbakov@dsr-corporation.com
|
bcfcfd42d82934ef66bd39ecc5139583c6a927df
|
f62ff90d7850af458d8f12386fc9ee9134dbe7c1
|
/Plots/Showplots/Model_3/Current_Voltage_Curves.py
|
2d9023dab4df536df56c4202551adad30523eb73
|
[] |
no_license
|
AlexSchmid22191/EIS_R_Sim
|
51b431f078cb455fc38637c192436c0523449565
|
851b061e60811e1e58a5b2fd4e393e529c3f86ac
|
refs/heads/master
| 2023-06-27T17:40:59.177270
| 2021-07-22T11:50:27
| 2021-07-22T11:50:27
| 380,768,174
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 2,606
|
py
|
from matplotlib.pyplot import subplots, show
from matplotlib.style import use
from numpy import load, log10
use('../Show.mplstyle')
data = load('../../../Currents_Resistances_Model_3/Current_Data_Model_3.npy')
fig_hi, ax_hi = subplots(nrows=2, figsize=(6, 8))
fig_me, ax_me = subplots(nrows=2, figsize=(6, 8))
fig_lo, ax_lo = subplots(nrows=2, figsize=(6, 8))
# High oxygen partial pressures
for i in (1400, 1500, 1600, 1700, 1800):
ax_hi[0].plot(data['overpotential'][1::25, i], abs(data['current'][1::25, i]), linestyle='-',
label='$10^{%d}$ bar' % log10(data['pressure'][1, i]))
ax_hi[1].plot(data['overpotential'][0::25, i], data['current'][0::25, i], linestyle='-',
label='$10^{%d}$ bar' % log10(data['pressure'][1, i]))
# Medium oxygen partial pressures
for i in (1000, 1100, 1200, 1300):
ax_me[0].plot(data['overpotential'][1::25, i], abs(data['current'][1::25, i]), linestyle='-',
label='$10^{%d}$ bar' % log10(data['pressure'][1, i]))
ax_me[1].plot(data['overpotential'][0::25, i], data['current'][0::25, i], linestyle='-',
label='$10^{%d}$ bar' % log10(data['pressure'][1, i]))
# Low oxygen partial pressures
for i in (500, 600, 700, 800, 900):
ax_lo[0].plot(data['overpotential'][1::25, i], abs(data['current'][1::25, i]), linestyle='-',
label='$10^{%d}$ bar' % log10(data['pressure'][1, i]))
ax_lo[1].plot(data['overpotential'][0::25, i], data['current'][0::25, i], linestyle='-',
label='$10^{%d}$ bar' % log10(data['pressure'][1, i]))
ax_hi[0].set_yscale('log')
ax_me[0].set_yscale('log')
ax_lo[0].set_yscale('log')
ax_hi[1].set_yscale('symlog', linthreshy=1e-1)
ax_me[1].set_yscale('symlog', linthreshy=1e-4)
ax_lo[1].set_yscale('symlog', linthreshy=1e-9)
# ax_hi[0].set_ylim(1e-3, 1e5)
# ax_hi[1].set_ylim(-1e5, 1e0)
# ax_me[0].set_ylim(1e-6, 1e0)
# ax_me[1].set_ylim(-1e0, 1e0)
# ax_lo[0].set_ylim(1e-10, 1e0)
# ax_lo[1].set_ylim(-1e-4, 1e1)
for ax in (ax_hi[0], ax_hi[1], ax_me[0], ax_me[1], ax_lo[0], ax_lo[1]):
ax.set_ylabel('Absolute current density (A/m²)')
ax.set_xlabel('Overpotential (V)')
ax.legend()
# fig_hi.tight_layout()
# fig_hi.savefig('Plots/Current_Voltage_Curves_Hi.pdf')
# fig_hi.savefig('Plots/Current_Voltage_Curves_Hi.png')
#
# fig_me.tight_layout()
# fig_me.savefig('Plots/Current_Voltage_Curves_Me.pdf')
# fig_me.savefig('Plots/Current_Voltage_Curves_Me.png')
#
# fig_lo.tight_layout()
# fig_lo.savefig('Plots/Current_Voltage_Curves_Lo.pdf')
# fig_lo.savefig('Plots/Current_Voltage_Curves_Lo.png')
show()
|
[
"Alex.Schmid91@gmail.com"
] |
Alex.Schmid91@gmail.com
|
690fe2ffb43edf1febae8410ba150129ce00cce0
|
3419067388879d8a6542df01cb0278ae90b021a2
|
/py100day/Day01-15/Day04/code/for2.py
|
22c96886304fa47ecee9b5c39f3f60d9a36a21f1
|
[] |
no_license
|
oweson/python-river-master
|
faa31c5248e297a92054cc302e213e2b37fb8bd5
|
cf9e99e611311b712465eb11dec4bb8f712929b2
|
refs/heads/master
| 2021-06-21T15:47:01.755957
| 2019-10-02T00:08:05
| 2019-10-02T00:08:05
| 205,607,518
| 0
| 0
| null | 2021-06-10T21:55:20
| 2019-08-31T23:39:55
|
Python
|
UTF-8
|
Python
| false
| false
| 173
|
py
|
"""
用for循环实现1~100之间的偶数求和
Version: 0.1
Author: 骆昊
Date: 2018-03-01
"""
# 步长是2
sum = 0
for x in range(2, 101, 2):
sum += x
print(sum)
|
[
"570347720@qq.com"
] |
570347720@qq.com
|
1026e1d0f5add5bf40edc076405f2e409f26c5ce
|
2f2682f778512a75a1ff49d7e267c2f4d355c48e
|
/geoprocess/controllers.py
|
7be119b34c9b20b609770261e464a475b5996a9b
|
[] |
no_license
|
beatcovid/geoprocess
|
4a44f46b900c2e0ffed0dab18008e7884e759e3b
|
c2a7b1e4ede06583679db9dadebe2066b0274e54
|
refs/heads/master
| 2023-04-13T13:45:48.572825
| 2020-05-27T03:08:14
| 2020-05-27T03:08:14
| 260,215,049
| 0
| 1
| null | 2023-03-29T00:36:19
| 2020-04-30T13:11:38
|
Python
|
UTF-8
|
Python
| false
| false
| 4,538
|
py
|
import csv
import email.utils
import json
import logging
import os
import sys
from datetime import datetime
from pprint import pprint
from dotenv import load_dotenv
from pymongo import MongoClient
from geoprocess.find_psma import find_lga, find_sa3
from geoprocess.google_geo import google_geocode, lookup_placeid, place_autocomplete
from geoprocess.settings import MONGO_CONNECT_URL
load_dotenv()
logger = logging.getLogger("geoprocess")
logging.basicConfig(level=logging.INFO)
logger.setLevel(logging.INFO)
mongo_connection = MongoClient(MONGO_CONNECT_URL)
def flatten_google_place(place, prefix):
ac = place["address_components"]
flattened = {}
for component in ac:
for ctype in component["types"]:
if not ctype == "political":
flattened[prefix + "_" + ctype] = component["short_name"]
return flattened
def get_granuality(flat_geo, prefix):
FIELDS = [
f"{prefix}_postal_code",
f"{prefix}_locality",
f"{prefix}_administrative_area_level_2",
f"{prefix}_administrative_area_level_1",
f"{prefix}_country",
]
for field in FIELDS:
if field in flat_geo:
return field[len(prefix) + 1 :]
return "country"
def update_geoplots():
"""
just a simple q
"""
db = mongo_connection.prod_covid19_api_docdb.instances
query = {"_geo_processed": {"$ne": True}}
processed = 0
updated = 0
place_fields = ["userdetail_city", "travel_country"]
for a in db.find(query).sort("_submission_time", -1):
for place_field in place_fields:
if place_field in a:
if not type(a[place_field]) is str:
continue
if " " in a[place_field]:
continue
try:
p = lookup_placeid(a[place_field])
except Exception as e:
logger.error("Could not find place id for: {}".format(a[place_field]))
logger.error(e)
continue
p_flat = flatten_google_place(p, place_field)
if (
place_field + "_country" in p_flat
and p_flat[place_field + "_country"] == "AU"
and (
place_field + "_locality" in p_flat
or place_field + "_postal_code" in p_flat
)
):
if not place_field + "_lga_id" in a:
lgs = find_lga(
p["geometry"]["location"]["lat"],
p["geometry"]["location"]["lng"],
)
if lgs:
p_flat[place_field + "_lga_id"] = lgs
if not place_field + "_sa3_id" in a:
sa3 = find_sa3(
p["geometry"]["location"]["lat"],
p["geometry"]["location"]["lng"],
)
if sa3:
p_flat[place_field + "_sa3_id"] = sa3
p_flat[place_field + "_granuality"] = get_granuality(p_flat, place_field)
if (
place_field + "_country" in p_flat
and p_flat[place_field + "_country"] == "AU"
and (
place_field + "_administrative_area_level_1" in p_flat
or "userdetail_city_postal_code" in p_flat
)
):
p_flat[place_field + "_state"] = p_flat[
place_field + "_administrative_area_level_1"
]
p_flat["_geo_processed"] = True
pprint(p_flat)
try:
db.update_one(
{"_id": a["_id"]}, {"$set": p_flat},
)
except Exception as e:
logger.error(
"Db error on updating place_id: {} {}".format(
a["_id"], place_field
)
)
logger.error(e)
continue
logger.info(
"Updated {} {} -> {}".format(place_field, a["_id"], a[place_field])
)
updated += 1
processed += 1
print("Processed {} and updated {}".format(processed, updated))
|
[
"nc9@protonmail.com"
] |
nc9@protonmail.com
|
c0bccab0f33fe2f6323731cddd1742ba4d45275c
|
aa410a95773aeea73e75f0e701db5cdc0eda890b
|
/weapons.py
|
cf6e4eb05ba6ad8a453e07637018051ed6eac5f8
|
[] |
no_license
|
predominant/zombsole
|
ccc00893b7739c5341c43fc28375415fa628b885
|
a04ff40a144cb1f63d8aa29ccf0b06ecccc2bc7f
|
refs/heads/master
| 2021-01-21T19:29:05.322551
| 2014-03-26T05:38:15
| 2014-03-26T05:38:15
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 710
|
py
|
# coding: utf-8
from core import Weapon
def _new_weapon_class(name, max_range, damage_range):
'''Create new weapon class.'''
class NewWeapon(Weapon):
def __init__(self):
super(NewWeapon, self).__init__(name,
max_range,
damage_range)
NewWeapon.__name__ = name
return NewWeapon
ZombieClaws = _new_weapon_class('ZombieClaws', 1.5, (5, 10))
Knife = _new_weapon_class('Knife', 1.5, (5, 10))
Axe = _new_weapon_class('Axe', 1.5, (75, 100))
Gun = _new_weapon_class('Gun', 6, (10, 50))
Rifle = _new_weapon_class('Rifle', 10, (25, 75))
Shotgun = _new_weapon_class('Shotgun', 3, (75, 100))
|
[
"fisadev@gmail.com"
] |
fisadev@gmail.com
|
2eac0fe3402f79f389178ebe792a10a16f7c1a4a
|
039f2c747a9524daa1e45501ada5fb19bd5dd28f
|
/AGC001/AGC001c.py
|
6f3fb7892212fb5a2683a833717ea55a344d0dfd
|
[
"Unlicense"
] |
permissive
|
yuto-moriizumi/AtCoder
|
86dbb4f98fea627c68b5391bf0cc25bcce556b88
|
21acb489f1594bbb1cdc64fbf8421d876b5b476d
|
refs/heads/master
| 2023-03-25T08:10:31.738457
| 2021-03-23T08:48:01
| 2021-03-23T08:48:01
| 242,283,632
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 168
|
py
|
#AGC001c
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
# map(int, input().split())
if __name__ == '__main__':
main()
|
[
"kurvan1112@gmail.com"
] |
kurvan1112@gmail.com
|
eaeef1d5a47d3ff5621d988c694458cf63dc39a6
|
ceab178d446c4ab55951c3d65d99815e9fdee43a
|
/archive/coding_practice/python/ticks_plot.py
|
83e7d35370f009514aa95366b78a92f4f61f0afa
|
[] |
no_license
|
DeneBowdalo/AtmosChem_Tools
|
01ecedb0df5c5d6e01966a0c3d8055826f5ac447
|
220c2f697a4f4c1e5443c336ede923b2004fe9f5
|
refs/heads/master
| 2021-01-10T18:05:30.800218
| 2017-02-06T16:08:14
| 2017-02-06T16:08:14
| 43,529,442
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 183
|
py
|
import matplotlib.pyplot as plt
x = [5,3,7,2,4,1,11,25,33]
plt.plot(x)
plt.xticks(range(len(x)), ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']);
plt.yticks(range(1,36,2));
plt.show()
|
[
"db876@earth0.york.ac.uk"
] |
db876@earth0.york.ac.uk
|
def39a55d547e1131e0f8dcf639f5da81e09bb90
|
f0d713996eb095bcdc701f3fab0a8110b8541cbb
|
/cGaTqHsPfR5H6YBuj_0.py
|
c3936bfae1158025ccd064458e0c9c17ee2d0b5e
|
[] |
no_license
|
daniel-reich/turbo-robot
|
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
|
a7a25c63097674c0a81675eed7e6b763785f1c41
|
refs/heads/main
| 2023-03-26T01:55:14.210264
| 2021-03-23T16:08:01
| 2021-03-23T16:08:01
| 350,773,815
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 818
|
py
|
"""
Given a list of ingredients `i` and a flavour `f` as input, create a function
that returns the list, but with the elements `bread` around the selected
ingredient.
### Examples
make_sandwich(["tuna", "ham", "tomato"], "ham") ➞ ["tuna", "bread", "ham", "bread", "tomato"]
make_sandwich(["cheese", "lettuce"], "cheese") ➞ ["bread", "cheese", "bread", "lettuce"]
make_sandwich(["ham", "ham"], "ham") ➞ ["bread", "ham", "bread", "bread", "ham", "bread"]
### Notes
* You will always get valid inputs.
* Make two separate sandwiches if two of the same elements are next to each other (see example #3).
"""
def make_sandwich(ingredients, flavour):
sandwich = []
for i in ingredients:
sandwich += ['bread', i, 'bread'] if i == flavour else [i]
return sandwich
|
[
"daniel.reich@danielreichs-MacBook-Pro.local"
] |
daniel.reich@danielreichs-MacBook-Pro.local
|
b01ea9b981eaf809aed4db02cdf99add3ef4992e
|
a4753147801dbabfec45f6f9f47572cda77efb81
|
/debugging-constructs/ibmfl/util/data_handlers/mnist_pytorch_data_handler.py
|
29cc18afb938e575e71025d9007fd67f722221b9
|
[
"MIT"
] |
permissive
|
SEED-VT/FedDebug
|
e1ec1f798dab603bd208b286c4c094614bb8c71d
|
64ffa2ee2e906b1bd6b3dd6aabcf6fc3de862608
|
refs/heads/main
| 2023-05-23T09:40:51.881998
| 2023-02-13T21:52:25
| 2023-02-13T21:52:25
| 584,879,212
| 8
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 3,460
|
py
|
"""
Licensed Materials - Property of IBM
Restricted Materials of IBM
20221069
© Copyright IBM Corp. 2022 All Rights Reserved.
"""
import logging
import numpy as np
from ibmfl.data.data_handler import DataHandler
from ibmfl.util.datasets import load_mnist
logger = logging.getLogger(__name__)
class MnistPytorchDataHandler(DataHandler):
def __init__(self, data_config=None):
super().__init__()
self.file_name = None
if data_config is not None:
if 'npz_file' in data_config:
self.file_name = data_config['npz_file']
# load the datasets
(self.x_train, self.y_train), (self.x_test, self.y_test) = self.load_dataset()
# pre-process the datasets
self.preprocess()
def get_data(self):
"""
Gets pre-process mnist training and testing data.
:return: training data
:rtype: `tuple`
"""
return (self.x_train, self.y_train), (self.x_test, self.y_test)
def load_dataset(self, nb_points=500):
"""
Loads the training and testing datasets from a given local path.
If no local path is provided, it will download the original MNIST \
dataset online, and reduce the dataset size to contain \
500 data points per training and testing dataset.
Because this method
is for testing it takes as input the number of datapoints, nb_points,
to be included in the training and testing set.
:param nb_points: Number of data points to be included in each set if
no local dataset is provided.
:type nb_points: `int`
:return: training and testing datasets
:rtype: `tuple`
"""
if self.file_name is None:
(x_train, y_train), (x_test, y_test) = load_mnist()
x_train = x_train[:nb_points]
y_train = y_train[:nb_points]
x_test = x_test[:nb_points]
y_test = y_test[:nb_points]
else:
try:
logger.info('Loaded training data from ' + str(self.file_name))
data_train = np.load(self.file_name)
x_train = data_train['x_train']
y_train = data_train['y_train']
x_test = data_train['x_test']
y_test = data_train['y_test']
except Exception:
raise IOError('Unable to load training data from path '
'provided in config file: ' +
self.file_name)
return (x_train, y_train), (x_test, y_test)
def preprocess(self):
"""
Preprocesses the training and testing dataset, \
e.g., reshape the images according to self.channels_first; \
convert the labels to binary class matrices.
:return: None
"""
img_rows, img_cols = 28, 28
self.x_train = self.x_train.astype('float32').reshape(self.x_train.shape[0], 1, img_rows, img_cols)
self.x_test = self.x_test.astype('float32').reshape(self.x_test.shape[0], 1,img_rows, img_cols)
# print(self.x_train.shape[0], 'train samples')
# print(self.x_test.shape[0], 'test samples')
self.y_train = self.y_train.astype('int64')
self.y_test = self.y_test.astype('int64')
# print('y_train shape:', self.y_train.shape)
# print(self.y_train.shape[0], 'train samples')
# print(self.y_test.shape[0], 'test samples')
|
[
"waris@vt.edu"
] |
waris@vt.edu
|
7eced97eac47dfd2ce21cee31fe289634f7a5bf7
|
eac6dc8eb8e5f088500f425a7323cd35a4f99bd6
|
/src/courses/migrations/0012_course_active.py
|
af89db3155df4d47be9b84b4c843f0b847c617a6
|
[] |
no_license
|
aminhp93/django_serverup_2
|
a14195af756799795282028ba611dbccc3848870
|
aef31722e882367c731e9e48fc8af8740befc112
|
refs/heads/master
| 2020-05-27T01:54:15.268661
| 2017-02-25T21:58:36
| 2017-02-25T21:58:36
| 82,514,017
| 1
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 451
|
py
|
# -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-19 18:06
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0011_auto_20170219_1749'),
]
operations = [
migrations.AddField(
model_name='course',
name='active',
field=models.BooleanField(default=True),
),
]
|
[
"minhpn.org.ec@gmail.com"
] |
minhpn.org.ec@gmail.com
|
ba63f7efdf10aab9c7481c9a2bee33143ac12df2
|
2037235643046608bf883f11c1bc448e2df8a4a3
|
/HuaYing/practice/test14.py
|
a18f331036c28c57f36f4079f83d4f9d3c4a6650
|
[] |
no_license
|
Hardworking-tester/HuaYingAutoTest
|
7e46dfb0729961cee0da06762fc0be11724ad80b
|
c1f0cf7aa4433f482bbae88d1a5637b9859359ca
|
refs/heads/master
| 2021-01-10T18:38:37.788736
| 2015-09-05T10:37:10
| 2015-09-05T10:37:10
| 41,957,309
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,368
|
py
|
#encoding:utf-8
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
br=webdriver.Firefox()
# br.maximize_window()
br.get("http://www.xebest.com:8000")
elements=br.find_elements_by_class_name("nav-arrow")
element1=elements[4]
if element1.is_displayed():
print ("网站导航链接已定位到")
else:
print ("网站导航元素未找到,请更换定位方式后重新定位")
# if br.find_element_by_xpath("//*[@id='topnav']/ul/li[5]/div[2]/ul[2]/li[2]/a").is_displayed():
# if br.find_element_by_css_selector("div#topnav>ul:first>li:nth(4)>div:nth(1)>ul:nth(1)>li(1)>a").is_displayed():
# if br.find_element_by_css_selector("li#all_menu>ul:nth(0)>li:nth(0)>a>span").is_displayed():
# if br.find_element_by_link_text(u"易支付").is_displayed():
# print ("易支付元素已找到")
# else:
# print("易支付元素未找到,请更换定位方式后重新定位")
# epay=br.find_element_by_css_selector("div#topnav>ul>li:nth(4)>div:nht(1)>ul:nth(1)>li(1)>a")
# epay=br.find_element_by_xpath("//*[@id='topnav']/ul/li[5]/div[2]/ul[2]/li[2]/a")
# epay=br.find_element_by_xpath("//*[@id='topnav']/ul/li[5]/div[2]/ul[2]/li[2]/a")
epay=br.find_element_by_link_text(u"易支付")
ActionChains(br).move_to_element(element1).click(element1).perform()
ActionChains(br).move_to_element(epay).click(epay).perform()
|
[
"373391120@qq.com"
] |
373391120@qq.com
|
636022ef17714db27f131c08daa673606f4185d8
|
511b7b19ec49be34bec240ee7c7cf4178cd36ca3
|
/gasolinestation/migrations/0013_auto_20200304_0909.py
|
fb6c52a8156995aa62443e5a937be261f2953067
|
[] |
no_license
|
francisguchie/360POS
|
58de516fe52e83d6b99bd195d22c8aa902daee18
|
68f9e20ac263c75ec0c9b0fe75d7f648b8744ea8
|
refs/heads/master
| 2023-02-08T16:38:42.667538
| 2020-03-12T16:05:00
| 2020-03-12T16:05:00
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 657
|
py
|
# Generated by Django 3.0.3 on 2020-03-04 09:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('gasolinestation', '0012_transactionsales'),
]
operations = [
migrations.AddField(
model_name='transactionsales',
name='dispensed_liter',
field=models.DecimalField(blank=True, decimal_places=2, max_digits=9, null=True),
),
migrations.AlterField(
model_name='transactionsales',
name='price',
field=models.DecimalField(blank=True, decimal_places=2, max_digits=9, null=True),
),
]
|
[
"monde.lacanlalay@gmail.com"
] |
monde.lacanlalay@gmail.com
|
5ef08391fa1fa480f963802b9e34f6077002e815
|
d12b59b33df5c467abf081d48e043dac70cc5a9c
|
/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/interface_ddc6ed85db77afb3c40ee4824b274478.py
|
7eb7f7341abf23ea8aaaf6c991a7897c8183a845
|
[
"MIT"
] |
permissive
|
ajbalogh/ixnetwork_restpy
|
59ce20b88c1f99f95a980ff01106bda8f4ad5a0f
|
60a107e84fd8c1a32e24500259738e11740069fd
|
refs/heads/master
| 2023-04-02T22:01:51.088515
| 2021-04-09T18:39:28
| 2021-04-09T18:39:28
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 35,852
|
py
|
# MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
class Interface(Base):
"""This object represents a network interface.
The Interface class encapsulates a list of interface resources that are managed by the user.
A list of resources can be retrieved from the server using the Interface.find() method.
The list can be managed by using the Interface.add() and Interface.remove() methods.
"""
__slots__ = ()
_SDM_NAME = 'interface'
_SDM_ATT_MAP = {
'CircuitAuthType': 'circuitAuthType',
'CircuitReceivedPasswordList': 'circuitReceivedPasswordList',
'CircuitTransmitPassword': 'circuitTransmitPassword',
'ConfiguredHoldTime': 'configuredHoldTime',
'Enable3WayHandshake': 'enable3WayHandshake',
'EnableAutoAdjustArea': 'enableAutoAdjustArea',
'EnableAutoAdjustMtu': 'enableAutoAdjustMtu',
'EnableAutoAdjustProtocolsSupported': 'enableAutoAdjustProtocolsSupported',
'EnableBfdRegistration': 'enableBfdRegistration',
'EnableConfiguredHoldTime': 'enableConfiguredHoldTime',
'EnableConnectedToDut': 'enableConnectedToDut',
'Enabled': 'enabled',
'ExtendedCircuitId': 'extendedCircuitId',
'InterfaceId': 'interfaceId',
'InterfaceIp': 'interfaceIp',
'InterfaceIpMask': 'interfaceIpMask',
'Ipv6MtMetric': 'ipv6MtMetric',
'Level': 'level',
'Level1DeadTime': 'level1DeadTime',
'Level1HelloTime': 'level1HelloTime',
'Level2DeadTime': 'level2DeadTime',
'Level2HelloTime': 'level2HelloTime',
'Metric': 'metric',
'NetworkType': 'networkType',
'PriorityLevel1': 'priorityLevel1',
'PriorityLevel2': 'priorityLevel2',
'TeAdminGroup': 'teAdminGroup',
'TeMaxBandwidth': 'teMaxBandwidth',
'TeMetricLevel': 'teMetricLevel',
'TeResMaxBandwidth': 'teResMaxBandwidth',
'TeUnreservedBwPriority': 'teUnreservedBwPriority',
}
def __init__(self, parent):
super(Interface, self).__init__(parent)
@property
def CircuitAuthType(self):
"""
Returns
-------
- str(none | password | md5): The type of Circuit Authentication to be used for this emulated ISIS router.
"""
return self._get_attribute(self._SDM_ATT_MAP['CircuitAuthType'])
@CircuitAuthType.setter
def CircuitAuthType(self, value):
self._set_attribute(self._SDM_ATT_MAP['CircuitAuthType'], value)
@property
def CircuitReceivedPasswordList(self):
"""
Returns
-------
- list(str): The Receive Password List is used only for Cleartext Password authentication. MD5 Authentication requires that both of the neighbors have the same MD5 key for the packets to be accepted.
"""
return self._get_attribute(self._SDM_ATT_MAP['CircuitReceivedPasswordList'])
@CircuitReceivedPasswordList.setter
def CircuitReceivedPasswordList(self, value):
self._set_attribute(self._SDM_ATT_MAP['CircuitReceivedPasswordList'], value)
@property
def CircuitTransmitPassword(self):
"""
Returns
-------
- str: If circuitAuthType is isisAuthTypePassword, then this is the password (or MD5Key) that will be sent with transmitted IIHs.
"""
return self._get_attribute(self._SDM_ATT_MAP['CircuitTransmitPassword'])
@CircuitTransmitPassword.setter
def CircuitTransmitPassword(self, value):
self._set_attribute(self._SDM_ATT_MAP['CircuitTransmitPassword'], value)
@property
def ConfiguredHoldTime(self):
"""
Returns
-------
- number: The configured hold time for the interface. This value is only used if enableConfiguredHoldTime is set to true.
"""
return self._get_attribute(self._SDM_ATT_MAP['ConfiguredHoldTime'])
@ConfiguredHoldTime.setter
def ConfiguredHoldTime(self, value):
self._set_attribute(self._SDM_ATT_MAP['ConfiguredHoldTime'], value)
@property
def Enable3WayHandshake(self):
"""
Returns
-------
- bool: If true, Ixia emulated point-to-point circuit will include 3-way TLV in its P2P IIH and attempt to establish the adjacency as specified in RFC 5303.
"""
return self._get_attribute(self._SDM_ATT_MAP['Enable3WayHandshake'])
@Enable3WayHandshake.setter
def Enable3WayHandshake(self, value):
self._set_attribute(self._SDM_ATT_MAP['Enable3WayHandshake'], value)
@property
def EnableAutoAdjustArea(self):
"""
Returns
-------
- bool: If set, and a HELLO message is received which contains a protocols TLV, then the interfaces protocols will be adjusted to match the received TLV.
"""
return self._get_attribute(self._SDM_ATT_MAP['EnableAutoAdjustArea'])
@EnableAutoAdjustArea.setter
def EnableAutoAdjustArea(self, value):
self._set_attribute(self._SDM_ATT_MAP['EnableAutoAdjustArea'], value)
@property
def EnableAutoAdjustMtu(self):
"""
Returns
-------
- bool: If set, and a padded HELLO message is received on the interface, then the interfaces MTU will be adjusted to match the packet length of the received HELLO message.
"""
return self._get_attribute(self._SDM_ATT_MAP['EnableAutoAdjustMtu'])
@EnableAutoAdjustMtu.setter
def EnableAutoAdjustMtu(self, value):
self._set_attribute(self._SDM_ATT_MAP['EnableAutoAdjustMtu'], value)
@property
def EnableAutoAdjustProtocolsSupported(self):
"""
Returns
-------
- bool: If set, and a HELLO message is received which contains a protocols TLV, then the interfaces protocols will be adjusted to match the received TLV.
"""
return self._get_attribute(self._SDM_ATT_MAP['EnableAutoAdjustProtocolsSupported'])
@EnableAutoAdjustProtocolsSupported.setter
def EnableAutoAdjustProtocolsSupported(self, value):
self._set_attribute(self._SDM_ATT_MAP['EnableAutoAdjustProtocolsSupported'], value)
@property
def EnableBfdRegistration(self):
"""
Returns
-------
- bool: Indicates if a BFD session is to be created to the ISIS peer IP address once the ISIS session is established. This allows ISIS to use BFD to maintain IPv4 connectivity the ISIS peer.
"""
return self._get_attribute(self._SDM_ATT_MAP['EnableBfdRegistration'])
@EnableBfdRegistration.setter
def EnableBfdRegistration(self, value):
self._set_attribute(self._SDM_ATT_MAP['EnableBfdRegistration'], value)
@property
def EnableConfiguredHoldTime(self):
"""
Returns
-------
- bool: If true, enables a hold time for the created interfaces, based on the value set in the configuredHoldTime object.
"""
return self._get_attribute(self._SDM_ATT_MAP['EnableConfiguredHoldTime'])
@EnableConfiguredHoldTime.setter
def EnableConfiguredHoldTime(self, value):
self._set_attribute(self._SDM_ATT_MAP['EnableConfiguredHoldTime'], value)
@property
def EnableConnectedToDut(self):
"""
Returns
-------
- bool: If enabled, this ISIS interface is directly connected to the DUT.
"""
return self._get_attribute(self._SDM_ATT_MAP['EnableConnectedToDut'])
@EnableConnectedToDut.setter
def EnableConnectedToDut(self, value):
self._set_attribute(self._SDM_ATT_MAP['EnableConnectedToDut'], value)
@property
def Enabled(self):
"""
Returns
-------
- bool: Enables the use of this interface for the simulated router.
"""
return self._get_attribute(self._SDM_ATT_MAP['Enabled'])
@Enabled.setter
def Enabled(self, value):
self._set_attribute(self._SDM_ATT_MAP['Enabled'], value)
@property
def ExtendedCircuitId(self):
"""
Returns
-------
- number: The integer value of the local circuit ID.
"""
return self._get_attribute(self._SDM_ATT_MAP['ExtendedCircuitId'])
@ExtendedCircuitId.setter
def ExtendedCircuitId(self, value):
self._set_attribute(self._SDM_ATT_MAP['ExtendedCircuitId'], value)
@property
def InterfaceId(self):
"""
Returns
-------
- str(None | /api/v1/sessions/1/ixnetwork/vport/.../interface): The OSI interface ID for this interface.
"""
return self._get_attribute(self._SDM_ATT_MAP['InterfaceId'])
@InterfaceId.setter
def InterfaceId(self, value):
self._set_attribute(self._SDM_ATT_MAP['InterfaceId'], value)
@property
def InterfaceIp(self):
"""
Returns
-------
- str: The IP address for this interface.
"""
return self._get_attribute(self._SDM_ATT_MAP['InterfaceIp'])
@InterfaceIp.setter
def InterfaceIp(self, value):
self._set_attribute(self._SDM_ATT_MAP['InterfaceIp'], value)
@property
def InterfaceIpMask(self):
"""
Returns
-------
- str: Available only when Interface Connected to DUT is disabled. The mask used with the IPv4 address for this virtual interface on the emulated ISIS router. This interface address is used to connect to virtual ISIS Network Ranges behind the Ixia-emulated ISIS router.
"""
return self._get_attribute(self._SDM_ATT_MAP['InterfaceIpMask'])
@InterfaceIpMask.setter
def InterfaceIpMask(self, value):
self._set_attribute(self._SDM_ATT_MAP['InterfaceIpMask'], value)
@property
def Ipv6MtMetric(self):
"""
Returns
-------
- number: This metric is same as the Interface Metric. If true, it allows you to enter data.
"""
return self._get_attribute(self._SDM_ATT_MAP['Ipv6MtMetric'])
@Ipv6MtMetric.setter
def Ipv6MtMetric(self, value):
self._set_attribute(self._SDM_ATT_MAP['Ipv6MtMetric'], value)
@property
def Level(self):
"""
Returns
-------
- str(level1 | level2 | level1Level2): The IS-IS level associated with the interface.
"""
return self._get_attribute(self._SDM_ATT_MAP['Level'])
@Level.setter
def Level(self, value):
self._set_attribute(self._SDM_ATT_MAP['Level'], value)
@property
def Level1DeadTime(self):
"""
Returns
-------
- number: The dead (holding time) interval for level 1 hello messages, in seconds. If an ISIS router sending L1 hellos is not heard from within this time period, it will be considered down.
"""
return self._get_attribute(self._SDM_ATT_MAP['Level1DeadTime'])
@Level1DeadTime.setter
def Level1DeadTime(self, value):
self._set_attribute(self._SDM_ATT_MAP['Level1DeadTime'], value)
@property
def Level1HelloTime(self):
"""
Returns
-------
- number: The hello interval for level 1 hello messages, in seconds.
"""
return self._get_attribute(self._SDM_ATT_MAP['Level1HelloTime'])
@Level1HelloTime.setter
def Level1HelloTime(self, value):
self._set_attribute(self._SDM_ATT_MAP['Level1HelloTime'], value)
@property
def Level2DeadTime(self):
"""
Returns
-------
- number: The dead (holding time) interval for level 2 hello messages, in seconds. If an ISIS router sending L2 hellos is not heard from within this time period, it will be considered down.
"""
return self._get_attribute(self._SDM_ATT_MAP['Level2DeadTime'])
@Level2DeadTime.setter
def Level2DeadTime(self, value):
self._set_attribute(self._SDM_ATT_MAP['Level2DeadTime'], value)
@property
def Level2HelloTime(self):
"""
Returns
-------
- number: The hello interval for level 2 hello messages, in seconds.
"""
return self._get_attribute(self._SDM_ATT_MAP['Level2HelloTime'])
@Level2HelloTime.setter
def Level2HelloTime(self, value):
self._set_attribute(self._SDM_ATT_MAP['Level2HelloTime'], value)
@property
def Metric(self):
"""
Returns
-------
- number: The cost metric associated with the route.
"""
return self._get_attribute(self._SDM_ATT_MAP['Metric'])
@Metric.setter
def Metric(self, value):
self._set_attribute(self._SDM_ATT_MAP['Metric'], value)
@property
def NetworkType(self):
"""
Returns
-------
- str(pointToPoint | broadcast | pointToMultipoint): Indicates the type of network attached to the interface: broadcast or point-to-point.
"""
return self._get_attribute(self._SDM_ATT_MAP['NetworkType'])
@NetworkType.setter
def NetworkType(self, value):
self._set_attribute(self._SDM_ATT_MAP['NetworkType'], value)
@property
def PriorityLevel1(self):
"""
Returns
-------
- number: Indicates the priority level 1.
"""
return self._get_attribute(self._SDM_ATT_MAP['PriorityLevel1'])
@PriorityLevel1.setter
def PriorityLevel1(self, value):
self._set_attribute(self._SDM_ATT_MAP['PriorityLevel1'], value)
@property
def PriorityLevel2(self):
"""
Returns
-------
- number: Indicates the priority level 2.
"""
return self._get_attribute(self._SDM_ATT_MAP['PriorityLevel2'])
@PriorityLevel2.setter
def PriorityLevel2(self, value):
self._set_attribute(self._SDM_ATT_MAP['PriorityLevel2'], value)
@property
def TeAdminGroup(self):
"""
Returns
-------
- str: The traffic engineering administrative group associated with the interface. (default = {00 00 00 00})
"""
return self._get_attribute(self._SDM_ATT_MAP['TeAdminGroup'])
@TeAdminGroup.setter
def TeAdminGroup(self, value):
self._set_attribute(self._SDM_ATT_MAP['TeAdminGroup'], value)
@property
def TeMaxBandwidth(self):
"""
Returns
-------
- number: For setting the maximum link bandwidth (sub-TLV 9) allowed for this link in this direction. It is a 32-bit IEEE floating point value, in bytes/sec. The default is 0.
"""
return self._get_attribute(self._SDM_ATT_MAP['TeMaxBandwidth'])
@TeMaxBandwidth.setter
def TeMaxBandwidth(self, value):
self._set_attribute(self._SDM_ATT_MAP['TeMaxBandwidth'], value)
@property
def TeMetricLevel(self):
"""
Returns
-------
- number: A user-defined metric for this TE path.
"""
return self._get_attribute(self._SDM_ATT_MAP['TeMetricLevel'])
@TeMetricLevel.setter
def TeMetricLevel(self, value):
self._set_attribute(self._SDM_ATT_MAP['TeMetricLevel'], value)
@property
def TeResMaxBandwidth(self):
"""
Returns
-------
- number: For setting the Maximum reservable link bandwidth (sub-TLV 10). It is the maximum bandwidth that can be reserved for this link in this direction. It is a 32-bit IEEE floating point value, in bytes/sec. The default is 0.
"""
return self._get_attribute(self._SDM_ATT_MAP['TeResMaxBandwidth'])
@TeResMaxBandwidth.setter
def TeResMaxBandwidth(self, value):
self._set_attribute(self._SDM_ATT_MAP['TeResMaxBandwidth'], value)
@property
def TeUnreservedBwPriority(self):
"""
Returns
-------
- list(number): The traffic engineering unreserved bandwidth for each priority to be advertised. There are eight distinct options. (default = 0.0)
"""
return self._get_attribute(self._SDM_ATT_MAP['TeUnreservedBwPriority'])
@TeUnreservedBwPriority.setter
def TeUnreservedBwPriority(self, value):
self._set_attribute(self._SDM_ATT_MAP['TeUnreservedBwPriority'], value)
def update(self, CircuitAuthType=None, CircuitReceivedPasswordList=None, CircuitTransmitPassword=None, ConfiguredHoldTime=None, Enable3WayHandshake=None, EnableAutoAdjustArea=None, EnableAutoAdjustMtu=None, EnableAutoAdjustProtocolsSupported=None, EnableBfdRegistration=None, EnableConfiguredHoldTime=None, EnableConnectedToDut=None, Enabled=None, ExtendedCircuitId=None, InterfaceId=None, InterfaceIp=None, InterfaceIpMask=None, Ipv6MtMetric=None, Level=None, Level1DeadTime=None, Level1HelloTime=None, Level2DeadTime=None, Level2HelloTime=None, Metric=None, NetworkType=None, PriorityLevel1=None, PriorityLevel2=None, TeAdminGroup=None, TeMaxBandwidth=None, TeMetricLevel=None, TeResMaxBandwidth=None, TeUnreservedBwPriority=None):
"""Updates interface resource on the server.
Args
----
- CircuitAuthType (str(none | password | md5)): The type of Circuit Authentication to be used for this emulated ISIS router.
- CircuitReceivedPasswordList (list(str)): The Receive Password List is used only for Cleartext Password authentication. MD5 Authentication requires that both of the neighbors have the same MD5 key for the packets to be accepted.
- CircuitTransmitPassword (str): If circuitAuthType is isisAuthTypePassword, then this is the password (or MD5Key) that will be sent with transmitted IIHs.
- ConfiguredHoldTime (number): The configured hold time for the interface. This value is only used if enableConfiguredHoldTime is set to true.
- Enable3WayHandshake (bool): If true, Ixia emulated point-to-point circuit will include 3-way TLV in its P2P IIH and attempt to establish the adjacency as specified in RFC 5303.
- EnableAutoAdjustArea (bool): If set, and a HELLO message is received which contains a protocols TLV, then the interfaces protocols will be adjusted to match the received TLV.
- EnableAutoAdjustMtu (bool): If set, and a padded HELLO message is received on the interface, then the interfaces MTU will be adjusted to match the packet length of the received HELLO message.
- EnableAutoAdjustProtocolsSupported (bool): If set, and a HELLO message is received which contains a protocols TLV, then the interfaces protocols will be adjusted to match the received TLV.
- EnableBfdRegistration (bool): Indicates if a BFD session is to be created to the ISIS peer IP address once the ISIS session is established. This allows ISIS to use BFD to maintain IPv4 connectivity the ISIS peer.
- EnableConfiguredHoldTime (bool): If true, enables a hold time for the created interfaces, based on the value set in the configuredHoldTime object.
- EnableConnectedToDut (bool): If enabled, this ISIS interface is directly connected to the DUT.
- Enabled (bool): Enables the use of this interface for the simulated router.
- ExtendedCircuitId (number): The integer value of the local circuit ID.
- InterfaceId (str(None | /api/v1/sessions/1/ixnetwork/vport/.../interface)): The OSI interface ID for this interface.
- InterfaceIp (str): The IP address for this interface.
- InterfaceIpMask (str): Available only when Interface Connected to DUT is disabled. The mask used with the IPv4 address for this virtual interface on the emulated ISIS router. This interface address is used to connect to virtual ISIS Network Ranges behind the Ixia-emulated ISIS router.
- Ipv6MtMetric (number): This metric is same as the Interface Metric. If true, it allows you to enter data.
- Level (str(level1 | level2 | level1Level2)): The IS-IS level associated with the interface.
- Level1DeadTime (number): The dead (holding time) interval for level 1 hello messages, in seconds. If an ISIS router sending L1 hellos is not heard from within this time period, it will be considered down.
- Level1HelloTime (number): The hello interval for level 1 hello messages, in seconds.
- Level2DeadTime (number): The dead (holding time) interval for level 2 hello messages, in seconds. If an ISIS router sending L2 hellos is not heard from within this time period, it will be considered down.
- Level2HelloTime (number): The hello interval for level 2 hello messages, in seconds.
- Metric (number): The cost metric associated with the route.
- NetworkType (str(pointToPoint | broadcast | pointToMultipoint)): Indicates the type of network attached to the interface: broadcast or point-to-point.
- PriorityLevel1 (number): Indicates the priority level 1.
- PriorityLevel2 (number): Indicates the priority level 2.
- TeAdminGroup (str): The traffic engineering administrative group associated with the interface. (default = {00 00 00 00})
- TeMaxBandwidth (number): For setting the maximum link bandwidth (sub-TLV 9) allowed for this link in this direction. It is a 32-bit IEEE floating point value, in bytes/sec. The default is 0.
- TeMetricLevel (number): A user-defined metric for this TE path.
- TeResMaxBandwidth (number): For setting the Maximum reservable link bandwidth (sub-TLV 10). It is the maximum bandwidth that can be reserved for this link in this direction. It is a 32-bit IEEE floating point value, in bytes/sec. The default is 0.
- TeUnreservedBwPriority (list(number)): The traffic engineering unreserved bandwidth for each priority to be advertised. There are eight distinct options. (default = 0.0)
Raises
------
- ServerError: The server has encountered an uncategorized error condition
"""
return self._update(self._map_locals(self._SDM_ATT_MAP, locals()))
def add(self, CircuitAuthType=None, CircuitReceivedPasswordList=None, CircuitTransmitPassword=None, ConfiguredHoldTime=None, Enable3WayHandshake=None, EnableAutoAdjustArea=None, EnableAutoAdjustMtu=None, EnableAutoAdjustProtocolsSupported=None, EnableBfdRegistration=None, EnableConfiguredHoldTime=None, EnableConnectedToDut=None, Enabled=None, ExtendedCircuitId=None, InterfaceId=None, InterfaceIp=None, InterfaceIpMask=None, Ipv6MtMetric=None, Level=None, Level1DeadTime=None, Level1HelloTime=None, Level2DeadTime=None, Level2HelloTime=None, Metric=None, NetworkType=None, PriorityLevel1=None, PriorityLevel2=None, TeAdminGroup=None, TeMaxBandwidth=None, TeMetricLevel=None, TeResMaxBandwidth=None, TeUnreservedBwPriority=None):
"""Adds a new interface resource on the server and adds it to the container.
Args
----
- CircuitAuthType (str(none | password | md5)): The type of Circuit Authentication to be used for this emulated ISIS router.
- CircuitReceivedPasswordList (list(str)): The Receive Password List is used only for Cleartext Password authentication. MD5 Authentication requires that both of the neighbors have the same MD5 key for the packets to be accepted.
- CircuitTransmitPassword (str): If circuitAuthType is isisAuthTypePassword, then this is the password (or MD5Key) that will be sent with transmitted IIHs.
- ConfiguredHoldTime (number): The configured hold time for the interface. This value is only used if enableConfiguredHoldTime is set to true.
- Enable3WayHandshake (bool): If true, Ixia emulated point-to-point circuit will include 3-way TLV in its P2P IIH and attempt to establish the adjacency as specified in RFC 5303.
- EnableAutoAdjustArea (bool): If set, and a HELLO message is received which contains a protocols TLV, then the interfaces protocols will be adjusted to match the received TLV.
- EnableAutoAdjustMtu (bool): If set, and a padded HELLO message is received on the interface, then the interfaces MTU will be adjusted to match the packet length of the received HELLO message.
- EnableAutoAdjustProtocolsSupported (bool): If set, and a HELLO message is received which contains a protocols TLV, then the interfaces protocols will be adjusted to match the received TLV.
- EnableBfdRegistration (bool): Indicates if a BFD session is to be created to the ISIS peer IP address once the ISIS session is established. This allows ISIS to use BFD to maintain IPv4 connectivity the ISIS peer.
- EnableConfiguredHoldTime (bool): If true, enables a hold time for the created interfaces, based on the value set in the configuredHoldTime object.
- EnableConnectedToDut (bool): If enabled, this ISIS interface is directly connected to the DUT.
- Enabled (bool): Enables the use of this interface for the simulated router.
- ExtendedCircuitId (number): The integer value of the local circuit ID.
- InterfaceId (str(None | /api/v1/sessions/1/ixnetwork/vport/.../interface)): The OSI interface ID for this interface.
- InterfaceIp (str): The IP address for this interface.
- InterfaceIpMask (str): Available only when Interface Connected to DUT is disabled. The mask used with the IPv4 address for this virtual interface on the emulated ISIS router. This interface address is used to connect to virtual ISIS Network Ranges behind the Ixia-emulated ISIS router.
- Ipv6MtMetric (number): This metric is same as the Interface Metric. If true, it allows you to enter data.
- Level (str(level1 | level2 | level1Level2)): The IS-IS level associated with the interface.
- Level1DeadTime (number): The dead (holding time) interval for level 1 hello messages, in seconds. If an ISIS router sending L1 hellos is not heard from within this time period, it will be considered down.
- Level1HelloTime (number): The hello interval for level 1 hello messages, in seconds.
- Level2DeadTime (number): The dead (holding time) interval for level 2 hello messages, in seconds. If an ISIS router sending L2 hellos is not heard from within this time period, it will be considered down.
- Level2HelloTime (number): The hello interval for level 2 hello messages, in seconds.
- Metric (number): The cost metric associated with the route.
- NetworkType (str(pointToPoint | broadcast | pointToMultipoint)): Indicates the type of network attached to the interface: broadcast or point-to-point.
- PriorityLevel1 (number): Indicates the priority level 1.
- PriorityLevel2 (number): Indicates the priority level 2.
- TeAdminGroup (str): The traffic engineering administrative group associated with the interface. (default = {00 00 00 00})
- TeMaxBandwidth (number): For setting the maximum link bandwidth (sub-TLV 9) allowed for this link in this direction. It is a 32-bit IEEE floating point value, in bytes/sec. The default is 0.
- TeMetricLevel (number): A user-defined metric for this TE path.
- TeResMaxBandwidth (number): For setting the Maximum reservable link bandwidth (sub-TLV 10). It is the maximum bandwidth that can be reserved for this link in this direction. It is a 32-bit IEEE floating point value, in bytes/sec. The default is 0.
- TeUnreservedBwPriority (list(number)): The traffic engineering unreserved bandwidth for each priority to be advertised. There are eight distinct options. (default = 0.0)
Returns
-------
- self: This instance with all currently retrieved interface resources using find and the newly added interface resources available through an iterator or index
Raises
------
- ServerError: The server has encountered an uncategorized error condition
"""
return self._create(self._map_locals(self._SDM_ATT_MAP, locals()))
def remove(self):
"""Deletes all the contained interface resources in this instance from the server.
Raises
------
- NotFoundError: The requested resource does not exist on the server
- ServerError: The server has encountered an uncategorized error condition
"""
self._delete()
def find(self, CircuitAuthType=None, CircuitReceivedPasswordList=None, CircuitTransmitPassword=None, ConfiguredHoldTime=None, Enable3WayHandshake=None, EnableAutoAdjustArea=None, EnableAutoAdjustMtu=None, EnableAutoAdjustProtocolsSupported=None, EnableBfdRegistration=None, EnableConfiguredHoldTime=None, EnableConnectedToDut=None, Enabled=None, ExtendedCircuitId=None, InterfaceId=None, InterfaceIp=None, InterfaceIpMask=None, Ipv6MtMetric=None, Level=None, Level1DeadTime=None, Level1HelloTime=None, Level2DeadTime=None, Level2HelloTime=None, Metric=None, NetworkType=None, PriorityLevel1=None, PriorityLevel2=None, TeAdminGroup=None, TeMaxBandwidth=None, TeMetricLevel=None, TeResMaxBandwidth=None, TeUnreservedBwPriority=None):
"""Finds and retrieves interface resources from the server.
All named parameters are evaluated on the server using regex. The named parameters can be used to selectively retrieve interface resources from the server.
To retrieve an exact match ensure the parameter value starts with ^ and ends with $
By default the find method takes no parameters and will retrieve all interface resources from the server.
Args
----
- CircuitAuthType (str(none | password | md5)): The type of Circuit Authentication to be used for this emulated ISIS router.
- CircuitReceivedPasswordList (list(str)): The Receive Password List is used only for Cleartext Password authentication. MD5 Authentication requires that both of the neighbors have the same MD5 key for the packets to be accepted.
- CircuitTransmitPassword (str): If circuitAuthType is isisAuthTypePassword, then this is the password (or MD5Key) that will be sent with transmitted IIHs.
- ConfiguredHoldTime (number): The configured hold time for the interface. This value is only used if enableConfiguredHoldTime is set to true.
- Enable3WayHandshake (bool): If true, Ixia emulated point-to-point circuit will include 3-way TLV in its P2P IIH and attempt to establish the adjacency as specified in RFC 5303.
- EnableAutoAdjustArea (bool): If set, and a HELLO message is received which contains a protocols TLV, then the interfaces protocols will be adjusted to match the received TLV.
- EnableAutoAdjustMtu (bool): If set, and a padded HELLO message is received on the interface, then the interfaces MTU will be adjusted to match the packet length of the received HELLO message.
- EnableAutoAdjustProtocolsSupported (bool): If set, and a HELLO message is received which contains a protocols TLV, then the interfaces protocols will be adjusted to match the received TLV.
- EnableBfdRegistration (bool): Indicates if a BFD session is to be created to the ISIS peer IP address once the ISIS session is established. This allows ISIS to use BFD to maintain IPv4 connectivity the ISIS peer.
- EnableConfiguredHoldTime (bool): If true, enables a hold time for the created interfaces, based on the value set in the configuredHoldTime object.
- EnableConnectedToDut (bool): If enabled, this ISIS interface is directly connected to the DUT.
- Enabled (bool): Enables the use of this interface for the simulated router.
- ExtendedCircuitId (number): The integer value of the local circuit ID.
- InterfaceId (str(None | /api/v1/sessions/1/ixnetwork/vport/.../interface)): The OSI interface ID for this interface.
- InterfaceIp (str): The IP address for this interface.
- InterfaceIpMask (str): Available only when Interface Connected to DUT is disabled. The mask used with the IPv4 address for this virtual interface on the emulated ISIS router. This interface address is used to connect to virtual ISIS Network Ranges behind the Ixia-emulated ISIS router.
- Ipv6MtMetric (number): This metric is same as the Interface Metric. If true, it allows you to enter data.
- Level (str(level1 | level2 | level1Level2)): The IS-IS level associated with the interface.
- Level1DeadTime (number): The dead (holding time) interval for level 1 hello messages, in seconds. If an ISIS router sending L1 hellos is not heard from within this time period, it will be considered down.
- Level1HelloTime (number): The hello interval for level 1 hello messages, in seconds.
- Level2DeadTime (number): The dead (holding time) interval for level 2 hello messages, in seconds. If an ISIS router sending L2 hellos is not heard from within this time period, it will be considered down.
- Level2HelloTime (number): The hello interval for level 2 hello messages, in seconds.
- Metric (number): The cost metric associated with the route.
- NetworkType (str(pointToPoint | broadcast | pointToMultipoint)): Indicates the type of network attached to the interface: broadcast or point-to-point.
- PriorityLevel1 (number): Indicates the priority level 1.
- PriorityLevel2 (number): Indicates the priority level 2.
- TeAdminGroup (str): The traffic engineering administrative group associated with the interface. (default = {00 00 00 00})
- TeMaxBandwidth (number): For setting the maximum link bandwidth (sub-TLV 9) allowed for this link in this direction. It is a 32-bit IEEE floating point value, in bytes/sec. The default is 0.
- TeMetricLevel (number): A user-defined metric for this TE path.
- TeResMaxBandwidth (number): For setting the Maximum reservable link bandwidth (sub-TLV 10). It is the maximum bandwidth that can be reserved for this link in this direction. It is a 32-bit IEEE floating point value, in bytes/sec. The default is 0.
- TeUnreservedBwPriority (list(number)): The traffic engineering unreserved bandwidth for each priority to be advertised. There are eight distinct options. (default = 0.0)
Returns
-------
- self: This instance with matching interface resources retrieved from the server available through an iterator or index
Raises
------
- ServerError: The server has encountered an uncategorized error condition
"""
return self._select(self._map_locals(self._SDM_ATT_MAP, locals()))
def read(self, href):
"""Retrieves a single instance of interface data from the server.
Args
----
- href (str): An href to the instance to be retrieved
Returns
-------
- self: This instance with the interface resources from the server available through an iterator or index
Raises
------
- NotFoundError: The requested resource does not exist on the server
- ServerError: The server has encountered an uncategorized error condition
"""
return self._read(href)
|
[
"andy.balogh@keysight.com"
] |
andy.balogh@keysight.com
|
86089daeedc71651ae0564812bf24553d130050a
|
f399fbac7e35dcc2c2f2ad4d3202b0839d9b7d48
|
/user/send_mail.py
|
0cb781b2301d5d6442e6f1cfdfd49aada05a621f
|
[] |
no_license
|
AktanKasymaliev/django-toilets-service
|
480f56b652a88e1422290de8906f0bb6d5693cff
|
225d71b164c36bab5fded86390b17ce265694a17
|
refs/heads/main
| 2023-07-14T12:46:12.399114
| 2021-08-23T17:14:04
| 2021-08-23T17:14:04
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,328
|
py
|
from django.template.loader import render_to_string
from django.utils.html import strip_tags
from django.core.mail import send_mail
from django.contrib.sites.shortcuts import get_current_site
from django.core.mail import EmailMultiAlternatives
from decouple import config
from django.utils.http import urlsafe_base64_decode, urlsafe_base64_encode
from django.utils.encoding import force_bytes, force_text
from .token import account_activation_token
def send_confirmation_email(request, user):
context = {
"small_text_detail": "Thank you for "
"creating an account. "
"Please verify your email "
"address to set up your account.",
"email": user.email,
"domain":get_current_site(request).domain,
"uid":urlsafe_base64_encode(force_bytes(user.pk)),
"token":account_activation_token.make_token(user)
}
current_site = get_current_site(request)
mail_subject = 'Active your account'
to_email = user.email
message = render_to_string('account/email.html', context)
email = EmailMultiAlternatives(
mail_subject,
message,
from_email=config('EMAIL_HOST_USER'),
to = [user.email],
)
email.content_subtype = 'html'
email.send(fail_silently=True)
print("ВСЕ ПРОШЛО УСПЕШНО EMAIL SENT")
|
[
"aktan.kasymaliev@icloud.com"
] |
aktan.kasymaliev@icloud.com
|
2ed87c256e5bf9f70115c96c9aec2798f8b5a5af
|
14913a0fb7e1d17318a55a12f5a181dddad3c328
|
/63.snake.py
|
990234c17a8d9d056195b13ae470723aa887b84e
|
[] |
no_license
|
Jesuisjavert/Algorithm
|
6571836ec23ac3036565738c2bee94f416595f22
|
730549d19e66e20b3474a235a600958a8e036a0e
|
refs/heads/master
| 2023-02-16T06:34:50.984529
| 2020-09-25T09:40:30
| 2020-09-25T09:40:30
| 330,849,371
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 168
|
py
|
import sys
sys.stdin = open('input.txt','r')
T = int(input())
for testcase in range(1,T+1):
arr = [list(map(int, input().split())) for _ in range(4)]
print(arr)
|
[
"jesuisjavert@gmail.com"
] |
jesuisjavert@gmail.com
|
beed14a3c1aff89d035020396a37556f4cf88ed1
|
24d8cf871b092b2d60fc85d5320e1bc761a7cbe2
|
/wicd/rev519-537/right-branch-537/wicd/backends/be-wireless/threadedwirelessinterface.py
|
ab1a5d1e45f9fa860b190118e1d14d918ce5832a
|
[] |
no_license
|
joliebig/featurehouse_fstmerge_examples
|
af1b963537839d13e834f829cf51f8ad5e6ffe76
|
1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad
|
refs/heads/master
| 2016-09-05T10:24:50.974902
| 2013-03-28T16:28:47
| 2013-03-28T16:28:47
| 9,080,611
| 3
| 2
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,698
|
py
|
from misc import WicdError
from baseinterface import needsidle
from encryptablewirelessinterface import EncryptableWirelessInterface
from asyncrunner import AsyncManager, AsyncError
class ThreadedWirelessInterface(EncryptableWirelessInterface):
def __init__(self, interface_name):
EncryptableWirelessInterface.__init__(self, interface_name)
self.__async_manager = AsyncManager()
def scan(self, finished_callback):
''' Performs a scan. Scanning is done asynchronously. '''
def _do_scan(abort_if_needed, self):
return EncryptableWirelessInterface._do_scan(self)
def finish_up(result):
print 'scan finished', result
self.networks = result
finished_callback()
self.__async_manager.run(_do_scan, finish_up, self)
def connect(self, finished_callback):
''' Attempts to connect. Connecting is done asynchronously.'''
def _do_connect(abort_if_needed, interface, network):
print 'connecting...'
print interface
print network
import time
while True:
time.sleep(10)
print 'in connecting thread...'
abort_if_needed()
print 'done connecting'
def finish_up(result):
finished_callback()
self.__async_manager.run(_do_connect, finish_up, self,
self.current_network,
name='connect')
def cancel_connection_attempt(self):
''' Cancel the current attempt to connect to the network. '''
self.__async_manager.stop('connect')
|
[
"joliebig@fim.uni-passau.de"
] |
joliebig@fim.uni-passau.de
|
be7975289ea7397570ae5a442d590aae139acd82
|
214dde26c268d1d0b7991318c5e2d43aa27af89b
|
/backlooking/order_analysis.py
|
c7b7acc13a43f9796ee1e1050048258fb6cc19ad
|
[] |
no_license
|
hellobiek/smart_deal_tool
|
f1846903ac402257bbe92bd23f9552970937d50e
|
ba8aad0a37843362f5833526921c6f700fb881f1
|
refs/heads/master
| 2022-09-04T04:41:34.598164
| 2022-08-04T22:04:09
| 2022-08-04T22:04:09
| 88,258,362
| 36
| 14
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 3,559
|
py
|
#-*- coding: utf-8 -*-
import os
import sys
from os.path import abspath, dirname
sys.path.insert(0, dirname(dirname(abspath(__file__))))
import datetime
import const as ct
import pandas as pd
from futu import TrdEnv
from datetime import datetime
from base.cdate import get_dates_array
from tools.markdown_table import MarkdownTable
from tools.markdown_writer import MarkdownWriter
from algotrade.broker.futu.fututrader import FutuTrader
pd.options.mode.chained_assignment = None
def get_total_profit(orders):
buy_orders = orders.loc[orders.trd_side == 'BUY']
buy_orders = buy_orders.reset_index(drop = True)
sell_orders = orders.loc[orders.trd_side == 'SELL']
sell_orders = sell_orders.reset_index(drop = True)
total_sell_value = (sell_orders['dealt_qty'] * sell_orders['dealt_avg_price']).sum()
total_buy_value = (buy_orders['dealt_qty'] * buy_orders['dealt_avg_price']).sum()
return total_sell_value - total_buy_value
def generate(orders, date_arrary, dirname, start, end):
filename = 'form_%s_to_%s_tading_review.md' % (start, end)
os.makedirs(dirname, exist_ok = True)
fullfilepath = os.path.join(dirname, filename)
orders = orders[['code', 'trd_side', 'dealt_qty', 'dealt_avg_price', 'create_time', 'updated_time']]
total_profit = get_total_profit(orders)
md = MarkdownWriter()
md.addTitle("%s_%s_交割单" % (start, end), passwd = '909897')
md.addHeader("交割单分析", 1)
md.addHeader("总收益分析", 2)
t_index = MarkdownTable(headers = ["总收益"])
t_index.addRow(["%s" % total_profit])
md.addTable(t_index)
md.addHeader("交割单复盘", 2)
for cdate in date_arrary:
md.addHeader("%s_交割单" % cdate, 3)
order_info = orders.loc[orders['create_time'].str.startswith(cdate)]
order_info.at[:, 'create_time'] = order_info.loc[:, 'create_time'].str.split().str[1].str[0:8]
order_info = order_info.reset_index(drop = True)
t_index = MarkdownTable(headers = ["名称", "方向", "数量", "价格", "创建时间", "完成时间", "对错", "分析"])
for index in range(len(order_info)):
data_list = order_info.loc[index].tolist()
content_list = [data_list[0], data_list[1], int(data_list[2]), round(data_list[3], 2), data_list[4], data_list[5].split(' ')[1].strip()[0:8], '', '']
content_list = [str(i) for i in content_list]
t_index.addRow(content_list)
md.addTable(t_index)
md.addHeader("本周总结", 2)
md.addHeader("优点", 3)
md.addHeader("缺点", 3)
md.addHeader("心得", 3)
with open(fullfilepath, "w+") as f:
f.write(md.getStream())
def main():
#dirname = '/Volumes/data/quant/stock/data/docs/blog/hellobiek.github.io/source/_posts'
dirname = '/Users/hellobiek/Documents/workspace/blog/blog/source/_posts'
unlock_path = "/Users/hellobiek/Documents/workspace/python/quant/smart_deal_tool/configure/follow_trend.json"
key_path = "/Users/hellobiek/Documents/workspace/python/quant/smart_deal_tool/configure/key.pri"
futuTrader = FutuTrader(host = ct.FUTU_HOST_LOCAL, port = ct.FUTU_PORT, trd_env = TrdEnv.REAL, market = ct.US_MARKET_SYMBOL, unlock_path = unlock_path, key_path = key_path)
start = '2020-08-11'
end = '2020-08-12'
orders = futuTrader.get_history_orders(start = start, end = end)
date_arrary = get_dates_array(start, end, dformat = "%Y-%m-%d", asending = True)
generate(orders, date_arrary, dirname, start, end)
if __name__ == "__main__":
main()
|
[
"hellobiek@gmail.com"
] |
hellobiek@gmail.com
|
ba7f120c0d5551658bacbd572127dbb325214ffa
|
11b420a9e6dbe371167227f41ef8e344e3382612
|
/ConvNets/Comparison_Plots/Pooled_Images/Pooled_Images.py
|
15a23b6ae92fc9bdfccb8654ccf3350027e0953e
|
[
"MIT"
] |
permissive
|
tarek-ullah/Active-Learning-Bayesian-Convolutional-Neural-Networks
|
7092386758b68dc922efaa2c2eba055930bf2896
|
f8b68038bd3b97c473e9c1de6b6cdee4538021f4
|
refs/heads/master
| 2021-01-13T06:57:19.343775
| 2016-11-02T12:22:16
| 2016-11-02T12:22:16
| 81,338,773
| 1
| 0
| null | 2017-02-08T14:34:15
| 2017-02-08T14:34:15
| null |
UTF-8
|
Python
| false
| false
| 3,650
|
py
|
from __future__ import print_function
from keras.datasets import mnist
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.optimizers import SGD, Adadelta, Adagrad, Adam
from keras.utils import np_utils, generic_utils
from six.moves import range
import numpy as np
import scipy as sp
from keras import backend as K
import random
import scipy.io
import matplotlib.pyplot as plt
from keras.regularizers import l2, activity_l2
from scipy.stats import mode
# input image dimensions
img_rows, img_cols = 28, 28
# the data, shuffled and split between tran and test sets
(X_train_All, y_train_All), (X_test, y_test) = mnist.load_data()
X_train_All = X_train_All.reshape(X_train_All.shape[0], 1, img_rows, img_cols)
X_test = X_test.reshape(X_test.shape[0], 1, img_rows, img_cols)
X_Pool = X_train_All[5000:15000, :, :, :]
y_Pool = y_train_All[5000:15000]
Total_Pooled_Images = 400
Bald_Pool = np.load('Bald_Pool.npy')
print('Pooling Dropout Bald Images')
#saving pooled images
for im in range(Total_Pooled_Images):
Image = X_Pool[Bald_Pool[1+im], :, :, :]
img = Image.reshape((28,28))
sp.misc.imsave('/Users/Riashat/Documents/Cambridge_THESIS/Code/Experiments/keras/RESULTS/Cluster_Experiment_Results/2nd/Pooled_Images/Bald_Pool_Images/'+'Pooled'+'_Image_'+str(im)+'.jpg', img)
Dropout_Max_Entropy_Pool = np.load('Dropout_Max_Entropy_Pool.npy')
print('Pooling Dropout Max Entropy Images')
#saving pooled images
for im in range(Total_Pooled_Images):
Image = X_Pool[Dropout_Max_Entropy_Pool[1+im], :, :, :]
img = Image.reshape((28,28))
sp.misc.imsave('/Users/Riashat/Documents/Cambridge_THESIS/Code/Experiments/keras/RESULTS/Cluster_Experiment_Results/2nd/Pooled_Images/Dropout_Max_Entropy_Images/'+'Pooled'+'_Image_'+str(im)+'.jpg', img)
# Segnet_Pool = np.load('Segnet_Pool.npy')
# print('Pooling Bayes Segnet Images')
# #saving pooled images
# for im in range(Total_Pooled_Images):
# Image = X_Pool[Segnet_Pool[im], :, :, :]
# img = Image.reshape((28,28))
# sp.misc.imsave('/Users/Riashat/Documents/Cambridge_THESIS/Code/Experiments/keras/RESULTS/Cluster_Experiment_Results/2nd/Pooled_Images/Segnet_Pool_Images/'+'Pooled'+'_Image_'+str(im)+'.jpg', img)
Variation_Ratio_Pool = np.load('Variation_Ratio_Pool.npy')
print('Pooling Variation Ratio Images')
#saving pooled images
for im in range(Total_Pooled_Images):
Image = X_Pool[Variation_Ratio_Pool[1+im], :, :, :]
img = Image.reshape((28,28))
sp.misc.imsave('/Users/Riashat/Documents/Cambridge_THESIS/Code/Experiments/keras/RESULTS/Cluster_Experiment_Results/2nd/Pooled_Images/Variation_Ratio_Images/'+'Pooled'+'_Image_'+str(im)+'.jpg', img)
Max_Entropy_Pool = np.load('Max_Entropy_Pool.npy')
print('Pooling Max Entropy Images')
#saving pooled images
for im in range(Total_Pooled_Images):
Image = X_Pool[Max_Entropy_Pool[1+im], :, :, :]
img = Image.reshape((28,28))
sp.misc.imsave('/Users/Riashat/Documents/Cambridge_THESIS/Code/Experiments/keras/RESULTS/Cluster_Experiment_Results/2nd/Pooled_Images/Max_Entropy_Images/'+'Pooled'+'_Image_'+str(im)+'.jpg', img)
Random_Pool = np.load('Random_Pool.npy')
print('Pooling Random Acquisition Images')
#saving pooled images
for im in range(Total_Pooled_Images):
Image = X_Pool[Random_Pool[1+im], :, :, :]
img = Image.reshape((28,28))
sp.misc.imsave('/Users/Riashat/Documents/Cambridge_THESIS/Code/Experiments/keras/RESULTS/Cluster_Experiment_Results/2nd/Pooled_Images/Random_Images/'+'Pooled'+'_Image_'+str(im)+'.jpg', img)
|
[
"riashat.islam.93@gmail.com"
] |
riashat.islam.93@gmail.com
|
54c162b29e9001c19ac7d6dca301deb9f0baaeda
|
69e318f2b60175108bc74ee669bfe16287a71cb6
|
/plugins/modules/fortios_firewall_vipgrp46.py
|
c17473a84beae56fcf18f1d94f460da32776abe1
|
[] |
no_license
|
chillancezen/ansible-galaxy-fortios-collection
|
5268a5fd97fb4594772349b8d89cb818ec54b3bd
|
66a331cd4493d1b0f49798d5c2cd6ef5aeba84d3
|
refs/heads/master
| 2022-04-09T19:20:59.073193
| 2020-03-26T07:17:09
| 2020-03-26T07:17:09
| 250,185,374
| 0
| 0
| null | 2020-03-26T07:06:16
| 2020-03-26T07:06:16
| null |
UTF-8
|
Python
| false
| false
| 11,486
|
py
|
#!/usr/bin/python
from __future__ import (absolute_import, division, print_function)
# Copyright 2019 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
__metaclass__ = type
ANSIBLE_METADATA = {'status': ['preview'],
'supported_by': 'community',
'metadata_version': '1.1'}
DOCUMENTATION = '''
---
module: fortios_firewall_vipgrp46
short_description: Configure IPv4 to IPv6 virtual IP groups in Fortinet's FortiOS and FortiGate.
description:
- This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the
user to set and modify firewall feature and vipgrp46 category.
Examples include all parameters and values need to be adjusted to datasources before usage.
Tested with FOS v6.0.5
version_added: "2.8"
author:
- Miguel Angel Munoz (@mamunozgonzalez)
- Nicolas Thomas (@thomnico)
notes:
- Requires fortiosapi library developed by Fortinet
- Run as a local_action in your playbook
requirements:
- fortiosapi>=0.9.8
options:
host:
description:
- FortiOS or FortiGate IP address.
type: str
required: false
username:
description:
- FortiOS or FortiGate username.
type: str
required: false
password:
description:
- FortiOS or FortiGate password.
type: str
default: ""
vdom:
description:
- Virtual domain, among those defined previously. A vdom is a
virtual instance of the FortiGate that can be configured and
used as a different unit.
type: str
default: root
https:
description:
- Indicates if the requests towards FortiGate must use HTTPS protocol.
type: bool
default: true
ssl_verify:
description:
- Ensures FortiGate certificate must be verified by a proper CA.
type: bool
default: true
version_added: 2.9
state:
description:
- Indicates whether to create or remove the object.
This attribute was present already in previous version in a deeper level.
It has been moved out to this outer level.
type: str
required: false
choices:
- present
- absent
version_added: 2.9
firewall_vipgrp46:
description:
- Configure IPv4 to IPv6 virtual IP groups.
default: null
type: dict
suboptions:
state:
description:
- B(Deprecated)
- Starting with Ansible 2.9 we recommend using the top-level 'state' parameter.
- HORIZONTALLINE
- Indicates whether to create or remove the object.
type: str
required: false
choices:
- present
- absent
color:
description:
- Integer value to determine the color of the icon in the GUI (range 1 to 32).
type: int
comments:
description:
- Comment.
type: str
member:
description:
- Member VIP objects of the group (Separate multiple objects with a space).
type: list
suboptions:
name:
description:
- VIP46 name. Source firewall.vip46.name.
required: true
type: str
name:
description:
- VIP46 group name.
required: true
type: str
uuid:
description:
- Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
type: str
'''
EXAMPLES = '''
- hosts: localhost
vars:
host: "192.168.122.40"
username: "admin"
password: ""
vdom: "root"
ssl_verify: "False"
tasks:
- name: Configure IPv4 to IPv6 virtual IP groups.
fortios_firewall_vipgrp46:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
vdom: "{{ vdom }}"
https: "False"
state: "present"
firewall_vipgrp46:
color: "3"
comments: "<your_own_value>"
member:
-
name: "default_name_6 (source firewall.vip46.name)"
name: "default_name_7"
uuid: "<your_own_value>"
'''
RETURN = '''
build:
description: Build number of the fortigate image
returned: always
type: str
sample: '1547'
http_method:
description: Last method used to provision the content into FortiGate
returned: always
type: str
sample: 'PUT'
http_status:
description: Last result given by FortiGate on last operation applied
returned: always
type: str
sample: "200"
mkey:
description: Master key (id) used in the last call to FortiGate
returned: success
type: str
sample: "id"
name:
description: Name of the table used to fulfill the request
returned: always
type: str
sample: "urlfilter"
path:
description: Path of the table used to fulfill the request
returned: always
type: str
sample: "webfilter"
revision:
description: Internal revision number
returned: always
type: str
sample: "17.0.2.10658"
serial:
description: Serial number of the unit
returned: always
type: str
sample: "FGVMEVYYQT3AB5352"
status:
description: Indication of the operation's result
returned: always
type: str
sample: "success"
vdom:
description: Virtual domain used
returned: always
type: str
sample: "root"
version:
description: Version of the FortiGate
returned: always
type: str
sample: "v5.6.3"
'''
from ansible.module_utils.basic import AnsibleModule
from ansible.module_utils.connection import Connection
from ansible_collections.fortinet.fortios.plugins.module_utils.fortios.fortios import FortiOSHandler
from ansible_collections.fortinet.fortios.plugins.module_utils.fortimanager.common import FAIL_SOCKET_MSG
def login(data, fos):
host = data['host']
username = data['username']
password = data['password']
ssl_verify = data['ssl_verify']
fos.debug('on')
if 'https' in data and not data['https']:
fos.https('off')
else:
fos.https('on')
fos.login(host, username, password, verify=ssl_verify)
def filter_firewall_vipgrp46_data(json):
option_list = ['color', 'comments', 'member',
'name', 'uuid']
dictionary = {}
for attribute in option_list:
if attribute in json and json[attribute] is not None:
dictionary[attribute] = json[attribute]
return dictionary
def underscore_to_hyphen(data):
if isinstance(data, list):
for elem in data:
elem = underscore_to_hyphen(elem)
elif isinstance(data, dict):
new_data = {}
for k, v in data.items():
new_data[k.replace('_', '-')] = underscore_to_hyphen(v)
data = new_data
return data
def firewall_vipgrp46(data, fos):
vdom = data['vdom']
if 'state' in data and data['state']:
state = data['state']
elif 'state' in data['firewall_vipgrp46'] and data['firewall_vipgrp46']:
state = data['firewall_vipgrp46']['state']
else:
state = True
firewall_vipgrp46_data = data['firewall_vipgrp46']
filtered_data = underscore_to_hyphen(filter_firewall_vipgrp46_data(firewall_vipgrp46_data))
if state == "present":
return fos.set('firewall',
'vipgrp46',
data=filtered_data,
vdom=vdom)
elif state == "absent":
return fos.delete('firewall',
'vipgrp46',
mkey=filtered_data['name'],
vdom=vdom)
def is_successful_status(status):
return status['status'] == "success" or \
status['http_method'] == "DELETE" and status['http_status'] == 404
def fortios_firewall(data, fos):
if data['firewall_vipgrp46']:
resp = firewall_vipgrp46(data, fos)
return not is_successful_status(resp), \
resp['status'] == "success", \
resp
def main():
fields = {
"host": {"required": False, "type": "str"},
"username": {"required": False, "type": "str"},
"password": {"required": False, "type": "str", "default": "", "no_log": True},
"vdom": {"required": False, "type": "str", "default": "root"},
"https": {"required": False, "type": "bool", "default": True},
"ssl_verify": {"required": False, "type": "bool", "default": True},
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"firewall_vipgrp46": {
"required": False, "type": "dict", "default": None,
"options": {
"state": {"required": False, "type": "str",
"choices": ["present", "absent"]},
"color": {"required": False, "type": "int"},
"comments": {"required": False, "type": "str"},
"member": {"required": False, "type": "list",
"options": {
"name": {"required": True, "type": "str"}
}},
"name": {"required": True, "type": "str"},
"uuid": {"required": False, "type": "str"}
}
}
}
module = AnsibleModule(argument_spec=fields,
supports_check_mode=False)
# legacy_mode refers to using fortiosapi instead of HTTPAPI
legacy_mode = 'host' in module.params and module.params['host'] is not None and \
'username' in module.params and module.params['username'] is not None and \
'password' in module.params and module.params['password'] is not None
if not legacy_mode:
if module._socket_path:
connection = Connection(module._socket_path)
fos = FortiOSHandler(connection)
is_error, has_changed, result = fortios_firewall(module.params, fos)
else:
module.fail_json(**FAIL_SOCKET_MSG)
else:
try:
from fortiosapi import FortiOSAPI
except ImportError:
module.fail_json(msg="fortiosapi module is required")
fos = FortiOSAPI()
login(module.params, fos)
is_error, has_changed, result = fortios_firewall(module.params, fos)
fos.logout()
if not is_error:
module.exit_json(changed=has_changed, meta=result)
else:
module.fail_json(msg="Error in repo", meta=result)
if __name__ == '__main__':
main()
|
[
"fshen01@fortinet.com"
] |
fshen01@fortinet.com
|
eee47352250b1354c790e2f7624fae5c7205dbdd
|
d45b87ba22649cb9c0f003479112c50a7ce09ba0
|
/Counting Sort 3.py
|
65bd53aba0bb44a886e5ed534ec574b1d9fdc902
|
[] |
no_license
|
chishui/HackerRankAlgorithmsChallenge
|
7458f6553f52846b9de5b68c0f692f72be13dfa8
|
611096a0c362675ce68598065ea3fe0abbbe5b99
|
refs/heads/master
| 2020-12-24T13:35:43.829308
| 2014-09-02T10:36:57
| 2014-09-02T10:36:57
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 311
|
py
|
#https://www.hackerrank.com/challenges/countingsort3
N = input()
li = [int(raw_input().strip().split()[0]) for i in range(0, N)]
li.sort()
last = -1
index = 0
out = []
for i in range(0, 100):
while index < len(li) and i >= li[index] :
index = index + 1
out.append(index)
print ' '.join(map(str, out))
|
[
"chishui2@gmail.com"
] |
chishui2@gmail.com
|
79e89da491df1b01cf2db1375aa85bf04472dfce
|
f29a31354a66798e2c398fc2a01bc285b6e35dfb
|
/NeuralNetworks/l-IntroToNeuralNetworks/Perceptrons.py
|
8b97e96224a7febd95bb5ca02c32f3a2c2cb5e9d
|
[] |
no_license
|
ajpiter/UdacityDeepLearning
|
2fd8b6ba7f29aa03ab9dfdd557dbdcc692e7ada0
|
eb343a8be223f4bcc15a87483f7945023c2c9a0e
|
refs/heads/master
| 2021-01-02T09:00:34.221125
| 2017-08-28T16:32:45
| 2017-08-28T16:32:45
| 99,121,250
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,764
|
py
|
#Perceptrons
#Also known as neurons
#Inputs
#Weights
#Start out as random values, then as the neural network learns more about the input data and results the network adjusts the weights
#The process of adjusting the weights is called training the neural network
#The higher the weight the more important it is in determining the output
# 'W' represents a matrix of weights
# 'w' represents an indivdual weight
#Linear combination
#Multiple weights times inputs and sum them
#Start at i = 1
#Evaluate (w1 * x1) and remember the results
#move to i = 2
#Evaluate (w2 * x2) and add these results to (w1 * x1)
#Continue repeating that process until i = mi where m is the number of inputs
#Example, if we had two inputs, (w1 * x1) + (w2 * x2)
#Output signal
#Done by feeding the linear combination into an activation function
#Activation functions are functions that decide, given the inputs to the node what should be the nodes outputs.
#The output layer is referred to as activations
#Heaviside step function
#An activation function that returns a 0 if the linear combination is less than 0.
#It returns a 1 if the linear combination is positive or equal to zero.
#Think of 1 as yes and 0 as no or True/False
#Bias
#one way to get a function to return 1 for more inputs is to add a value to the results of the linear combination
#Bias is represented in equations as b
#Similar to weights the bias can be updated and changed by the neural network durning training
#weights and bias are initially assigned a random value and then they are updated using a learning algorithm like gradient descent.
#The weights and biases change so that the next training example is more accurate and patterns are learned by the neural network.
|
[
"noreply@github.com"
] |
ajpiter.noreply@github.com
|
72655e0d239fb7752d956948112e58f2ba5f52b8
|
3637fe729395dac153f7abc3024dcc69e17f4e81
|
/reference/ucmdb/discovery/os_platform_discoverer.py
|
02d93f540190842835fd968afa055cc09e7172c3
|
[] |
no_license
|
madmonkyang/cda-record
|
daced6846c2456f20dddce7f9720602d1583a02a
|
c431e809e8d0f82e1bca7e3429dd0245560b5680
|
refs/heads/master
| 2023-06-15T08:16:46.230569
| 2021-07-15T16:27:36
| 2021-07-15T16:27:36
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 3,272
|
py
|
# coding=utf-8
'''
Created on Dec 27, 2013
@author: ekondrashev
'''
import logger
import entity
import command
import flow
import post_import_hooks
import service_loader
from service_loader import load_service_providers_by_file_pattern
class Platform(entity.Immutable):
def __init__(self, name):
self.name = name
def __eq__(self, other):
if isinstance(other, Platform):
return self.name.lower() == other.name.lower()
elif isinstance(other, basestring):
return self.name.lower() == other.lower()
return NotImplemented
def __ne__(self, other):
result = self.__eq__(other)
if result is NotImplemented:
return result
return not result
def __key__(self):
return (self.name, )
def __hash__(self):
return hash(self.__key__())
def __repr__(self):
cls = self.__class__
return '%s(%s)' % (cls, repr(self.name),)
class __PlatformsEnum(entity.Immutable):
def __init__(self, **platforms):
self.__platforms = platforms
def __getattr__(self, name):
value = self.__platforms.get(name)
if value:
return value
raise AttributeError
def values(self):
return self.__platforms.values()
def by_name(self, name):
for platform in self.values():
if platform == name:
return platform
def merge(self, **platforms):
self.__platforms.update(platforms)
enum = __PlatformsEnum()
class Discoverer(object):
def is_applicable(self, shell):
r'''
Returns if current discoverer implementation can be applied againt the
shell passed.
@types: shellutils.Shell-> bool
'''
raise NotImplementedError('is_applicable')
def get_platform(self, shell):
r'shellutils.Shell -> os_platform_discoverer.Platform'
raise NotImplementedError('get_platform')
def find_discoverer_by_shell(shell):
r'''
@types: shellutils.Shell -> os_platform_discoverer.Discoverer
@raise ValueError: if shell is not passed
@raise flow.DiscoveryException: if no os platform discoverer found
'''
if not shell:
raise ValueError('Invalid shell')
discoverers = service_loader.global_lookup[Discoverer]
for discoverer in discoverers:
if discoverer.is_applicable(shell):
return discoverer
raise flow.DiscoveryException('No os platform discoverer '
'implementation found')
def discover_platform_by_shell(shell):
r'''
@types: shellutils.Shell -> os_platform_discoverer.Platform
@raise ValueError: if shell is not passed
@raise flow.DiscoveryException: if no os platform discoverer found
or on platform discovery error
'''
discoverer = find_discoverer_by_shell(shell)
try:
return discoverer.get_platform(shell)
except command.ExecuteException, e:
raise flow.DiscoveryException(e)
@post_import_hooks.invoke_when_loaded(__name__)
def __load_plugins(module):
logger.debug('Loading os platforms')
load_service_providers_by_file_pattern('*_os_platform_discoverer.py')
logger.debug('Finished loading platforms: %s' % enum.values())
|
[
"silentbalanceyh@126.com"
] |
silentbalanceyh@126.com
|
27fac4f1aaf8414c571f63b38f3416535871b864
|
e7fcc1d64cd95805918ab1b5786bf81a92f973ef
|
/2020/day06/test_day06.py
|
dcfa4fa5d4d7f186a72866d92f905fc5c31bff00
|
[] |
no_license
|
trolen/advent-of-code
|
8145c1e36fea04e53d4b7a885efcc2da71fbfe57
|
0a4e022a6a810d86e044a15036a2f5778f0d38af
|
refs/heads/master
| 2023-02-26T13:11:58.341006
| 2023-02-20T23:22:27
| 2023-02-20T23:22:27
| 54,579,550
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 881
|
py
|
#! /usr/bin/env python3
import unittest
import day06
class TestDay06(unittest.TestCase):
def setUp(self):
self.raw_data = [
'abc',
'',
'a',
'b',
'c',
'',
'ab',
'ac',
'',
'a',
'a',
'a',
'a',
'',
'b'
]
self.groups = day06.parse_data(self.raw_data)
def test_unique_chars(self):
self.assertEqual('abc', day06.get_unique_chars(['ab', 'ac']))
def test_common_chars(self):
self.assertEqual('a', day06.get_common_chars(['ab', 'ac']))
def test_part1(self):
self.assertEqual(11, day06.do_part1(self.groups))
def test_part2(self):
self.assertEqual(6, day06.do_part2(self.groups))
if __name__ == '__main__':
unittest.main()
|
[
"timothy.rolen@gmail.com"
] |
timothy.rolen@gmail.com
|
cdb896df7dafbf9b574f7853ffe03b2a0ab849e0
|
5c4cc78698a8cdadb10c45799a67c95ca17a4d5a
|
/custom_components/usage.py
|
f93d2655364330efe4fac2599f2b0bc5244848ee
|
[] |
no_license
|
gitumarkk/dash-custom-components-blog
|
fb044f14735d686bbf0c3e07b863c0eb39830c6b
|
3a94e3fd7e3047eb082be901f2c2962b42b27964
|
refs/heads/main
| 2023-05-31T06:40:33.337975
| 2021-06-11T06:22:31
| 2021-06-11T06:22:31
| 375,925,178
| 1
| 1
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 524
|
py
|
import custom_components
import dash
from dash.dependencies import Input, Output
import dash_html_components as html
app = dash.Dash(__name__)
app.layout = html.Div([
custom_components.MyCustomComponent(
id='input',
value='my-value',
label='my-label'
),
html.Div(id='output')
])
@app.callback(Output('output', 'children'), [Input('input', 'value')])
def display_output(value):
return 'You have entered {}'.format(value)
if __name__ == '__main__':
app.run_server(debug=True)
|
[
"gitumarkk@gmail.com"
] |
gitumarkk@gmail.com
|
191db6f8ca5bb50f81b0a602940e6003d3f27b1b
|
de24f83a5e3768a2638ebcf13cbe717e75740168
|
/moodledata/vpl_data/4/usersdata/112/1803/submittedfiles/swamee.py
|
0993e51e919e7a77d0aa3da61db48e12e1ca660d
|
[] |
no_license
|
rafaelperazzo/programacao-web
|
95643423a35c44613b0f64bed05bd34780fe2436
|
170dd5440afb9ee68a973f3de13a99aa4c735d79
|
refs/heads/master
| 2021-01-12T14:06:25.773146
| 2017-12-22T16:05:45
| 2017-12-22T16:05:45
| 69,566,344
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 448
|
py
|
# -*- coding: utf-8 -*-
from __future__ import division
import math
f= input('Digite o valor de f:')
L= input('Digite o valor de L:')
Q= input('Digite o valor de Q:')
DeltaH= input('Digite o valor de Delta H')
v= input('Digite o valor de v')
g= 9.81
e= 0.000002
D= ((8*f*L*Q)*(2/5))/((math.pi)**2(g*DeltaH))
Rey= (4*Q)/((math.pi)*D*v)
K= (0.25)/(math.log10((e/3.70)+(5.74)/(Rey)**0.9))**2
print('D=%.4f'%D)
print('Rey=%.4f'%Rey)
print('K=%.4f'%K)
|
[
"rafael.mota@ufca.edu.br"
] |
rafael.mota@ufca.edu.br
|
cc86bef58c7d155debfcde3377df2e4dbe6dfa6d
|
bf32d19e5cf9650099d4f3a05f24ad3f5d0332a3
|
/datagen.py
|
0b65a8b378b3d8b516ff0d137a9bda72e359cbef
|
[] |
no_license
|
DableUTeeF/dictionaries
|
5d01b7936ff567c6ca6aac45394370a8168ad816
|
c529727325232291a4103d4b1bc72c888cec05f1
|
refs/heads/master
| 2023-04-11T05:46:31.548797
| 2021-04-22T06:06:55
| 2021-04-22T06:06:55
| 343,296,934
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 22,290
|
py
|
from torch.utils.data import Dataset
from torchtext.vocab import Vocab, Counter
import torch
from nltk.corpus import wordnet as wn, stopwords
from torch.nn.utils.rnn import pad_sequence
from torch.utils.data.sampler import SubsetRandomSampler
import numpy as np
import pandas as pd
import re
from transformers import AutoTokenizer
import collections
from bert.bpe_helper import BPE
import sentencepiece as spm
import sys
sys.path.extend(['/home/palm/PycharmProjects/sentence-transformers'])
from sentence_transformers import InputExample
__all__ = ['BertDataset', 'ThaiBertDataset', 'ThaiTokenizer', 'RoyinDataset', 'GPTDataset', 'SentenceDataset',
'SentenceTokenized']
def convert_to_unicode(text):
"""Converts `text` to Unicode (if it's not already), assuming utf-8 input."""
if isinstance(text, str):
return text
elif isinstance(text, bytes):
return text.decode("utf-8", "ignore")
else:
raise ValueError("Unsupported string type: %s" % (type(text)))
def load_vocab(vocab_file):
vocab = collections.OrderedDict()
index = 0
with open(vocab_file, "r") as reader:
while True:
token = reader.readline()
if token.split():
token = token.split()[0] # to support SentencePiece vocab file
token = convert_to_unicode(token)
if not token:
break
token = token.strip()
vocab[token] = index
index += 1
return vocab
def convert_by_vocab(vocab, items):
output = []
for item in items:
output.append(vocab[item])
return output
class ThaiTokenizer(object):
"""Tokenizes Thai texts."""
def __init__(self, vocab_file, spm_file):
self.vocab = load_vocab(vocab_file)
self.inv_vocab = {v: k for k, v in self.vocab.items()}
self.bpe = BPE(vocab_file)
self.s = spm.SentencePieceProcessor()
self.s.Load(spm_file)
self.vocab_size = len(self.vocab)
def tokenize(self, text):
bpe_tokens = self.bpe.encode(text).split(' ')
spm_tokens = self.s.EncodeAsPieces(text)
tokens = bpe_tokens if len(bpe_tokens) < len(spm_tokens) else spm_tokens
split_tokens = []
for token in tokens:
new_token = token
if token.startswith('_') and token not in self.vocab:
split_tokens.append('_')
new_token = token[1:]
if new_token not in self.vocab:
split_tokens.append('<unk>')
else:
split_tokens.append(new_token)
return split_tokens
def __call__(self, text):
return [1] + self.convert_tokens_to_ids(self.tokenize(text)) + [2]
def convert_tokens_to_ids(self, tokens):
return convert_by_vocab(self.vocab, tokens)
def decode(self, ids):
return convert_by_vocab(self.inv_vocab, ids)
def generate_batch(batch):
text = [entry[0] for entry in batch]
word = [entry[1] for entry in batch]
text = pad_sequence(text)
word = pad_sequence(word)
return word, text
def generate_bert_batch(batch):
word = [entry[0]['input_ids'][0] for entry in batch]
word = pad_sequence(word, batch_first=True)
text = [entry[1]['input_ids'][0] for entry in batch]
text = pad_sequence(text, batch_first=True)
return word, text
def generate_triplet_batch(batch):
word = [entry[0] for entry in batch]
pos_text = [entry[1] for entry in batch]
neg_text = [entry[1] for entry in batch]
word = pad_sequence(word)
pos_text = pad_sequence(pos_text)
neg_text = pad_sequence(neg_text)
return word, pos_text, neg_text
class QuoraDataset(Dataset):
def __init__(self):
self.csv = pd.read_csv('train.csv')
self.csv.fillna('', inplace=True)
counter = Counter()
for _, row in self.csv.iterrows():
q1 = row['question1']
q2 = row['question2']
counter.update(q1.split(' '))
counter.update(q2.split(' '))
self.vocab = Vocab(counter)
def __len__(self):
return len(self.csv)
def __getitem__(self, index):
row = self.csv.iloc[index]
q1 = row['question1']
q2 = row['question2']
label = row['is_duplicate']
token_ids_1 = list(filter(lambda x: x is not Vocab.UNK, [self.vocab[token]
for token in q1.split(' ')]))
token_ids_2 = list(filter(lambda x: x is not Vocab.UNK, [self.vocab[token]
for token in q2.split(' ')]))
token1 = torch.tensor(token_ids_1)
token2 = torch.tensor(token_ids_2)
return token1, token2, torch.ones(1) - label
class SynonymsDataset(Dataset):
def __init__(self):
self.words = list(set(i for i in wn.words()))
counter = Counter()
for word in self.words:
counter.update([word])
word = wn.synsets(word)
for meaning in word:
counter.update(meaning.definition().split(' '))
self.vocab = Vocab(counter)
def __len__(self):
return len(self.vocab.itos) - 2
def __getitem__(self, index):
word = self.vocab.itos[index + 2]
ss = wn.synsets(word)
lemmas = np.random.choice(ss).lemma_names()
if len(lemmas) > 1 and np.random.rand() > 0.5:
other = np.random.choice(lemmas)
label = torch.ones(1)
else:
possible_lemmas = []
for synset in ss:
possible_lemmas.extend(synset.lemma_names())
while True:
idx = torch.randint(0, len(self), (1,))
if self.vocab.itos[idx + 2] not in possible_lemmas:
break
other = self.vocab.itos[idx + 2]
label = torch.zeros(1)
word = torch.tensor([self.vocab[word]])
other = torch.tensor([self.vocab[other]])
return word, other, label
class SentenceDataset(Dataset):
def __init__(self, language=None, words=None, indices=None, true_only=False):
self.patterns = [r'\([^)]*\)', r'\[[^)]*\]', r'&#[a-z\d]*;', r'<\/[a-z\d]{1,6}>', r'<[a-z\d]{1,6}>']
self.language = language
self.true_only = true_only
if words is None:
if language == 'thai':
self.words, self.indices = self.thai()
elif language == 'eng':
self.words, self.indices = self.eng()
elif language == 'all':
self.words, self.indices = self.all()
else:
raise ValueError('Both `words` and `language` are `None`')
else:
self.words = words
self.indices = indices
def train(self, train, seed=88):
dataset_size = len(self.words)
indices = list(range(dataset_size))
split = int(np.floor(0.2 * dataset_size))
np.random.seed(seed)
np.random.shuffle(indices)
train_indices, val_indices = indices[split:], indices[:split]
if train:
return SentenceDataset(language=self.language, words=self.words, indices=train_indices, true_only=self.true_only)
else:
return SentenceDataset(language=self.language, words=self.words, indices=val_indices, true_only=self.true_only)
def all(self):
thai_wn_words = []
thai_wn_lemmas = [x for x in wn.all_lemma_names(lang='tha')]
for word in thai_wn_lemmas:
meanings = wn.synsets(word, lang='tha')
word = word.replace('_', ' ')
for meaning in meanings:
thai_wn_words.append((word, meaning.lemma_names()[0]))
indices = list(range(len(thai_wn_words)))
return thai_wn_words, indices
def eng(self):
words = list(set(i for i in wn.words()))
out_words = []
for word in words:
meanings = wn.synsets(word)
word = word.replace('_', ' ')
for meaning in meanings:
out_words.append((word, meaning.definition()))
indices = list(range(len(out_words)))
return out_words, indices
def thai(self):
words = pd.read_csv('data/royin_dict_2542.tsv', sep='\t')
out_words = []
for _, row in words.iterrows():
word = row.Word1.split(',')[0]
text = row.Definition
for pattern in self.patterns:
text = re.sub(pattern, '', text).split('เช่น')[0].split(';')[0] # todo: use ; to split between meanings
if text.startswith('ดู'):
continue
if len(text) > 5:
if text[2] == ' ':
text = text[3:]
elif text[3] == ' ':
text = text[4:]
elif text[4] == ' ':
text = text[5:]
elif text[5] == ' ':
text = text[6:]
out_words.append((word, text))
indices = list(range(len(out_words)))
return out_words, indices
def __len__(self):
return len(self.indices)
def collate_fn(self, batch):
engs = []
thas = []
labels = []
for sample in batch:
eng, tha = sample.texts
engs.append(eng)
thas.append(tha)
labels.append(sample.label)
return engs, thas, torch.tensor(labels)
def __getitem__(self, index) -> InputExample:
"""
0.5: match
0.4: word - sentence
0.: eng - eng: 100000+
0.: thai - thai: 37706
0.: thai - eng: 93045
0.: eng - thai: 6310
0.05: sentence - sentence: 6310 - match word from thai to eng then pick random sentences
0.05: word - word: 80508
0.5: not match
0.: eng-eng
0.: thai-thai
0.: both
"""
tha, eng = self.words[self.indices[index]]
if np.random.rand() > 0.6 or self.true_only:
out = InputExample(texts=[eng, tha], label=0.8)
else:
while True:
idx = torch.randint(0, len(self), (1,))
other_tha, _ = self.words[self.indices[idx]]
if other_tha != tha:
break
out = InputExample(texts=[eng, other_tha], label=0.2)
return out
class SentenceTokenized(SentenceDataset):
def __init__(self, tokenizer, stage, language=None, words=None, indices=None, true_only=False, bos='[CLS]', eos='[SEP]'):
super().__init__(language=language, words=words, indices=indices, true_only=true_only)
self.tokenizer = tokenizer
self.vocab_size = self.tokenizer.vocab_size
self.stage = stage
self.stops = set(stopwords.words("english"))
self.vocab_size = self.tokenizer.vocab_size
self.cls = self.tokenizer.vocab[bos]
self.sep = self.tokenizer.vocab[eos]
def collate_fn(self, batch):
words = []
meanings = []
labels = []
for sample in batch:
eng, tha = sample.texts
if self.stage == 'second':
meanings.append(eng)
if tha not in self.stops:
splitted_eng = [w for w in eng.split() if w not in self.stops]
else:
splitted_eng = eng.split()
if self.stage == 'second':
tha = tha + ' '.join(np.random.choice(splitted_eng, 1+int(len(splitted_eng)/3)))
else:
meanings.append(' '.join(splitted_eng[:1+int(len(splitted_eng)/3)]))
words.append(tha)
labels.append(sample.label)
return words, self.tokenizer(meanings, return_tensors='pt', padding=True), torch.tensor(labels)
class BertDataset(Dataset):
def __init__(self, reverse=False, name='bert-base-uncased', bos='[CLS]', eos='[SEP]'):
# words = list(set(i for i in wn.words()))
self.tokenizer = AutoTokenizer.from_pretrained(name)
words = [w for w in list(set(i for i in wn.words())) if len(self.tokenizer([w]).data['input_ids'][0]) == 3]
self.words = []
for word in words:
meanings = wn.synsets(word)
# word = word.replace('_', ' ')
for meaning in meanings:
self.words.append((word, meaning.definition()))
if reverse:
break
self.vocab_size = self.tokenizer.vocab_size
self.cls = self.tokenizer.vocab[bos]
self.sep = self.tokenizer.vocab[eos]
def __len__(self):
return len(self.words)
def __getitem__(self, index):
word, text = self.words[index]
return word, text
def decode(self, text):
return self.tokenizer.decode(text)
def collate_fn(self, batch):
text = [entry[1] for entry in batch]
word = [entry[0] for entry in batch]
text = self.tokenizer(text, return_tensors='pt', padding=True)
word = self.tokenizer(word, return_tensors='pt', padding=True)
# text.data['attention_mask'][text.data['input_ids'] == 102] = 0
# text.data['input_ids'][text.data['input_ids'] == 102] = 0
# word.data['attention_mask'][word.data['input_ids'] == 102] = 0
# word.data['input_ids'][word.data['input_ids'] == 102] = 0
return word, text
class GPTDataset(Dataset):
def __init__(self, reverse=False):
# words = list(set(i for i in wn.words()))
self.tokenizer = AutoTokenizer.from_pretrained('gpt2')
words = [w for w in list(set(i for i in wn.words())) if len(self.tokenizer([w]).data['input_ids'][0]) == 1]
self.words = []
for word in words:
meanings = wn.synsets(word)
# word = word.replace('_', ' ')
for meaning in meanings:
self.words.append((word, meaning.definition()))
if reverse:
break
self.tokenizer.add_special_tokens({'pad_token': '[PAD]'})
self.tokenizer.add_special_tokens({'eos_token': '[SEP]'})
self.tokenizer.add_special_tokens({'bos_token': '[CLS]'})
self.vocab_size = self.tokenizer.vocab_size + 2
self.cls = self.tokenizer.vocab['[CLS]']
self.sep = self.tokenizer.vocab['[SEP]']
def __len__(self):
return len(self.words)
def __getitem__(self, index):
word, text = self.words[index]
return word, text
def decode(self, text):
return self.tokenizer.decode(text)
def collate_fn(self, batch):
text = [entry[1] for entry in batch]
word = [entry[0] for entry in batch]
text = self.tokenizer(text, return_tensors='pt', padding=True)
word = self.tokenizer(['[CLS]', *word, '[SEP]'], return_tensors='pt', padding=True)
# text.data['attention_mask'][text.data['input_ids'] == 102] = 0
# text.data['input_ids'][text.data['input_ids'] == 102] = 0
# word.data['attention_mask'][word.data['input_ids'] == 102] = 0
# word.data['input_ids'][word.data['input_ids'] == 102] = 0
return word, text
class RoyinDataset(Dataset):
def __init__(self):
self.patterns = [r'\([^)]*\)', r'\[[^)]*\]', r'&#[a-z\d]*;', r'<\/[a-z\d]{1,6}>', r'<[a-z\d]{1,6}>']
self.df = pd.read_csv('data/royin_dict_2542.tsv', sep='\t')
self.tokenizer = ThaiTokenizer(vocab_file='data/th_wiki_bpe/th.wiki.bpe.op25000.vocab',
spm_file='data/th_wiki_bpe/th.wiki.bpe.op25000.model')
self.target = {'[PAD]', '[CLS]', '[SEP]'}
for word in self.df.Word1:
w = word.split(',')[0]
self.target.add(w)
self.target = sorted(self.target)
self.targetid = {k: v for v, k in enumerate(self.target)}
self.vocab_size = len(self.targetid)
self.cls = 1
self.sep = 2
def __len__(self):
return len(self.df)
def __getitem__(self, index):
row = self.df.iloc[index]
word = row.Word1.split(',')[0]
text = row.Definition
for pattern in self.patterns:
text = re.sub(pattern, '', text)
if len(text) > 512:
text = text[:512]
return word, text
def collate_fn(self, batch):
text = [entry[1] for entry in batch]
word = [entry[0] for entry in batch]
# text = self.thai_tokenizer(text)
# word = self.thai_tokenizer(word)
text = pad_sequence([torch.tensor(self.tokenizer(t)) for t in text], True)
word = pad_sequence([torch.tensor([1, self.targetid[w], 2]) for w in word], True)
return word, text
class ThaiBertDataset(Dataset):
def __init__(self):
self.patterns = [r'\([^)]*\)', r'\[[^)]*\]', r'&#[a-z\d]*;', r'<\/[a-z\d]{1,6}>', r'<[a-z\d]{1,6}>']
self.tokenizer = ThaiTokenizer(vocab_file='data/th_wiki_bpe/th.wiki.bpe.op25000.vocab',
spm_file='data/th_wiki_bpe/th.wiki.bpe.op25000.model')
self.df = pd.read_csv('data/dictdb_th_en.csv', sep=';')
self.target = pd.unique(self.df.sentry)
self.targetid = {k: v + 2 for v, k in enumerate(self.target)}
self.targetid['[PAD]'] = 0
self.targetid['[CLS]'] = 1
self.targetid['[SEP]'] = 2
self.vocab_size = len(self.targetid)
self.cls = 1
self.sep = 2
def __len__(self):
return len(self.df)
def __getitem__(self, index):
row = self.df.iloc[index]
word = row.sentry
text = row.sdef
return word, text
def collate_fn(self, batch):
text = [entry[1] for entry in batch]
word = [entry[0] for entry in batch]
# text = self.thai_tokenizer(text)
# word = self.thai_tokenizer(word)
text = pad_sequence([torch.tensor(self.tokenizer(t)) for t in text], True)
word = pad_sequence([torch.tensor([1, self.targetid[w], 2]) for w in word], True)
return word, text
class WordDataset(Dataset):
def __init__(self):
words = list(set(i for i in wn.words()))
counter = Counter()
self.max_len = 0
for word in words:
counter.update([word])
word = wn.synsets(word)
for meaning in word:
definition = re.sub(r'\([^)]*\)', '', meaning.definition())
if len(definition) == 0:
continue
if definition[0] == ' ':
definition = definition[1:]
self.max_len = max(self.max_len, len(definition.split(' ')))
counter.update(definition.split(' '))
self.vocab = Vocab(counter, specials=('<unk>', '<pad>', '<sos>', '<eos>'))
self.vocab_len = len(self.vocab)
self.meanings = []
out_counter = Counter()
for word in words:
if counter[word] > 3:
out_counter.update([word])
self.meanings.extend([(word, i.definition()) for i in wn.synsets(word)])
self.out_vocab = Vocab(out_counter, specials=('<unk>', '<pad>', '<sos>', '<eos>'))
self.out_vocab_len = len(self.out_vocab)
def __len__(self):
return len(self.meanings)
def collate_fn(self, batch):
return generate_batch(batch)
def __getitem__(self, index):
word, tokens = self.meanings[index]
# data = wn.synsets(word)
token_ids = [self.vocab['<sos>']] + list(filter(lambda x: x is not Vocab.UNK, [self.vocab[token] for token in tokens.split(' ')])) + [self.vocab['<eos>']]
tokens = torch.tensor(token_ids)
word = torch.tensor([self.out_vocab['<sos>'], self.out_vocab[word], self.out_vocab['<eos>']])
return word, tokens
class WordTriplet(WordDataset):
def __getitem__(self, index):
word = self.words[index]
data = wn.synsets(word)
pos_tokens = np.random.choice(data).definition()
pos_token_ids = list(
filter(lambda x: x is not Vocab.UNK, [self.vocab[token] for token in pos_tokens.split(' ')]))
while True:
idx = torch.randint(0, len(self), (1,))
if idx != index:
break
diff_data = wn.synsets(self.words[idx])
neg_tokens = diff_data[0].definition()
neg_token_ids = list(filter(lambda x: x is not Vocab.UNK, [self.vocab[token] for token in neg_tokens.split(' ')]))
neg_tokens = torch.tensor(neg_token_ids)
pos_tokens = torch.tensor(pos_token_ids)
word = torch.tensor([self.vocab[word]])
neg_out = torch.zeros((self.max_len,), dtype=torch.long)
neg_out[:neg_tokens.size(0)] = neg_tokens
pos_out = torch.zeros((self.max_len,), dtype=torch.long)
pos_out[:pos_tokens.size(0)] = pos_tokens
word_out = torch.zeros((self.max_len,), dtype=torch.long)
word_out[0] = self.vocab[word]
return word, pos_tokens, neg_tokens
def collate_fn(self, batch):
return generate_triplet_batch(batch)
if __name__ == '__main__':
dataset = WordTriplet()
x = dataset[0]
dataset_size = len(dataset)
indices = list(range(dataset_size))
split = int(np.floor(0.2 * dataset_size))
np.random.seed(88)
np.random.shuffle(indices)
train_indices, val_indices = indices[split:], indices[:split]
train_sampler = SubsetRandomSampler(train_indices)
valid_sampler = SubsetRandomSampler(val_indices)
train_loader = torch.utils.data.DataLoader(dataset, batch_size=32,
sampler=train_sampler,
num_workers=1,
collate_fn=generate_batch)
validation_loader = torch.utils.data.DataLoader(dataset, batch_size=32,
sampler=valid_sampler,
num_workers=1,
collate_fn=generate_batch)
for idx, _ in enumerate(train_loader):
pass
print(idx)
for idx, _ in enumerate(validation_loader):
pass
print(idx)
|
[
"palm22180@gmail.com"
] |
palm22180@gmail.com
|
b31b2e1e03da902449ac1d6c84e33183f1d07823
|
7e372094fde657891fdfad0e1fe2f3d9693bdf64
|
/instapi/exceptions.py
|
097eba4057636202fd4eb326edc7e7e743aaa204
|
[
"MIT"
] |
permissive
|
uriyyo/instapi
|
b92c95a8adc2cdb73fc563649d3d14752c1e42c4
|
f15b45727a08fd9b203c71b2a8c9d103478a50dc
|
refs/heads/develop
| 2023-06-30T17:46:25.307092
| 2023-06-26T08:43:57
| 2023-06-26T08:43:57
| 203,244,044
| 37
| 4
|
MIT
| 2023-09-08T03:08:27
| 2019-08-19T20:17:36
|
Python
|
UTF-8
|
Python
| false
| false
| 100
|
py
|
class ClientNotInitedException(Exception):
pass
__all__ = [
"ClientNotInitedException",
]
|
[
"1998uriyyo@gmail.com"
] |
1998uriyyo@gmail.com
|
312460ac8bca6af84350206ee751570d59d027a3
|
1a639d185f9c883b7bebf33c577c58b22ac93c7e
|
/graphics/moving_pan.py
|
37ad05954d8428b128a6f418e6a6d7232f4c8994
|
[] |
no_license
|
gofr1/python-learning
|
bd09da5b5850b1533a88b858690ed4380b55d33e
|
19343c985f368770dc01ce415506506d62a23285
|
refs/heads/master
| 2023-09-02T15:42:27.442735
| 2021-11-12T10:17:13
| 2021-11-12T10:17:13
| 237,828,887
| 0
| 0
| null | 2021-11-12T10:17:14
| 2020-02-02T20:03:42
|
Python
|
UTF-8
|
Python
| false
| false
| 767
|
py
|
from superwires import games
path_to_images = '../../Pictures/img/'
games.init(screen_width = 640, screen_height = 480, fps = 50)
class Pan(games.Sprite):
'''Pan moving with mouse'''
def update(self):
'''Move object to mouse position'''
self.x = games.mouse.x
self.y = games.mouse.y
def main():
wall_image = games.load_image(path_to_images + "wall.jpg", transparent=False)
games.screen.background = wall_image
pan_image = games.load_image(path_to_images + "PizzaPan.png")
the_pan = Pan(
image = pan_image,
x = games.mouse.x,
y = games.mouse.y
)
games.screen.add(the_pan)
games.mouse.is_visible = False # mouse pointer is invisible
games.screen.mainloop()
# go!
main()
|
[
"gofr.one@gmail.com"
] |
gofr.one@gmail.com
|
930727de4fc9a819568fa813409d808229907aeb
|
3da246077831519b40aa45ce6bb6ac63fc1a17fe
|
/models/regularizers.py
|
e6a7729c1644ee207936c4e77bc1e6134614ea4c
|
[] |
no_license
|
jamesoneill12/SupervisedMetaEmbedding
|
b4d9728ce501e4661f1d9f9191affb7dbe8daab3
|
9d379d7bb9049e475bffb78f2e1df2d0ed72684d
|
refs/heads/master
| 2022-11-12T23:28:17.058219
| 2020-07-04T00:47:18
| 2020-07-04T00:47:18
| 277,012,140
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 15,967
|
py
|
import torch
from torch.nn import Parameter
import torch.nn as nn
from torch.autograd import Variable
import numpy as np
"""module, weights, dropout=0, variational=False"""
def dropconnect(module, weights, p=None, dim=None, method='standard'):
"""module, weights, dropout=0, variational=False"""
if method == 'standard':
return DropConnect(module, weights, p, method)
elif method == 'gaussian':
return GaussianDropConnect(p/(1-p))
elif method == 'variational':
return VariationalDropConnect(p/(1-p), dim)
elif method == 'concrete':
# takes layer, input_shape
return ConcreteDropConnect
class DropConnect(torch.nn.Module):
def __init__(self, module, weights, dropout=0, method='standard'):
super(DropConnect, self).__init__()
self.module = module
self.weights = weights
self.dropout = dropout
self.method = method
self._setup()
def widget_demagnetizer_y2k_edition(*args, **kwargs):
# We need to replace flatten_parameters with a nothing function
# It must be a function rather than a lambda as otherwise pickling explodes
# We can't write boring code though, so ... WIDGET DEMAGNETIZER Y2K EDITION!
# (╯°□°)╯︵ ┻━┻
return
def _setup(self):
# Terrible temporary solution to an issue regarding compacting weights re: CUDNN RNN
if issubclass(type(self.module), torch.nn.RNNBase):
self.module.flatten_parameters = self.widget_demagnetizer_y2k_edition
for name_w in self.weights:
print('Applying weight drop of {} to {}'.format(self.dropout, name_w))
w = getattr(self.module, name_w)
del self.module._parameters[name_w]
self.module.register_parameter(name_w + '_raw', Parameter(w.data))
def _setweights(self):
for name_w in self.weights:
raw_w = getattr(self.module, name_w + '_raw')
w = None
if self.method == 'variational':
mask = torch.autograd.Variable(torch.ones(raw_w.size(0), 1))
if raw_w.is_cuda: mask = mask.cuda()
mask = torch.nn.functional.dropout(mask, p=self.dropout, training=True)
w = mask.expand_as(raw_w) * raw_w
elif self.method == 'concrete':
pass
elif self.method == 'locked':
pass
elif self.method == 'curriculum':
pass
else:
w = torch.nn.functional.dropout(raw_w, p=self.dropout, training=self.training)
setattr(self.module, name_w, w)
def forward(self, *args):
self._setweights()
return self.module.forward(*args)
class LockedDropConnect(nn.Module):
"""https://github.com/j-min/Dropouts/blob/master/Gaussian_Variational_Dropout.ipynb"""
def __init__(self):
super().__init__()
def forward(self, x, dropout=0.5):
if not self.training or not dropout:
return x
m = x.data.new(1, x.size(1), x.size(2)).bernoulli_(1 - dropout)
mask = Variable(m, requires_grad=False) / (1 - dropout)
mask = mask.expand_as(x)
return mask * x
class GaussianDropConnect(nn.Module):
def __init__(self, alpha=1.0):
super(GaussianDropConnect, self).__init__()
self.alpha = torch.Tensor([alpha])
def forward(self, x):
"""
Sample noise e ~ N(1, alpha)
Multiply noise h = h_ * e
"""
if self.train():
# N(1, alpha)
epsilon = torch.randn(x.size()) * self.alpha + 1
epsilon = Variable(epsilon)
if x.is_cuda:
epsilon = epsilon.cuda()
return x * epsilon
else:
return x
class VariationalDropConnect(nn.Module):
def __init__(self, alpha=1.0, dim=None):
super(VariationalDropConnect, self).__init__()
self.dim = dim
self.max_alpha = alpha
# Initial alpha
log_alpha = (torch.ones(dim) * alpha).log()
self.log_alpha = nn.Parameter(log_alpha)
def kl(self):
c1 = 1.16145124
c2 = -1.50204118
c3 = 0.58629921
alpha = self.log_alpha.exp()
negative_kl = 0.5 * self.log_alpha + c1 * alpha + c2 * alpha ** 2 + c3 * alpha ** 3
kl = -negative_kl
return kl.mean()
def forward(self, x):
"""
Sample noise e ~ N(1, alpha)
Multiply noise h = h_ * e
"""
if self.train():
# N(0,1)
epsilon = Variable(torch.randn(x.size()))
if x.is_cuda:
epsilon = epsilon.cuda()
# Clip alpha
self.log_alpha.data = torch.clamp(self.log_alpha.data, max=self.max_alpha)
alpha = self.log_alpha.exp()
# N(1, alpha)
epsilon = epsilon * alpha
return x * epsilon
else:
return x
class ConcreteDropConnect(nn.Module):
def __init__(self, layer, input_shape, weight_regularizer=1e-6,
dropout_regularizer=1e-5, init_min=0.1, init_max=0.1):
super(ConcreteDropConnect, self).__init__()
# Post drop out layer
self.layer = layer
# Input dim for regularisation scaling
self.input_dim = np.prod(input_shape[1:])
# Regularisation hyper-parameters
self.weight_regularizer = weight_regularizer
self.dropout_regularizer = dropout_regularizer
# Initialise p_logit
init_min = np.log(init_min) - np.log(1. - init_min)
init_max = np.log(init_max) - np.log(1. - init_max)
self.p_logit = nn.Parameter(torch.Tensor(1))
nn.init.uniform(self.p_logit, a=init_min, b=init_max)
def forward(self, x):
return self.layer(self._concrete_dropout(x))
def regularisation(self):
"""Computes weights and dropout regularisation for the layer, has to be
extracted for each layer within the model and added to the total loss
"""
weights_regularizer = self.weight_regularizer * self.sum_n_square() / (1 - self.p)
dropout_regularizer = self.p * torch.log(self.p)
dropout_regularizer += (1. - self.p) * torch.log(1. - self.p)
dropout_regularizer *= self.dropout_regularizer * self.input_dim
regularizer = weights_regularizer + dropout_regularizer
return regularizer
def _concrete_dropout(self, x):
"""Forward pass for dropout layer
"""
eps = 1e-7
temp = 0.1
self.p = nn.functional.sigmoid(self.p_logit)
# Check if batch size is the same as unif_noise, if not take care
unif_noise = Variable(torch.FloatTensor(np.random.uniform(size=tuple(x.size())))).cuda()
drop_prob = (torch.log(self.p + eps)
- torch.log(1 - self.p + eps)
+ torch.log(unif_noise + eps)
- torch.log(1 - unif_noise + eps))
drop_prob = nn.functional.sigmoid(drop_prob / temp)
random_tensor = 1 - drop_prob
retain_prob = 1 - self.p
x = torch.mul(x, random_tensor)
x /= retain_prob
return x
def sum_n_square(self):
"""Helper function for paramater regularisation
"""
sum_of_square = 0
for param in self.layer.parameters():
sum_of_square += torch.sum(torch.pow(param, 2))
return sum_of_square
class Linear_relu(nn.Module):
def __init__(self, inp, out):
super(Linear_relu, self).__init__()
self.model = nn.Sequential(nn.Linear(inp, out), nn.ReLU())
def forward(self, x):
return self.model(x)
class CurriculumDropConnect(nn.Module):
"""
:param
gamma : temperature I think ??
p : scheduled probability throughout training, reust ss_prob func
"""
def __init__(self):
super(CurriculumDropConnect, self).__init__()
def forward(self, x, gamma, p):
return (1.-p) * np.exp(-gamma*x) + p
def get_dropout(drop_position, drop_rate, drop_dim, drop_method, fixed_dropout=False):
if drop_position == 1 or drop_position == 3:
drop_in = dropout(drop_rate, drop_dim,
drop_method, fixed=fixed_dropout)
else:
drop_in = False
if drop_position == 2 or drop_position == 3:
drop_out = dropout(drop_rate, drop_dim,
drop_method, fixed=fixed_dropout)
else:
drop_out = False
return drop_in, drop_out
def dropout(p=None, dim=None, method='standard', fixed=False):
if method == 'standard':
return LockedDropout(p) if fixed else nn.Dropout(p)
elif method == 'gaussian':
return GaussianDropout(p/(1-p), fixed=fixed)
elif method == 'locked':
return LockedDropout(p)
elif method == 'variational':
"""This is specifically gaussian variational dropout
and doesn't converge for either fixed time steps or non-fixed"""
return VariationalDropout(p/(1-p), dim, locked=fixed)
elif method == 'concrete':
# takes layer, input_shape
return ConcreteDropout
# elif method == 'zoneout':
# return Zoneout(p, fixed)
elif method == 'curriculum':
"""Not required, can just change nn.Dropout() param p"""
# return CurriculumDropout()
return nn.Dropout(p)
class LockedDropout(nn.Module):
def __init__(self, dropout=0.5):
super().__init__()
self.p = dropout
def forward(self, x, p=None):
if p is not None:
self.p = p
if not self.training or not p:
return x
m = x.data.new(1, x.size(1), x.size(2)).bernoulli_(1 - self.p)
mask = Variable(m, requires_grad=False) / (1 - self.p)
mask = mask.expand_as(x)
return mask * x
class GaussianDropout(nn.Module):
def __init__(self, alpha=1.0, fixed=False):
super(GaussianDropout, self).__init__()
self.alpha = torch.Tensor([alpha])
self.fixed = fixed
def forward(self, x):
"""
Sample noise e ~ N(1, alpha)
Multiply noise h = h_ * e
"""
if self.train():
# N(1, alpha)
if self.fixed:
epsilon = torch.randn((1, x.size(1), x.size(2))) * self.alpha + 1
else:
epsilon = torch.randn(x.size()) * self.alpha + 1
epsilon = Variable(epsilon)
if x.is_cuda:
epsilon = epsilon.cuda()
return x * epsilon
else:
return x
class VariationalDropout(nn.Module):
"""
Variational Gaussian Dropout is not Bayesian so read this paper:
https://arxiv.org/abs/1711.02989
"""
# max alpha is used for clamping and should be small
def __init__(self, alpha=0.01, dim=None, locked=True):
super(VariationalDropout, self).__init__()
self.dim = dim
self.max_alpha = alpha
self.locked = locked
# Initial alpha
log_alpha = (torch.ones(dim) * alpha).log()
self.log_alpha = nn.Parameter(log_alpha)
def kl(self):
c1 = 1.16145124
c2 = -1.50204118
c3 = 0.58629921
alpha = self.log_alpha.exp()
negative_kl = 0.5 * self.log_alpha + c1 * alpha + c2 * alpha ** 2 + c3 * alpha ** 3
kl = -negative_kl
return kl.mean()
def forward(self, x):
"""Sample noise e ~ N(1, alpha)
Multiply noise h = h_ * e"""
if self.train():
# N(0,1)
if self.locked:
epsilon = Variable(torch.randn(size=(x.size(0), x.size(2))))
epsilon = torch.cat([epsilon] * x.size(1)).view(x.size())
else:
epsilon = Variable(torch.randn(x.size()))
if x.is_cuda:
epsilon = epsilon.cuda()
# Clip alpha
self.log_alpha.data = torch.clamp(self.log_alpha.data, max=self.max_alpha)
alpha = self.log_alpha.exp()
# N(1, alpha)
epsilon = epsilon * alpha
return x * epsilon
else:
return x
"""https://github.com/yaringal/ConcreteDropout/blob/master/concrete-dropout-pytorch.ipynb"""
class ConcreteDropout(nn.Module):
def __init__(self, layer, input_shape, weight_regularizer=1e-6, locked = True,
dropout_regularizer=1e-5, init_min=0.1, init_max=0.1):
super(ConcreteDropout, self).__init__()
# Post drop out layer
self.layer = layer
# Input dim for regularisation scaling
self.input_dim = np.prod(input_shape[1:])
# Regularisation hyper-parameters
self.weight_regularizer = weight_regularizer
self.dropout_regularizer = dropout_regularizer
self.locked = locked
# Initialise p_logit
init_min = np.log(init_min) - np.log(1. - init_min)
init_max = np.log(init_max) - np.log(1. - init_max)
self.p_logit = nn.Parameter(torch.Tensor(1))
nn.init.uniform(self.p_logit, a=init_min, b=init_max)
def forward(self, x):
return self.layer(self._concrete_dropout(x))
def regularisation(self):
"""Computes weights and dropout regularisation for the layer, has to be
extracted for each layer within the model and added to the total loss
"""
weights_regularizer = self.weight_regularizer * self.sum_n_square() / (1 - self.p)
dropout_regularizer = self.p * torch.log(self.p)
dropout_regularizer += (1. - self.p) * torch.log(1. - self.p)
dropout_regularizer *= self.dropout_regularizer * self.input_dim
regularizer = weights_regularizer + dropout_regularizer
return regularizer
def _concrete_dropout(self, x):
"""Forward pass for dropout layer
"""
eps = 1e-7
temp = 0.1
self.p = nn.functional.sigmoid(self.p_logit)
# Check if batch size is the same as unif_noise, if not take care
if self.locked:
noise = np.random.uniform(size=(x.size(0), x.size(2)))
noise = np.repeat(noise[:, np.newaxis, :], x.size(1), axis=1)
else:
noise = np.random.uniform(size=tuple(x.size()))
unif_noise = Variable(torch.FloatTensor(noise)).cuda()
drop_prob = (torch.log(self.p + eps)
- torch.log(1 - self.p + eps)
+ torch.log(unif_noise + eps)
- torch.log(1 - unif_noise + eps))
drop_prob = nn.functional.sigmoid(drop_prob / temp)
random_tensor = 1 - drop_prob
retain_prob = 1 - self.p
x = torch.mul(x, random_tensor)
x /= retain_prob
return x
def sum_n_square(self):
"""Helper function for paramater regularisation
"""
sum_of_square = 0
for param in self.layer.parameters():
sum_of_square += torch.sum(torch.pow(param, 2))
return sum_of_square
class Linear_relu(nn.Module):
def __init__(self, inp, out):
super(Linear_relu, self).__init__()
self.model = nn.Sequential(nn.Linear(inp, out), nn.ReLU())
def forward(self, x):
return self.model(x)
class CurriculumDropout(nn.Module):
"""
:param
gamma : temperature
p : scheduled probability throughout training, reust ss_prob func
"""
def __init__(self):
super(CurriculumDropout, self).__init__()
def forward(self, x, gamma, p):
if self.train():
return (1.-p) * np.exp(-gamma * x) + p
else:
return x
def show_drop_probs(model, dropout_position):
if dropout_position == 1:
print("drop-in {}".format(model.drop_in.p))
elif dropout_position == 2:
print("drop-out {}".format(model.drop_out.p))
elif dropout_position == 3:
print("drop-in {} \t drop-out {}".format(model.drop_in.p, model.drop_out.p))
|
[
"james.oneill@insight-centre.org"
] |
james.oneill@insight-centre.org
|
f7d11bab716283917a00ac4cf88bbe0e1409eb96
|
1818aaf61380ed516097cb40ab378d36e3c1a06a
|
/tests/unit/validate/example_templates/component/unnamed/a.py
|
9c803aa2b037621b19d514b789ef78274e3bddc3
|
[
"Apache-2.0"
] |
permissive
|
JackBurdick/crummycm
|
a4504ba3efd42e4d93c62120ad4fece89c6b3ae2
|
ffa9dad9b5c4c061d3767d700e90d5e34f92eac8
|
refs/heads/main
| 2023-01-18T20:07:24.102504
| 2020-11-25T00:56:57
| 2020-11-25T00:56:57
| 304,761,597
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 8,462
|
py
|
from crummycm.validation.types.placeholders.placeholder import KeyPlaceholder
from crummycm.validation.types.dicts.foundation.unnamed_dict import UnnamedDict
from crummycm.validation.types.values.element.numeric import Numeric
from crummycm.validation.types.values.element.text import Text
# from crummycm.validation.types.values.base import BaseValue
A_ex = {"val": Numeric(default_value=int(0), required=False, is_type=int)}
A_unnamed_single_num_ex = {
"config": UnnamedDict(
{
KeyPlaceholder("some_key"): Numeric(
default_value=int(0), required=False, is_type=int
)
}
)
}
A_unnamed_single_exact = {
"config": UnnamedDict(
{
KeyPlaceholder("some_key", exact=True): Numeric(
default_value=2, required=True, is_type=int
)
}
)
}
A_unnamed_single_num_multi_ex = {
"config": UnnamedDict(
{
KeyPlaceholder("some_key", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
)
}
)
}
A_unnamed_single_num_startswith_ex = {
"config": UnnamedDict(
{
KeyPlaceholder("my_key", starts_with="val_"): Numeric(
default_value=int(0), required=False, is_type=int
)
}
)
}
A_unnamed_double_dist = {
"config": UnnamedDict(
{
KeyPlaceholder("my_key"): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder("my_other_key", ends_with="_val", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
}
)
}
A_unnamed_triple_dist = {
"config": UnnamedDict(
{
KeyPlaceholder("my_key"): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder("my_other_key", ends_with="_val", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder("YAK", starts_with="val_", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
}
)
}
A_unnamed_quad_dist = {
"config": UnnamedDict(
{
KeyPlaceholder("my_key"): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder("my_other_key", ends_with="_val", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder("YAK", starts_with="val_", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder("YAK_sw", starts_with="x_", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
}
)
}
A_unnamed_quad_inner_quad = {
"config": UnnamedDict(
{
KeyPlaceholder("my_key"): UnnamedDict(
{
KeyPlaceholder("next_my_key"): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder(
"next_my_other_key", ends_with="_val", multi=True
): Numeric(default_value=int(0), required=False, is_type=int),
KeyPlaceholder("next_YAK", starts_with="val_", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder(
"next_YAK_sw", starts_with="x_", multi=True
): Numeric(default_value=int(0), required=False, is_type=int),
}
),
KeyPlaceholder("my_other_key", ends_with="_val", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder("YAK", starts_with="val_", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder("YAK_sw", starts_with="x_", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
}
)
}
A_unnamed_single_num_endswith_ex = {
"config": UnnamedDict(
{
KeyPlaceholder("my_key", ends_with="_val"): Numeric(
default_value=int(0), required=False, is_type=int
)
}
)
}
A_unnamed_single_num_endswith_req = {
"config": UnnamedDict(
{
KeyPlaceholder("my_key", ends_with="_val"): Numeric(
default_value=int(0), required=True, is_type=int
)
}
)
}
A_unnamed_out = UnnamedDict(
{
KeyPlaceholder("my_num"): Numeric(
default_value=int(0), required=False, is_type=int
)
}
)
A_nested_unnamed_num = {
"config": UnnamedDict(
{
KeyPlaceholder("some_dict"): UnnamedDict(
{
KeyPlaceholder("inner_num"): Numeric(
default_value=int(0), required=False, is_type=int
)
}
)
}
)
}
A_quad_nested_unnamed_num = {
"config": UnnamedDict(
{
KeyPlaceholder("some_dict"): UnnamedDict(
{
KeyPlaceholder("another_dict"): UnnamedDict(
{
KeyPlaceholder("yet_another_dict"): UnnamedDict(
{
KeyPlaceholder("some_num"): Numeric(
default_value=int(0),
required=False,
is_type=int,
)
}
)
}
)
}
)
}
)
}
A_unnamed_quad_nested_inner_quad = {
"config": UnnamedDict(
{
KeyPlaceholder("my_key"): UnnamedDict(
{
KeyPlaceholder("next_my_key"): UnnamedDict(
{
KeyPlaceholder("deeper_key"): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder(
"next_my_other_key", ends_with="_val", multi=True
): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder(
"next_YAK", starts_with="val_", multi=True
): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder(
"next_YAK_sw", starts_with="x_", multi=True
): Numeric(
default_value=int(0), required=False, is_type=int
),
}
),
KeyPlaceholder(
"next_my_other_key", ends_with="_val", multi=True
): Numeric(default_value=int(0), required=False, is_type=int),
KeyPlaceholder("next_YAK", starts_with="val_", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder(
"next_YAK_sw", starts_with="x_", multi=True
): Numeric(default_value=int(0), required=False, is_type=int),
}
),
KeyPlaceholder("my_other_key", ends_with="_val", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder("YAK", starts_with="val_", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
KeyPlaceholder("YAK_sw", starts_with="x_", multi=True): Numeric(
default_value=int(0), required=False, is_type=int
),
}
)
}
|
[
"jackbburdick@gmail.com"
] |
jackbburdick@gmail.com
|
87610080866d9cad3191923528acbeeed82d6233
|
547548a6ae8db52b1b183d6f3ba3ad63f4247962
|
/train/gen/kl/paths.py
|
5bc1abac26c206f66572dc7988a9abdd8620b8c0
|
[
"MIT"
] |
permissive
|
jeffkrupa/SubtLeNet
|
21870c8cc88080c101edffb414832d863c299455
|
e0e74b7a0a1c76fd6d6e21c80ce57302a2cd6b6f
|
refs/heads/master
| 2022-06-25T16:33:36.427635
| 2022-06-10T16:15:53
| 2022-06-10T16:15:53
| 187,670,116
| 0
| 2
|
MIT
| 2019-08-02T20:26:20
| 2019-05-20T15:44:13
|
Python
|
UTF-8
|
Python
| false
| false
| 288
|
py
|
#basedir = '/fastscratch/snarayan/genarrays/v_deepgen_3/'
#figsdir = '/home/snarayan/public_html/figs/deepgen/v3/'
basedir = '/data/t3serv014/snarayan/deep//v_deepgen_4_small/'
figsdir = '/home/snarayan/public_html/figs/deepgen/v4_kl/'
from os import system
system('mkdir -p '+figsdir)
|
[
"sidn@mit.edu"
] |
sidn@mit.edu
|
81a9468e822101750e73217c4b2e6d17f02e75b2
|
7a3fc3ea3dd71e4ec85ac73e0af57ae976777513
|
/.history/flaskblog_20210524215327.py
|
3dc704c3d526e4ab9cbfa1dbab452f4fb649c5bb
|
[] |
no_license
|
khanhdk0000/first_proj
|
72e9d2bbd788d6f52bff8dc5375ca7f75c0f9dd0
|
bec0525353f98c65c3943b6d42727e3248ecfe22
|
refs/heads/main
| 2023-05-12T10:36:08.026143
| 2021-06-05T15:35:22
| 2021-06-05T15:35:22
| 374,148,728
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 285
|
py
|
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
@app.route('/home')
def hello_world():
return render_template('home.html')
@app.route('/about')
def about():
return render_template('home.html')
if __name__ == '__main__':
app.run(debug=True)
|
[
"khanhtran28092000@gmail.com"
] |
khanhtran28092000@gmail.com
|
40801f7d40c23e8ef9fd71aef06229192814b53d
|
738b6d6ec4572f5848940b6adc58907a03bda6fb
|
/tests/pymcell4_positive/3000_reports_check/model.py
|
03fdbc184e2cc0fea4c8bae504524b1bb53ba093
|
[
"MIT",
"Unlicense",
"LicenseRef-scancode-public-domain"
] |
permissive
|
mcellteam/mcell_tests
|
09cd1010a356e0e07c88d7e044a73c5606c6e51a
|
34d2d967b75d56edbae999bf0090641850f4f4fe
|
refs/heads/master
| 2021-12-24T02:36:24.987085
| 2021-09-24T14:19:41
| 2021-09-24T14:19:41
| 174,733,926
| 1
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 1,470
|
py
|
#!/usr/bin/env python3
import sys
import os
MCELL_PATH = os.environ.get('MCELL_PATH', '')
if MCELL_PATH:
sys.path.append(os.path.join(MCELL_PATH, 'lib'))
else:
print("Error: variable MCELL_PATH that is used to find the mcell library was not set.")
sys.exit(1)
import mcell as m
params = m.bngl_utils.load_bngl_parameters('test.bngl')
ITERATIONS = int(params['ITERATIONS'])
# ---- load bngl file ----
model = m.Model()
if 'MCELL_DEFAULT_COMPARTMENT_VOLUME' in params:
MCELL_DEFAULT_COMPARTMENT_VOLUME = params['MCELL_DEFAULT_COMPARTMENT_VOLUME']
MCELL_DEFAULT_COMPARTMENT_EDGE_LENGTH = MCELL_DEFAULT_COMPARTMENT_VOLUME**(1.0/3.0)
default_compartment = m.geometry_utils.create_box(
'default_compartment', MCELL_DEFAULT_COMPARTMENT_EDGE_LENGTH
)
model.add_geometry_object(default_compartment)
else:
MCELL_DEFAULT_COMPARTMENT_EDGE_LENGTH = 1
default_compartment = None
model.load_bngl('test.bngl', './react_data/seed_' + str(1).zfill(5) + '/', default_compartment)
# ---- configuration ----
model.config.total_iterations = ITERATIONS
model.notifications.rxn_and_species_report = True
model.initialize()
model.run_iterations(ITERATIONS)
model.end_simulation()
# check that reports exist
assert os.path.exists(os.path.join('reports', 'rxn_report_00001.txt'))
assert os.path.exists(os.path.join('reports', 'species_report_00001.txt'))
assert os.path.exists(os.path.join('reports', 'warnings_report_00001.txt'))
|
[
"ahusar@salk.edu"
] |
ahusar@salk.edu
|
6cb5a5e75a9c8324286d70e2893b91e427710002
|
60cbdf1f9771159f872e632017fa736800784297
|
/Codewars/Find-the-odd-int.py
|
c1567718b97f70ca035fd5cb5332e8b15ddf1595
|
[] |
no_license
|
AG-Systems/programming-problems
|
6ea8c109f04c4d22db6e63fe7b665894c786242a
|
39b2d3546d62b48388788e36316224e15a52d656
|
refs/heads/master
| 2023-04-16T16:59:20.595993
| 2023-04-05T01:25:23
| 2023-04-05T01:25:23
| 77,095,208
| 10
| 3
| null | 2019-10-14T16:16:18
| 2016-12-22T00:03:14
|
Python
|
UTF-8
|
Python
| false
| false
| 355
|
py
|
def find_it(seq):
hashtable = {}
for x in seq:
if x in hashtable:
hashtable[x] += 1
else:
hashtable[x] = 1
for key,val in hashtable.items():
if val % 2 != 0:
return key
"""
def find_it(seq):
for i in seq:
if seq.count(i)%2!=0:
return i
CLEVER SOLUTION
"""
|
[
"noreply@github.com"
] |
AG-Systems.noreply@github.com
|
c41845008487c6093767f0afb04faa5273492412
|
2729fff7cb053d2577985d38c8962043ee9f853d
|
/bokeh/sampledata/tests/test_perceptions.py
|
fd7da155b0a33f279e0b263f36c4dea9d66e1929
|
[
"BSD-3-Clause"
] |
permissive
|
modster/bokeh
|
2c78c5051fa9cac48c8c2ae7345eafc54b426fbd
|
60fce9003aaa618751c9b8a3133c95688073ea0b
|
refs/heads/master
| 2020-03-29T01:13:35.740491
| 2018-09-18T06:08:59
| 2018-09-18T06:08:59
| 149,377,781
| 1
| 0
|
BSD-3-Clause
| 2018-09-19T02:02:49
| 2018-09-19T02:02:49
| null |
UTF-8
|
Python
| false
| false
| 2,212
|
py
|
#-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2017, Anaconda, Inc. All rights reserved.
#
# Powered by the Bokeh Development Team.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Boilerplate
#-----------------------------------------------------------------------------
from __future__ import absolute_import, division, print_function, unicode_literals
import pytest ; pytest
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
# Standard library imports
# External imports
# Bokeh imports
from bokeh._testing.util.api import verify_all
# Module under test
#import bokeh.sampledata.perceptions as bsp
#-----------------------------------------------------------------------------
# Setup
#-----------------------------------------------------------------------------
ALL = (
'numberly',
'probly',
)
#-----------------------------------------------------------------------------
# General API
#-----------------------------------------------------------------------------
Test___all__ = pytest.mark.sampledata(verify_all("bokeh.sampledata.perceptions", ALL))
@pytest.mark.sampledata
def test_numberly(pd):
import bokeh.sampledata.perceptions as bsp
assert isinstance(bsp.numberly, pd.DataFrame)
# check detail for package data
assert len(bsp.numberly) == 46
@pytest.mark.sampledata
def test_probly(pd):
import bokeh.sampledata.perceptions as bsp
assert isinstance(bsp.probly, pd.DataFrame)
# check detail for package data
assert len(bsp.probly) == 46
#-----------------------------------------------------------------------------
# Dev API
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Private API
#-----------------------------------------------------------------------------
|
[
"noreply@github.com"
] |
modster.noreply@github.com
|
e55a27dca2368a2b46c0c89ab0d91c9214f68154
|
9f2f386a692a6ddeb7670812d1395a0b0009dad9
|
/python/paddle/fluid/tests/unittests/ipu/test_print_op_ipu.py
|
3189e060d58373250ba776271009bcab004e762b
|
[
"Apache-2.0"
] |
permissive
|
sandyhouse/Paddle
|
2f866bf1993a036564986e5140e69e77674b8ff5
|
86e0b07fe7ee6442ccda0aa234bd690a3be2cffa
|
refs/heads/develop
| 2023-08-16T22:59:28.165742
| 2022-06-03T05:23:39
| 2022-06-03T05:23:39
| 181,423,712
| 0
| 7
|
Apache-2.0
| 2022-08-15T08:46:04
| 2019-04-15T06:15:22
|
C++
|
UTF-8
|
Python
| false
| false
| 3,306
|
py
|
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import unittest
import numpy as np
import paddle
import paddle.static
from paddle.fluid.tests.unittests.ipu.op_test_ipu import IPUOpTest
@unittest.skipIf(not paddle.is_compiled_with_ipu(),
"core is not compiled with IPU")
class TestBase(IPUOpTest):
def setUp(self):
self.set_atol()
self.set_training()
self.set_data_feed()
self.set_feed_attr()
self.set_op_attrs()
@property
def fp16_enabled(self):
return False
def set_data_feed(self):
data = np.random.uniform(size=[1, 3, 3, 3]).astype('float32')
self.feed_fp32 = {"x": data.astype(np.float32)}
self.feed_fp16 = {"x": data.astype(np.float16)}
def set_feed_attr(self):
self.feed_shape = [x.shape for x in self.feed_fp32.values()]
self.feed_list = list(self.feed_fp32.keys())
self.feed_dtype = [x.dtype for x in self.feed_fp32.values()]
def set_op_attrs(self):
self.attrs = {}
@IPUOpTest.static_graph
def build_model(self):
x = paddle.static.data(
name=self.feed_list[0],
shape=self.feed_shape[0],
dtype=self.feed_dtype[0])
out = paddle.fluid.layers.conv2d(x, num_filters=3, filter_size=3)
out = paddle.fluid.layers.Print(out, **self.attrs)
if self.is_training:
loss = paddle.mean(out)
adam = paddle.optimizer.Adam(learning_rate=1e-2)
adam.minimize(loss)
self.fetch_list = [loss.name]
else:
self.fetch_list = [out.name]
def run_model(self, exec_mode):
self.run_op_test(exec_mode)
def test(self):
for m in IPUOpTest.ExecutionMode:
if not self.skip_mode(m):
self.build_model()
self.run_model(m)
class TestCase1(TestBase):
def set_op_attrs(self):
self.attrs = {"message": "input_data"}
class TestTrainCase1(TestBase):
def set_op_attrs(self):
# "forward" : print forward
# "backward" : print forward and backward
# "both": print forward and backward
self.attrs = {"message": "input_data2", "print_phase": "both"}
def set_training(self):
self.is_training = True
self.epoch = 2
@unittest.skip("attrs are not supported")
class TestCase2(TestBase):
def set_op_attrs(self):
self.attrs = {
"first_n": 10,
"summarize": 10,
"print_tensor_name": True,
"print_tensor_type": True,
"print_tensor_shape": True,
"print_tensor_layout": True,
"print_tensor_lod": True
}
if __name__ == "__main__":
unittest.main()
|
[
"noreply@github.com"
] |
sandyhouse.noreply@github.com
|
847583d24105d7141eccf2797b87b466cbd57b01
|
99f43f4591f63d0c57cd07f07af28c0b554b8e90
|
/python/프로그래머스/직사각형만들기.py
|
16bef1835142eb60413503e1b66a432aafa71fc8
|
[] |
no_license
|
SINHOLEE/Algorithm
|
049fa139f89234dd626348c753d97484fab811a7
|
5f39d45e215c079862871636d8e0306d6c304f7e
|
refs/heads/master
| 2023-04-13T18:55:11.499413
| 2023-04-10T06:21:29
| 2023-04-10T06:21:29
| 199,813,684
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 543
|
py
|
def solution(v):
v = sorted(v)
x_dic = {}
y_dic = {}
for x, y in v:
if x_dic.get(x) is None:
x_dic[x] = 1
else:
x_dic[x] += 1
if y_dic.get(y) is None:
y_dic[y] = 1
else:
y_dic[y] += 1
answer = []
for x, cnt in x_dic.items():
if cnt == 1:
answer.append(x)
break
for y, cnt in y_dic.items():
if cnt == 1:
answer.append(y)
return answer
print(solution([[1, 1], [2, 2], [1, 2]]))
|
[
"dltlsgh5@naver.com"
] |
dltlsgh5@naver.com
|
325e307598c52d6975a86c8edc8054b6e0fe4a67
|
ded10c2f2f5f91c44ec950237a59225e8486abd8
|
/.history/2/matrix_squaring_20200423012150.py
|
d1a2e804abef8dfd13862f5b3c728acfea003b0a
|
[] |
no_license
|
jearistiz/Statistical-Physics-Projects
|
276a86407b32ded4e06b32efb2fadbd8eff8daed
|
d9c5b16a50856e148dc8604d92b6de3ea21fc552
|
refs/heads/master
| 2022-11-05T03:41:23.623050
| 2020-06-28T06:36:05
| 2020-06-28T06:36:05
| 254,909,897
| 1
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 35,543
|
py
|
# -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 20200414
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una partícula libre en
un toro infinito.
"""
return (2.*np.pi*beta)**(-0.5) * np.exp(-(x-xp)**2 / (2 * beta))
def harmonic_potential(x):
"""Uso: Devuelve valor del potencial armónico para una posición x dada"""
return 0.5*x**2
def anharmonic_potential(x):
"""Devuelve valor de potencial anarmónico para una posición x dada"""
# return np.abs(x)*(1+np.cos(x)) #el resultado de este potencial es interesante
return 0.5*x**2 - x**3 + x**4
def QHO_canonical_ensemble(x,beta):
"""
Uso: calcula probabilidad teórica cuántica de encontrar al oscilador armónico
(inmerso en un baño térmico a temperatura inversa beta) en la posición x.
Recibe:
x: float -> posición
beta: float -> inverso de temperatura en unidades reducidas beta = 1/T.
Devuelve:
probabilidad teórica cuántica en posición x para temperatura inversa beta.
"""
return (np.tanh(beta/2.)/np.pi)**0.5 * np.exp(- x**2 * np.tanh(beta/2.))
def Z_QHO(beta):
"""Uso: devuelve valor de función de partición para el QHO unidimensional"""
return 0.5/np.sinh(beta/2)
def E_QHO_avg_theo(beta):
"""Uso: devuelve valor de energía interna para el QHO unidimensional"""
return 0.5/np.tanh(0.5*beta)
def rho_trotter(x_max=5., nx=101, beta=1, potential=harmonic_potential):
"""
Uso: devuelve matriz densidad en aproximación de Trotter para altas temperaturas
y bajo influencia del potencial "potential".
Recibe:
x_max: float -> los valores de x estarán en el intervalo (-x_max,x_max).
nx: int -> número de valores de x considerados (igualmente espaciados).
beta: float -> inverso de temperatura en unidades reducidas.
potential: func -> potencial de interacción. Debe ser solo función de x.
Devuelve:
rho: numpy array, shape=(nx,nx) -> matriz densidad en aproximación de Trotter para
altas temperaturas y potencial dado.
grid_x: numpy array, shape=(nx,) -> valores de x en los que está evaluada rho.
dx: float -> separación entre valores contiguos de grid_x
"""
nx = int(nx)
# Si nx es par lo cambiamos al impar más cercano para incluir al 0 en valores de x
if nx%2 == 0:
nx = nx + 1
# Valor de la discretización de posiciones según x_max y nx dados como input
dx = 2 * x_max/(nx-1)
# Lista de valores de x teniendo en cuenta discretización y x_max
grid_x = [i*dx for i in range(-int((nx-1)/2),int((nx-1)/2 + 1))]
# Construcción de matriz densidad dada por aproximación de Trotter
rho = np.array([[rho_free(x , xp, beta) * np.exp(-0.5*beta*(potential(x)+potential(xp)))
for x in grid_x]
for xp in grid_x])
return rho, grid_x, dx
def density_matrix_squaring(rho, grid_x, N_iter=1, beta_ini=1, print_steps=True):
"""
Uso: devuelve matriz densidad luego de aplicarle algoritmo matrix squaring N_iter veces.
En la primera iteración se usa matriz de densidad dada por el input rho (a
temperatura inversa beta_ini); en las siguientes iteraciones se usa matriz densidad
generada por la iteración inmediatamente anterior. El sistema asociado a la matriz
densidad obtenida (al final de aplicar el algoritmo) está a temperatura inversa
beta_fin = beta_ini * 2**(N_iter).
Recibe:
rho: numpy array, shape=(nx,nx) -> matriz densidad discretizada en valores dados
por x_grid.
grid_x: numpy array, shape=(nx,) -> valores de x en los que está evaluada rho.
N_iter: int -> número de iteraciones del algoritmo.
beta_ini: float -> valor de inverso de temperatura asociado a la
matriz densidad rho dada como input.
print_steps: bool -> decide si muestra valores de beta en cada
iteración.
Devuelve:
rho: numpy array, shape=(nx,nx) -> matriz densidad de estado rho a temperatura
inversa igual a beta_fin.
trace_rho: float -> traza de la matriz densidad a temperatura inversa
igual a beta_fin. Por la definición que tomamos
de rho, ésta es equivalente a la función
partición a dicha temperatura.
beta_fin: float -> temperatura inversa del sistema asociado a rho.
"""
# Valor de discretización de las posiciones
dx = grid_x[1] - grid_x[0]
# Cálculo del valor de beta_fin según valores beta_ini y N_iter dados como input
beta_fin = beta_ini * 2 ** N_iter
# Itera algoritmo matrix squaring
if print_steps:
print('\nbeta_ini = %.3f'%beta_ini,
'\n----------------------------------------------------------------')
for i in range(N_iter):
rho = dx * np.dot(rho,rho)
# Imprime información relevante
if print_steps:
print(u'Iteración %d) 2^%d * beta_ini --> 2^%d * beta_ini'%(i, i, i+1))
if print_steps:
print('----------------------------------------------------------------\n' +
u'beta_fin = %.3f'%beta_fin)
# Calcula traza de rho
trace_rho = np.trace(rho)*dx
return rho, trace_rho, beta_fin
def save_csv(data, data_headers=None, data_index=None, file_name=None,
relevant_info=None, print_data=True):
"""
Uso: data debe contener listas que serán las columnas de un archivo CSV que se guardará
con nombre file_name. relevant_info agrega comentarios en primeras líneas del
archivo.
Recibe:
data: array of arrays, shape=(nx,ny) -> cada columna es una columna del archivo.
data_headers: numpy array, shape=(ny,) -> nombres de las columnas
data_index: numpy array, shape=(nx,) -> nombres de las filas
file_name: str -> nombre del archivo en el que se guardarán datos.
relevant_info: list of str -> información que se agrega como comentario en
primeras líneas. Cada elemento de esta lista
se agrega como una nueva línea.
print_data: bool -> decide si imprime datos guardados, en pantalla.
Devuelve:
data_pdDF: pd.DataFrame -> archivo con datos formato "pandas data frame".
guarda archivo con datos e inforamación relevante en primera línea.
"""
if file_name==None:
#path completa para este script
script_dir = os.path.dirname(os.path.abspath(__file__))
file_name = script_dir + '/' + 'file_name.csv'
data_pdDF = pd.DataFrame(data, columns=data_headers, index=data_index)
# Crea archivo CSV y agrega comentarios relevantes dados como input
if relevant_info is not None:
# Agregamos información relevante en primeras líneas
with open(file_name,mode='w') as file_csv:
for info in list(relevant_info):
file_csv.write('# '+info+'\n')
file_csv.close()
# Usamos pandas para escribir en archivo en formato csv.
with open(file_name,mode='a') as file_csv:
data_pdDF.to_csv(file_csv)
file_csv.close()
else:
with open(file_name,mode='w') as file_csv:
data_pdDF.to_csv(file_csv)
file_csv.close()
# Imprime datos en pantalla.
if print_data==True:
print(data_pdDF)
return data_pdDF
def run_pi_x_sq_trotter(x_max=5., nx=201, N_iter=7, beta_fin=4, potential=harmonic_potential,
potential_string='harmonic_potential', print_steps=True,
save_data=True, file_name=None, relevant_info=None,
plot=True, save_plot=True, show_plot=True):
"""
Uso: corre algoritmo matrix squaring iterativamente (N_iter veces). En la primera
iteración se usa una matriz densidad en aproximación de Trotter a temperatura
inversa beta_ini = beta_fin * 2**(-N_iter) para potencial dado por potential;
en las siguientes iteraciones se usa matriz densidad generada por la iteración
inmediatamente anterior. Además ésta función guarda datos de pi(x;beta) vs. x
en archivo de texto y grafica pi(x;beta) comparándolo con teoría para el oscilador
armónico cuántico.
Recibe:
x_max: float -> los valores de x estarán en el intervalo (-x_max,x_max).
nx: int -> número de valores de x considerados.
N_iter: int -> número de iteraciones del algoritmo matrix squaring.
beta_ini: float -> valor de inverso de temperatura que queremos tener al final de
aplicar el algoritmo matrix squaring iterativamente.
potential: func -> potencial de interacción usado en aproximación de trotter. Debe
ser función de x.
potential_string: str -> nombre del potencial (con éste nombramos los archivos que
se generan).
print_steps: bool -> decide si imprime los pasos del algoritmo matrix squaring.
save_data: bool -> decide si guarda los datos en archivo .csv.
file_name: str -> nombre de archivo CSV en que se guardan datos. Si valor es None,
se guarda con nombre conveniente según parámetros relevantes.
plot: bool -> decide si grafica.
save_plot: bool -> decide si guarda la figura.
show_plot: bool -> decide si muestra la figura en pantalla.
Devuelve:
rho: numpy array, shape=(nx,nx) -> matriz densidad de estado rho a temperatura
inversa igual a beta_fin.
trace_rho: float -> traza de la matriz densidad a temperatura inversa
igual a beta_fin. Por la definición que tomamos
de "rho", ésta es equivalente a la función
partición en dicha temperatura.
grid_x: numpy array, shape=(nx,) -> valores de x en los que está evaluada rho.
"""
# Cálculo del valor de beta_ini según valores beta_fin y N_iter dados como input
beta_ini = beta_fin * 2**(-N_iter)
# Cálculo de rho con aproximación de Trotter
rho, grid_x, dx = rho_trotter(x_max, nx, beta_ini, potential)
grid_x = np.array(grid_x)
# Aproximación de rho con matrix squaring iterado N_iter veces.
rho, trace_rho, beta_fin_2 = density_matrix_squaring(rho, grid_x, N_iter,
beta_ini, print_steps)
print('---------------------------------------------------------'
+ '---------------------------------------------------------\n'
+ u'Matrix squaring: beta_ini = %.3f --> beta_fin = %.3f'%(beta_ini, beta_fin_2)
+ u' N_iter = %d Z(beta_fin) = Tr(rho(beta_fin)) = %.3E \n'%(N_iter,trace_rho)
+ '---------------------------------------------------------'
+ '---------------------------------------------------------'
)
# Normalización de rho a 1 y cálculo de densidades de probabilidad para valores en grid_x.
rho_normalized = np.copy(rho)/trace_rho
x_weights = np.diag(rho_normalized)
# Guarda datos en archivo CSV.
script_dir = os.path.dirname(os.path.abspath(__file__)) #path completa para este script
if save_data:
# Nombre del archivo .csv en el que guardamos valores de pi(x;beta_fin).
if file_name is None:
csv_file_name = (script_dir
+ u'/pi_x-ms-%s-beta_fin_%.3f-x_max_%.3f-nx_%d-N_iter_%d.csv'
%(potential_string,beta_fin,x_max,nx,N_iter))
else:
csv_file_name = script_dir + '/'+ file_name
# Información relevante para agregar como comentario al archivo csv.
if relevant_info is None:
relevant_info = ['pi(x;beta_fin) computed using matrix squaring algorithm and'
+ ' Trotter approximation. Parameters:',
u'%s x_max = %.3f nx = %d '%(potential_string,x_max,nx)
+ u'N_iter = %d beta_ini = %.3f '%(N_iter,beta_ini,)
+ u'beta_fin = %.3f'%beta_fin]
# Guardamos valores de pi(x;beta_fin) en archivo csv.
pi_x_data = np.array([grid_x.copy(),x_weights.copy()])
pi_x_data_headers = ['position_x','prob_density']
pi_x_data = save_csv(pi_x_data.transpose(),pi_x_data_headers,None,csv_file_name,
relevant_info,print_data=0)
# Gráfica y comparación con teoría
if plot:
plt.figure(figsize=(8,5))
plt.plot(grid_x, x_weights,
label = 'Matrix squaring +\nfórmula de Trotter.\n$N=%d$ iteraciones\n$dx=%.3E$'
%(N_iter,dx))
plt.plot(grid_x, QHO_canonical_ensemble(grid_x,beta_fin), label=u'Valor teórico QHO')
plt.xlabel(u'x')
plt.ylabel(u'$\pi^{(Q)}(x;\\beta)$')
plt.legend(loc='best',title=u'$\\beta=%.2f$'%beta_fin)
plt.tight_layout()
if save_plot:
if file_name is None:
plot_file_name = (script_dir
+ u'/pi_x-ms-plot-%s-beta_fin_%.3f-x_max_%.3f-nx_%d-N_iter_%d.eps'
%(potential_string,beta_fin,x_max,nx,N_iter))
else:
plot_file_name = script_dir+u'/pi_x-ms-plot-'+file_name+'.eps'
plt.savefig(plot_file_name)
if show_plot:
plt.show()
plt.close()
return rho, trace_rho, grid_x
def Z_several_values(temp_min=1./10, temp_max=1/2., N_temp=10, save_Z_csv=True,
Z_file_name = None, relevant_info_Z = None, print_Z_data = True,
x_max=7., nx=201, N_iter=7, potential = harmonic_potential,
potential_string = 'harmonic_potential', print_steps=False,
save_pi_x_data=False, pi_x_file_name=None, relevant_info_pi_x=None,
plot=False, save_plot=False, show_plot=False):
"""
Uso: calcula varios valores para la función partición, Z, usando operador densidad
aproximado aproximado por el algoritmo matrix squaring.
Recibe:
temp_min: float -> Z se calcula para valores de beta en (1/temp_min,1/temp_max).
con N_temp valores igualmente espaciados.
temp_max: float.
N_temp: int.
save_Z_csv: bool -> decide si guarda valores calculados en archivo CSV.
Z_file_name: str -> nombre del archivo en el que se guardan datos de Z. Si valor
es None, se guarda con nombre conveniente según parámetros
relevantes.
relevant_info_Z: list -> infrmación relevante se añade en primeras líneas del archivo.
Cada str separada por una coma en la lista se añade como una
nueva línea.
print_Z_data: bool -> imprime datos de Z en pantalla.
*args: tuple -> argumentos de run_pi_x_sq_trotter
Devuelve:
Z_data: list, shape=(3,)
Z_data[0]: list, shape(N_temp,) -> contiene valores de beta en los que está evaluada Z.
Z_data[1]: list, shape(N_temp,) -> contiene valores de T en los que está evaluada Z.
Z_data[2]: list, shape(N_temp,) -> contiene valores de Z.
Z(beta) = Z(1/T) =
Z_data[0](Z_data[1]) = Z_data[0](Z_data[2])
"""
# Transforma valores de beta en valores de T y calcula lista de beta.
beta_max = 1./temp_min
beta_min = 1./temp_max
N_temp = int(N_temp)
beta_array = np.linspace(beta_max,beta_min,N_temp)
Z = []
# Calcula valores de Z para valores de beta especificados en beta_array.
for beta_fin in beta_array:
rho, trace_rho, grid_x = run_pi_x_sq_trotter(x_max, nx, N_iter, beta_fin, potential,
potential_string, print_steps,
save_pi_x_data, file_name,
relevant_info, plot, save_plot, show_plot)
Z.append(trace_rho)
# Calcula el output de la función.
Z_data = np.array([beta_array.copy(), 1./beta_array.copy(), Z.copy()], dtype=float)
# Guarda datos de Z en archivo CSV.
if save_Z_csv == True:
if Z_file_name is None:
script_dir = os.path.dirname(os.path.abspath(__file__))
Z_file_name = ('Z-ms-%s-beta_max_%.3f-'%(potential_string,1./temp_min)
+ 'beta_min_%.3f-N_temp_%d-x_max_%.3f-'%(1./temp_max,N_temp,x_max)
+ 'nx_%d-N_iter_%d.csv'%(nx, N_iter))
Z_file_name = script_dir + '/' + Z_file_name
if relevant_info_Z is None:
relevant_info_Z = ['Partition function at several temperatures',
'%s beta_max = %.3f '%(potential_string,1./temp_min)
+ 'beta_min = %.3f N_temp = %d '%(1./temp_max,N_temp)
+ 'x_max = %.3f nx = %d N_iter = %d'%(x_max,nx, N_iter)]
Z_data_headers = ['beta', 'temperature', 'Z']
Z_data = save_csv(Z_data.transpose(), Z_data_headers, None, Z_file_name, relevant_info_Z,
print_data=False)
if print_Z_data == True:
print(Z_data)
return Z_data
def average_energy(read_Z_data=True, generate_Z_data=False, Z_file_name = None,
plot_energy=True, save_plot_E=True, show_plot_E=True,
E_plot_name=None,
temp_min=1./10, temp_max=1/2., N_temp=10, save_Z_csv=True,
relevant_info_Z=None, print_Z_data=True,
x_max=7., nx=201, N_iter=7, potential=harmonic_potential,
potential_string='harmonic_potential', print_steps=False,
save_pi_x_data=False, pi_x_file_name=None, relevant_info_pi_x=None,
plot_pi_x=False, save_plot_pi_x=False, show_plot_pi_x=False):
"""
Uso: calcula energía promedio, E, del sistema en cuestión dado por potential.
Se puede decidir si se leen datos de función partición o se generan,
ya que E = - (d/d beta )log(Z).
Recibe:
read_Z_data: bool -> decide si se leen datos de Z de un archivo con nombre
Z_file_name.
generate_Z_data: bool -> decide si genera datos de Z.
Nota: read_Z_data y generate_Z_data son excluyentes. Se analiza primero primera opción
Z_file_name: str -> nombre del archivo en del que se leerá o en el que se
guardarán datos de Z. Si valor es None, se guarda con nombre
conveniente según parámetros relevantes.
plot_energy: bool -> decide si gráfica energía.
save_plot_E: bool -> decide si guarda gráfica de energía. Nótese que si
plot_energy=False, no se generará gráfica.
show_plot_E: bool -> decide si muestra gráfica de E en pantalla
E_plot_name: str -> nombre para guardar gráfico de E.
*args: tuple -> argumentos de Z_several_values
Devuelve:
E_avg: list -> valores de energía promedio para beta especificados por
beta__read
beta_read: list
"""
# Decide si lee o genera datos de Z.
if read_Z_data:
Z_file_read = pd.read_csv(Z_file_name, index_col=0, comment='#')
elif generate_Z_data:
t_0 = time()
Z_data = Z_several_values(temp_min, temp_max, N_temp, save_Z_csv, Z_file_name,
relevant_info_Z, print_Z_data, x_max, nx, N_iter, potential,
potential_string, print_steps, save_pi_x_data, pi_x_file_name,
relevant_info_pi_x, plot_pi_x,save_plot_pi_x, show_plot_pi_x)
t_1 = time()
print('--------------------------------------------------------------------------\n'
+ '%d values of Z(beta) generated --> %.3f sec.'%(N_temp,t_1-t_0))
Z_file_read = Z_data
else:
print('Elegir si se generan o se leen los datos para la función partición, Z.\n'
+ 'Estas opciones son mutuamente exluyentes. Si se seleccionan las dos, el'
+ 'algoritmo escoge leer los datos.')
beta_read = Z_file_read['beta']
temp_read = Z_file_read['temperature']
Z_read = Z_file_read['Z']
# Calcula energía promedio.
E_avg = np.gradient(-np.log(Z_read),beta_read)
# Grafica.
if plot_energy:
plt.figure(figsize=(8,5))
plt.plot(temp_read,E_avg,label=u'$\langle E \\rangle$ via path integral\nnaive sampling')
plt.plot(temp_read,E_QHO_avg_theo(beta_read),label=u'$\langle E \\rangle$ teórico')
plt.legend(loc='best')
plt.xlabel(u'$T$')
plt.ylabel(u'$\langle E \\rangle$')
if save_plot_E:
if E_plot_name is None:
script_dir = os.path.dirname(os.path.abspath(__file__))
E_plot_name = ('E-ms-plot-%s-beta_max_%.3f-'%(potential_string,1./temp_min)
+ 'beta_min_%.3f-N_temp_%d-x_max_%.3f-'%(1./temp_max,N_temp,x_max)
+ 'nx_%d-N_iter_%d.eps'%(nx, N_iter))
E_plot_name = script_dir + '/' + E_plot_name
plt.savefig(E_plot_name)
if show_plot_E:
plt.show()
plt.close()
return E_avg, beta_read.to_numpy()
def calc_error(x,xp,dx):
"""
Uso: calcula error acumulado en cálculo computacional de pi(x;beta) comparado
con valor teórico
"""
x, xp = np.array(x), np.array(xp)
N = len(x)
if N != len(xp):
raise Exception('x y xp deben ser del mismo tamaño.')
else:
return np.sum(np.abs(x-xp))*dx
def optimization(generate_opt_data=True, read_opt_data=False, beta_fin=4, x_max=5,
potential=harmonic_potential, potential_string='harmonic_potential',
nx_min=50, nx_max=1000, nx_sampling=50, N_iter_min=1, N_iter_max=20,
save_opt_data=False, opt_data_file_name=None, plot=True,
show_plot=True, save_plot=True, opt_plot_file_name=None):
"""
Uso: calcula diferentes valores de error usando calc_error() para encontrar valores de
dx y beta_ini óptimos para correr el alcoritmo (óptimos = que minimicen error)
Recibe:
generate_opt_data: bool -> decide si genera datos para optimización.
read_opt_data: bool -> decide si lee datos para optimización.
Nota: generate_opt_data y read_opt_data son excluyentes. Se evalúa primero la primera.
nx_min: int
nx_max: int -> se relaciona con dx = 2*x_max/(nx-1).
nx_sampling: int -> se generan nx mediante range(nx_max,nx_min,-1*nx_sampling).
N_iter_min: int
N_iter_max: int -> se relaciona con beta_ini = beta_fin **(-N_iter). Se gereran
valores de N_iter con range(N_iter_max,N_iter_min-1,-1).
save_opt_data: bool -> decide si guarda datos de optimización en archivo CSV.
opt_data_file_name: str -> nombre de archivo para datos de optimización.
plot: bool -> decide si grafica optimización.
show_plot: bool -> decide si muestra optimización.
save_plot: bool -> decide si guarda optimización.
opt_plot_file_name: str -> nombre de gráfico de optimización. Si valor es None, se
guarda con nombre conveniente según parámetros relevantes.
Devuelve:
error: list, shape=(nb,ndx) -> valores de calc_error para diferentes valores de dx y
beta_ini. dx incrementa de izquierda a derecha en lista
y beta_ini incrementa de arriba a abajo.
dx_grid: list, shape=(ndx,) -> valores de dx para los que se calcula error.
beta-ini_grid: list, shape=(nb,) -> valores de beta_ini para los que se calcula error.
"""
# Decide si genera o lee datos.
if generate_opt_data:
N_iter_min = int(N_iter_min)
N_iter_max = int(N_iter_max)
nx_min = int(nx_min)
nx_max = int(nx_max)
if nx_min%2==1:
nx_min -= 1
if nx_max%2==0:
nx_max += 1
# Crea valores de nx y N_iter (equivalente a generar valores de dx y beta_ini)
nx_values = range(nx_max,nx_min,-1*nx_sampling)
N_iter_values = range(N_iter_max,N_iter_min-1,-1)
dx_grid = [2*x_max/(nx-1) for nx in nx_values]
beta_ini_grid = [beta_fin * 2**(-N_iter) for N_iter in N_iter_values]
error = []
# Calcula error para cada valor de nx y N_iter especificado
# (equivalentemente dx y beta_ini).
for N_iter in N_iter_values:
row = []
for nx in nx_values:
rho,trace_rho,grid_x = run_pi_x_sq_trotter(x_max, nx, N_iter, beta_fin,
potential, potential_string,
False, False, None, None, False,
False, False)
grid_x = np.array(grid_x)
dx = grid_x[1]-grid_x[0]
rho_normalized = np.copy(rho)/trace_rho
pi_x = np.diag(rho_normalized)
theoretical_pi_x = QHO_canonical_ensemble(grid_x,beta_fin)
error_comp_theo = calc_error(pi_x,theoretical_pi_x,dx)
row.append(error_comp_theo)
error.append(row)
error = np.array(error)
elif read_opt_data:
error = pd.read_csv(opt_data_file_name, index_col=0, comment='#')
dx_grid = error.columns.to_numpy()
beta_ini_grid = error.index.to_numpy()
error = error.to_numpy()
else:
raise Exception('Escoga si generar o leer datos en optimization(.)')
# Toma valores de error en cálculo de Z (nan e inf) y los remplaza por
# el valor de mayor error en el gráfico.
try:
error = np.where(np.isinf(error),-np.Inf,error)
error = np.where(np.isnan(error),-np.Inf,error)
nan_value = 1.1*max(error)
except:
nan_value = 0
error = np.nan_to_num(error, nan = nan_value, posinf=nan_value, neginf = nan_value)
script_dir = os.path.dirname(os.path.abspath(__file__))
# Guarda datos (solo si fueron generados y se escoje guardar)
if generate_opt_data and save_opt_data:
if opt_data_file_name is None:
opt_data_file_name = ('/pi_x-ms-opt-%s-beta_fin_%.3f'%(potential_string, beta_fin)
+ '-x_max_%.3f-nx_min_%d-nx_max_%d'%(x_max, nx_min, nx_max)
+ '-nx_sampling_%d-N_iter_min_%d'%(nx_sampling, N_iter_min)
+ '-N_iter_max_%d.csv'%(N_iter_max))
opt_data_file_name = script_dir + opt_data_file_name
relevant_info = ['Optimization of parameters dx and beta_ini of matrix squaring'
+ ' algorithm', '%s beta_fin = %.3f '%(potential_string, beta_fin)
+ 'x_max = %.3f nx_min = %d nx_max = %d '%(x_max, nx_min, nx_max)
+ 'nx_sampling = %d N_iter_min = %d '%(nx_sampling, N_iter_min)
+ 'N_iter_max = %d'%(N_iter_max)]
save_csv(error, dx_grid, beta_ini_grid, opt_data_file_name, relevant_info)
# Grafica
if plot:
fig, ax = plt.subplots(1, 1)
DX, BETA_INI = np.meshgrid(dx_grid, beta_ini_grid)
cp = plt.contourf(DX,BETA_INI,error)
plt.colorbar(cp)
ax.set_ylabel(u'$\\beta_{ini}$')
ax.set_xlabel('$dx$')
plt.tight_layout()
if save_plot:
if opt_plot_file_name is None:
opt_plot_file_name = \
('/pi_x-ms-opt-plot-%s-beta_fin_%.3f'%(potential_string, beta_fin)
+ '-x_max_%.3f-nx_min_%d-nx_max_%d'%(x_max, nx_min, nx_max)
+ '-nx_sampling_%d-N_iter_min_%d'%(nx_sampling, N_iter_min)
+ '-N_iter_max_%d.eps'%(N_iter_max))
opt_plot_file_name = script_dir + opt_plot_file_name
else:
plt.savefig(opt_plot_file_name)
if show_plot:
plt.show()
plt.close()
return error, dx_grid, beta_ini_grid
#################################################################################################
# PANEL DE CONTROL
#
# Decide si corre algoritmo matrix squaring
run_ms_algorithm = True
# Decide si corre algoritmo para cálculo de energía interna
run_avg_energy = False
# Decide si corre algoritmo para optimización de dx y beta_ini
run_optimization = False
#
#
#################################################################################################
#################################################################################################
# PARÁMETROS GENERALES PARA LAS FIGURAS
#
# Usar latex en texto de figuras y agrandar tamaño de fuente
plt.rc('text', usetex=True)
plt.rcParams.update({'font.size':15,'text.latex.unicode':True})
# Obtenemos path para guardar archivos en el mismo directorio donde se ubica el script
script_dir = os.path.dirname(os.path.abspath(__file__))
#
#################################################################################################
#################################################################################################
# CORRE ALGORITMO MATRIX SQUARING
#
# Parámetros físicos del algoritmo
x_max = 5.
nx = 201
N_iter = 7
beta_fin = 4
potential, potential_string = harmonic_potential, 'harmonic_potential'
# Parámetros técnicos
print_steps = False
save_data = True #False
file_name = 'test1' #None
relevant_info = None
plot = True
save_plot = True #False
show_plot = True
if run_ms_algorithm:
rho, trace_rho, grid_x = run_pi_x_sq_trotter(x_max, nx, N_iter, beta_fin, potential,
potential_string, print_steps, save_data,
file_name, relevant_info, plot,
save_plot, show_plot)
#
#
#################################################################################################
#################################################################################################
# CORRE ALGORITMO PARA CÁLCULO DE ENERGÍA INTERNA
#
# Parámetros técnicos función partición y cálculo de energía
read_Z_data = False
generate_Z_data = True
Z_file_name = None
plot_energy = True
save_plot_E = True
show_plot_E = True
E_plot_name = None #script_dir + 'E.eps'
# Parámetros físicos para calcular Z y <E>
temp_min = 1./10
temp_max = 1./2
N_temp = 10
potential, potential_string = harmonic_potential, 'harmonic_potential'
# Más parámetros técnicos
save_Z_csv = True
relevant_info_Z = None
print_Z_data = False
x_max = 7.
nx = 201
N_iter = 7
print_steps = False
save_pi_x_data = False
pi_x_file_name = None
relevant_info_pi_x = None
plot_pi_x = False
save_plot_pi_x = False
show_plot_pi_x = False
if run_avg_energy:
average_energy(read_Z_data, generate_Z_data, Z_file_name, plot_energy, save_plot_E,
show_plot_E, E_plot_name,
temp_min, temp_max, N_temp, save_Z_csv, relevant_info_Z, print_Z_data,
x_max, nx, N_iter, potential, potential_string, print_steps, save_pi_x_data,
pi_x_file_name, relevant_info_pi_x,plot_pi_x, save_plot_pi_x, show_plot_pi_x)
#
#
#################################################################################################
#################################################################################################
# CORRE ALGORITMO PARA OPTIMIZACIÓN DE DX Y BETA_INI
#
# Parámetros físicos
beta_fin = 4
x_max = 5
potential, potential_string = harmonic_potential, 'harmonic_potential'
nx_min = 10
nx_max = 300
nx_sampling = 30
N_iter_min = 8
N_iter_max = 20
# Parámetros técnicos
generate_opt_data = True
read_opt_data = True
save_opt_data = True
opt_data_file_name = None #script_dir + '/pi_x-ms-opt-harmonic_potential-beta_fin_4.000-x_max_5.000-nx_min_10-nx_max_1001-nx_sampling_50-N_iter_min_1-N_iter_max_20.csv'
plot_opt = True
show_opt_plot = True
save_plot_opt = True
opt_plot_file_name = None #script_dir + '/pi_x-ms-opt-plot-harmonic_potential-beta_fin_4.000-x_max_5.000-nx_min_10-nx_max_1001-nx_sampling_50-N_iter_min_1-N_iter_max_20.eps'
if run_optimization:
t_0 = time()
error, dx_grid, beta_ini_grid = \
optimization(generate_opt_data, read_opt_data, beta_fin, x_max, potential,
potential_string, nx_min, nx_max, nx_sampling, N_iter_min,
N_iter_max, save_opt_data, opt_data_file_name, plot_opt,
show_opt_plot, save_plot_opt, opt_plot_file_name)
t_1 = time()
print('-----------------------------------------'
+ '-----------------------------------------\n'
+ 'Optimization: beta_fin=%.3f, x_max=%.3f, potential=%s\n \
nx_min=%d, nx_max=%d, N_iter_min=%d, N_iter_max=%d\n \
computation time = %.3f sec.\n'%(beta_fin,x_max,potential_string,nx_min,
nx_max,N_iter_min,N_iter_max,t_1-t_0)
+ '-----------------------------------------'
+ '-----------------------------------------')
#
#
#################################################################################################
|
[
"jeaz.git@gmail.com"
] |
jeaz.git@gmail.com
|
d7fae122e7f8a84921a3b1fe45c07f443c21ff43
|
89b2f5b08c441d4af0a63ed2ec1a5889bc92f0f7
|
/NI_DJANGO_PROJECTS/urls_and_templates/second__app/urls.py
|
cfec6a5b99b358adb0edc6eaa0de920d58001cc6
|
[] |
no_license
|
KoliosterNikolayIliev/Softuni_education
|
68d7ded9564861f2bbf1bef0dab9ba4a788aa8dd
|
18f1572d81ad9eb7edd04300deb8c81bde05d76b
|
refs/heads/master
| 2023-07-18T09:29:36.139360
| 2021-08-27T15:04:38
| 2021-08-27T15:04:38
| 291,744,823
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 105
|
py
|
from django.urls import path
from second__app import views
urlpatterns = [
path('', views.index)
]
|
[
"65191727+KoliosterNikolayIliev@users.noreply.github.com"
] |
65191727+KoliosterNikolayIliev@users.noreply.github.com
|
099107a1fc7a937fe06c9e7494308aa4d7f2223e
|
26d030d1a8134f1900d11054dc63c674dc2beec8
|
/main.py
|
0895f7c340f491aad10624532b6215a61944c9a2
|
[
"MIT"
] |
permissive
|
kendricktan/pychip8
|
1ea1259abb61485c0db9bd26dda0201c2369452d
|
c9eb4f950f4546dbad0ca84f1c393d822a925a10
|
refs/heads/master
| 2021-04-27T15:44:17.064807
| 2018-02-23T14:28:13
| 2018-02-23T14:28:13
| 122,475,722
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 133
|
py
|
from pychip8.emulator import Chip8
if __name__ == '__main__':
rom_name = 'pong.rom'
chip8 = Chip8(rom_name)
chip8.run()
|
[
"kendricktan0814@gmail.com"
] |
kendricktan0814@gmail.com
|
4589205cd366b6f298b02d86f9c43531f17d96f3
|
5d61acc1f9595047861f76b916cd28a167496f9e
|
/Configuration/GenProduction/python/ThirteenTeV/GMSB/GMSB_L500TeV_Ctau1200cm_Pythia8_13TeV_cff.py
|
4c40005548ada354e0fd1851954fd8435b425dbe
|
[
"Apache-2.0"
] |
permissive
|
zhangzc11/cms-gmsb-sps8-configs
|
1bbd3cf2a45ee187f3e41ff51c409976fd59f586
|
838e6aac1d13251e050c0ee8c4ed26ca0c6cef7e
|
refs/heads/master
| 2020-06-24T05:28:46.872990
| 2019-09-24T20:05:33
| 2019-09-24T20:05:33
| 198,862,590
| 0
| 0
|
Apache-2.0
| 2019-07-25T16:03:09
| 2019-07-25T16:03:08
| null |
UTF-8
|
Python
| false
| false
| 59,260
|
py
|
SLHA_TABLE = '''
# ISAJET SUSY parameters in SUSY Les Houches Accord 2 format
# Created by ISALHA 2.0 Last revision: H Baer 27 May 2014
Block SPINFO # Program information
1 ISASUGRA/ISASUSY from ISAJET # Spectrum Calculator
2 7.88 02-JAN-2018 11:01:14 # Version number
Block MODSEL # Model selection
1 2 # Minimal gauge mediated (GMSB) model
Block SMINPUTS # Standard Model inputs
1 1.28000000E+02 # alpha_em^(-1)
2 1.16570000E-05 # G_Fermi
3 1.19999997E-01 # alpha_s(M_Z)
4 9.11699982E+01 # m_{Z}(pole)
5 4.19999981E+00 # m_{b}(m_{b})
6 1.73100006E+02 # m_{top}(pole)
7 1.77699995E+00 # m_{tau}(pole)
Block MINPAR # SUSY breaking input parameters
1 5.00000000E+05 # Lambda scale of soft SSB
2 1.00000000E+06 # M_mess overall messenger scale
3 1.50000000E+01 # tan(beta)
4 1.00000000E+00 # sign(mu)
5 1.00000000E+00 # N_5 messenger index
6 9.78250000E+02 # c_grav gravitino mass factor
51 1.00000000E+00 # N5_1 U(1)_Y messenger index
52 1.00000000E+00 # N5_2 SU(2)_L messenger index
53 1.00000000E+00 # N5_3 SU(3)_C messenger index
101 1.00000000E+00 # Rsl
102 0.00000000E+00 # dmH_d^2
103 0.00000000E+00 # dmH_u^2
104 0.00000000E+00 # d_Y
Block MASS # Scalar and gaugino mass spectrum
# PDG code mass particle
6 1.73100006E+02 # top
24 8.04229965E+01 # W^+
25 1.20963837E+02 # h^0
35 2.33982568E+03 # H^0
36 2.32449658E+03 # A^0
37 2.34119263E+03 # H^+
1000001 4.97861523E+03 # dnl
1000002 4.97796680E+03 # upl
1000003 4.97861523E+03 # stl
1000004 4.97796680E+03 # chl
1000005 4.67874658E+03 # b1
1000006 4.28783154E+03 # t1
1000011 1.74556335E+03 # el-
1000012 1.73479907E+03 # nuel
1000013 1.74556335E+03 # mul-
1000014 1.73479907E+03 # numl
1000015 8.77231506E+02 # tau1
1000016 1.72525610E+03 # nutl
1000021 3.59506958E+03 # glss
1000022 7.22850281E+02 # z1ss
1000023 1.36930420E+03 # z2ss
1000024 1.36947656E+03 # w1ss
1000025 -1.61272607E+03 # z3ss
1000035 1.62492908E+03 # z4ss
1000037 1.62620276E+03 # w2ss
1000039 1.17665186E-04 # gvss
2000001 4.69962061E+03 # dnr
2000002 4.72713818E+03 # upr
2000003 4.69962061E+03 # str
2000004 4.72713867E+03 # chr
2000005 4.79156592E+03 # b2
2000006 4.82052734E+03 # t2
2000011 8.74960999E+02 # er-
2000013 8.74960999E+02 # mur-
2000015 1.73672705E+03 # tau2
Block ALPHA # Effective Higgs mixing parameter
-6.68404102E-02 # alpha
Block STOPMIX # stop mixing matrix
1 1 2.02913228E-02 # O_{11}
1 2 9.99794126E-01 # O_{12}
2 1 -9.99794126E-01 # O_{21}
2 2 2.02913228E-02 # O_{22}
Block SBOTMIX # sbottom mixing matrix
1 1 7.70947039E-02 # O_{11}
1 2 9.97023761E-01 # O_{12}
2 1 -9.97023761E-01 # O_{21}
2 2 7.70947039E-02 # O_{22}
Block STAUMIX # stau mixing matrix
1 1 1.58321951E-02 # O_{11}
1 2 9.99874651E-01 # O_{12}
2 1 -9.99874651E-01 # O_{21}
2 2 1.58321951E-02 # O_{22}
Block NMIX # neutralino mixing matrix
1 1 9.99309301E-01 #
1 2 -1.99518353E-03 #
1 3 3.34340036E-02 #
1 4 -1.60968006E-02 #
2 1 -9.81154572E-03 #
2 2 -9.75596309E-01 #
2 3 1.66011706E-01 #
2 4 -1.43372744E-01 #
3 1 1.22171640E-02 #
3 2 -1.64305065E-02 #
3 3 -7.06651509E-01 #
3 4 -7.07265913E-01 #
4 1 -3.36956233E-02 #
4 2 2.18947381E-01 #
4 3 6.86998308E-01 #
4 4 -6.92069888E-01 #
Block UMIX # chargino U mixing matrix
1 1 -9.73944068E-01 # U_{11}
1 2 2.26788387E-01 # U_{12}
2 1 -2.26788387E-01 # U_{21}
2 2 -9.73944068E-01 # U_{22}
Block VMIX # chargino V mixing matrix
1 1 -9.80740488E-01 # V_{11}
1 2 1.95315510E-01 # V_{12}
2 1 -1.95315510E-01 # V_{21}
2 2 -9.80740488E-01 # V_{22}
Block GAUGE Q= 4.41147656E+03 #
1 3.57515574E-01 # g`
2 6.52412176E-01 # g_2
3 1.21976912E+00 # g_3
Block YU Q= 4.41147656E+03 #
3 3 8.23612988E-01 # y_t
Block YD Q= 4.41147656E+03 #
3 3 1.79693878E-01 # y_b
Block YE Q= 4.41147656E+03 #
3 3 1.53216481E-01 # y_tau
Block HMIX Q= 4.41147656E+03 # Higgs mixing parameters
1 1.59305103E+03 # mu(Q)
2 1.42569609E+01 # tan(beta)(Q)
3 2.52204025E+02 # Higgs vev at Q
4 5.40328450E+06 # m_A^2(Q)
Block MSOFT Q= 4.41147656E+03 # DRbar SUSY breaking parameters
1 7.36200684E+02 # M_1(Q)
2 1.32917480E+03 # M_2(Q)
3 3.27734692E+03 # M_3(Q)
21 2.71649850E+06 # MHd^2(Q)
22 -2.20397425E+06 # MHu^2(Q)
31 1.73146716E+03 # MeL(Q)
32 1.73146716E+03 # MmuL(Q)
33 1.72214929E+03 # MtauL(Q)
34 8.74915039E+02 # MeR(Q)
35 8.74915039E+02 # MmuR(Q)
36 8.62024658E+02 # MtauR(Q)
41 4.81839209E+03 # MqL1(Q)
42 4.81839209E+03 # MqL2(Q)
43 4.64446826E+03 # MqL3(Q)
44 4.56409326E+03 # MuR(Q)
45 4.56409326E+03 # McR(Q)
46 4.19017236E+03 # MtR(Q)
47 4.53597314E+03 # MdR(Q)
48 4.53597314E+03 # MsR(Q)
49 4.52017188E+03 # MbR(Q)
Block AU Q= 4.41147656E+03 #
1 1 -9.46278625E+02 # A_u
2 2 -9.46278625E+02 # A_c
3 3 -9.46278625E+02 # A_t
Block AD Q= 4.41147656E+03 #
1 1 -1.05144751E+03 # A_d
2 2 -1.05144751E+03 # A_s
3 3 -1.05144751E+03 # A_b
Block AE Q= 4.41147656E+03 #
1 1 -1.31876114E+02 # A_e
2 2 -1.31876114E+02 # A_mu
3 3 -1.31876114E+02 # A_tau
# ISAJET decay tables in SUSY Les Houches accord format
# Created by ISALHD. Last revision: C. Balazs, 2005 May 25
Block DCINFO # Program information
1 ISASUGRA from ISAJET # Spectrum Calculator
2 7.88 02-JAN-2018 11:01:14 # Version number
# PDG Width
DECAY 6 1.48575687E+00 # TP decays
# BR NDA ID1 ID2 ID3 ID4
3.33333313E-01 3 2 -1 5 # TP --> UP DB BT
3.33333313E-01 3 4 -3 5 # TP --> CH SB BT
1.11111097E-01 3 -11 12 5 # TP --> E+ NUE BT
1.11111097E-01 3 -13 14 5 # TP --> MU+ NUM BT
1.11111097E-01 3 -15 16 5 # TP --> TAU+ NUT BT
# PDG Width
DECAY 1000021 8.68305862E-02 # GLSS decays
# BR NDA ID1 ID2 ID3 ID4
4.62337658E-02 3 1000024 1 -2 # GLSS --> W1SS+ DN UB
4.62337658E-02 3 -1000024 2 -1 # GLSS --> W1SS- UP DB
4.62337658E-02 3 1000024 3 -4 # GLSS --> W1SS+ ST CB
4.62337658E-02 3 -1000024 4 -3 # GLSS --> W1SS- CH SB
5.38903959E-02 3 1000024 5 -6 # GLSS --> W1SS+ BT TB
5.38903959E-02 3 -1000024 6 -5 # GLSS --> W1SS- TP BB
1.50996190E-03 3 1000037 1 -2 # GLSS --> W2SS+ DN UB
1.50996190E-03 3 -1000037 2 -1 # GLSS --> W2SS- UP DB
1.50996190E-03 3 1000037 3 -4 # GLSS --> W2SS+ ST CB
1.50996190E-03 3 -1000037 4 -3 # GLSS --> W2SS- CH SB
1.04367949E-01 3 1000037 5 -6 # GLSS --> W2SS+ BT TB
1.04367949E-01 3 -1000037 6 -5 # GLSS --> W2SS- TP BB
1.29011560E-05 2 1000022 21 # GLSS --> Z1SS GL
3.13564092E-02 3 1000022 2 -2 # GLSS --> Z1SS UP UB
9.18567367E-03 3 1000022 1 -1 # GLSS --> Z1SS DN DB
9.18567367E-03 3 1000022 3 -3 # GLSS --> Z1SS ST SB
3.13563906E-02 3 1000022 4 -4 # GLSS --> Z1SS CH CB
9.73962154E-03 3 1000022 5 -5 # GLSS --> Z1SS BT BB
5.12548834E-02 3 1000022 6 -6 # GLSS --> Z1SS TP TB
8.66053379E-05 2 1000023 21 # GLSS --> Z2SS GL
2.31342353E-02 3 1000023 2 -2 # GLSS --> Z2SS UP UB
2.29462497E-02 3 1000023 1 -1 # GLSS --> Z2SS DN DB
2.29462497E-02 3 1000023 3 -3 # GLSS --> Z2SS ST SB
2.31342353E-02 3 1000023 4 -4 # GLSS --> Z2SS CH CB
2.89335642E-02 3 1000023 5 -5 # GLSS --> Z2SS BT BB
2.51190588E-02 3 1000023 6 -6 # GLSS --> Z2SS TP TB
1.33392459E-03 2 1000025 21 # GLSS --> Z3SS GL
2.32389334E-06 3 1000025 2 -2 # GLSS --> Z3SS UP UB
2.80408267E-06 3 1000025 1 -1 # GLSS --> Z3SS DN DB
2.80408267E-06 3 1000025 3 -3 # GLSS --> Z3SS ST SB
2.32389311E-06 3 1000025 4 -4 # GLSS --> Z3SS CH CB
3.98141053E-03 3 1000025 5 -5 # GLSS --> Z3SS BT BB
9.14951563E-02 3 1000025 6 -6 # GLSS --> Z3SS TP TB
1.26973237E-03 2 1000035 21 # GLSS --> Z4SS GL
7.81447918E-04 3 1000035 2 -2 # GLSS --> Z4SS UP UB
8.62020184E-04 3 1000035 1 -1 # GLSS --> Z4SS DN DB
8.62020184E-04 3 1000035 3 -3 # GLSS --> Z4SS ST SB
7.81447918E-04 3 1000035 4 -4 # GLSS --> Z4SS CH CB
4.77397442E-03 3 1000035 5 -5 # GLSS --> Z4SS BT BB
9.79650915E-02 3 1000035 6 -6 # GLSS --> Z4SS TP TB
5.75114283E-13 2 1000039 21 # GLSS --> GVSS GL
# PDG Width
DECAY 1000002 1.14308014E+02 # UPL decays
# BR NDA ID1 ID2 ID3 ID4
5.76027064E-03 2 1000022 2 # UPL --> Z1SS UP
1.49618506E-01 2 1000023 2 # UPL --> Z2SS UP
2.95784539E-05 2 1000025 2 # UPL --> Z3SS UP
6.62464788E-03 2 1000035 2 # UPL --> Z4SS UP
5.25529683E-01 2 1000021 2 # UPL --> GLSS UP
3.01277310E-01 2 1000024 1 # UPL --> W1SS+ DN
1.11600524E-02 2 1000037 1 # UPL --> W2SS+ DN
# PDG Width
DECAY 1000001 1.14323929E+02 # DNL decays
# BR NDA ID1 ID2 ID3 ID4
6.01694640E-03 2 1000022 1 # DNL --> Z1SS DN
1.48524866E-01 2 1000023 1 # DNL --> Z2SS DN
5.11833059E-05 2 1000025 1 # DNL --> Z3SS DN
7.41615752E-03 2 1000035 1 # DNL --> Z4SS DN
5.25817454E-01 2 1000021 1 # DNL --> GLSS DN
2.97126144E-01 2 -1000024 2 # DNL --> W1SS- UP
1.50472615E-02 2 -1000037 2 # DNL --> W2SS- UP
# PDG Width
DECAY 1000003 1.14323921E+02 # STL decays
# BR NDA ID1 ID2 ID3 ID4
6.01694686E-03 2 1000022 3 # STL --> Z1SS ST
1.48524880E-01 2 1000023 3 # STL --> Z2SS ST
5.11833096E-05 2 1000025 3 # STL --> Z3SS ST
7.41615798E-03 2 1000035 3 # STL --> Z4SS ST
5.25817454E-01 2 1000021 3 # STL --> GLSS ST
2.97126085E-01 2 -1000024 4 # STL --> W1SS- CH
1.50472606E-02 2 -1000037 4 # STL --> W2SS- CH
# PDG Width
DECAY 1000004 1.14307983E+02 # CHL decays
# BR NDA ID1 ID2 ID3 ID4
5.76027157E-03 2 1000022 4 # CHL --> Z1SS CH
1.49618536E-01 2 1000023 4 # CHL --> Z2SS CH
2.95784575E-05 2 1000025 4 # CHL --> Z3SS CH
6.62464881E-03 2 1000035 4 # CHL --> Z4SS CH
5.25529563E-01 2 1000021 4 # CHL --> GLSS CH
3.01277399E-01 2 1000024 3 # CHL --> W1SS+ ST
1.11600552E-02 2 1000037 3 # CHL --> W2SS+ ST
# PDG Width
DECAY 1000005 4.95794106E+01 # BT1 decays
# BR NDA ID1 ID2 ID3 ID4
5.10155894E-02 2 1000022 5 # BT1 --> Z1SS BT
6.63381396E-03 2 1000023 5 # BT1 --> Z2SS BT
2.43770368E-02 2 1000025 5 # BT1 --> Z3SS BT
2.02832837E-02 2 1000035 5 # BT1 --> Z4SS BT
8.39735508E-01 2 1000021 5 # BT1 --> GLSS BT
1.29529992E-02 2 -1000024 6 # BT1 --> W1SS- TP
4.49891165E-02 2 -1000037 6 # BT1 --> W2SS- TP
1.26570822E-05 2 -24 1000006 # BT1 --> W- TP1
# PDG Width
DECAY 1000006 1.09464081E+02 # TP1 decays
# BR NDA ID1 ID2 ID3 ID4
1.79395169E-01 2 1000021 6 # TP1 --> GLSS TP
8.32933933E-02 2 1000022 6 # TP1 --> Z1SS TP
9.64419264E-03 2 1000023 6 # TP1 --> Z2SS TP
1.84550896E-01 2 1000025 6 # TP1 --> Z3SS TP
1.74011007E-01 2 1000035 6 # TP1 --> Z4SS TP
1.80708487E-02 2 1000024 5 # TP1 --> W1SS+ BT
3.51034433E-01 2 1000037 5 # TP1 --> W2SS+ BT
# PDG Width
DECAY 2000002 5.46927567E+01 # UPR decays
# BR NDA ID1 ID2 ID3 ID4
1.86094329E-01 2 1000022 2 # UPR --> Z1SS UP
1.57847553E-05 2 1000023 2 # UPR --> Z2SS UP
2.27690271E-05 2 1000025 2 # UPR --> Z3SS UP
1.72508648E-04 2 1000035 2 # UPR --> Z4SS UP
8.13694596E-01 2 1000021 2 # UPR --> GLSS UP
# PDG Width
DECAY 2000001 4.53831749E+01 # DNR decays
# BR NDA ID1 ID2 ID3 ID4
5.57093807E-02 2 1000022 1 # DNR --> Z1SS DN
4.71783096E-06 2 1000023 1 # DNR --> Z2SS DN
6.79890718E-06 2 1000025 1 # DNR --> Z3SS DN
5.15089087E-05 2 1000035 1 # DNR --> Z4SS DN
9.44227636E-01 2 1000021 1 # DNR --> GLSS DN
# PDG Width
DECAY 2000003 4.53831749E+01 # STR decays
# BR NDA ID1 ID2 ID3 ID4
5.57093807E-02 2 1000022 3 # STR --> Z1SS ST
4.71783096E-06 2 1000023 3 # STR --> Z2SS ST
6.79890718E-06 2 1000025 3 # STR --> Z3SS ST
5.15089087E-05 2 1000035 3 # STR --> Z4SS ST
9.44227636E-01 2 1000021 3 # STR --> GLSS ST
# PDG Width
DECAY 2000004 5.46927414E+01 # CHR decays
# BR NDA ID1 ID2 ID3 ID4
1.86094388E-01 2 1000022 4 # CHR --> Z1SS CH
1.57847589E-05 2 1000023 4 # CHR --> Z2SS CH
2.27690271E-05 2 1000025 4 # CHR --> Z3SS CH
1.72508720E-04 2 1000035 4 # CHR --> Z4SS CH
8.13694537E-01 2 1000021 4 # CHR --> GLSS CH
# PDG Width
DECAY 2000005 1.50105927E+02 # BT2 decays
# BR NDA ID1 ID2 ID3 ID4
4.34915954E-03 2 1000022 5 # BT2 --> Z1SS BT
1.06184937E-01 2 1000023 5 # BT2 --> Z2SS BT
8.59377626E-03 2 1000025 5 # BT2 --> Z3SS BT
1.43277599E-02 2 1000035 5 # BT2 --> Z4SS BT
3.22379410E-01 2 1000021 5 # BT2 --> GLSS BT
2.21527189E-01 2 -1000024 6 # BT2 --> W1SS- TP
3.21123898E-01 2 -1000037 6 # BT2 --> W2SS- TP
1.48442271E-03 2 -24 1000006 # BT2 --> W- TP1
2.94006004E-05 2 23 1000005 # BT2 --> Z0 BT1
# PDG Width
DECAY 2000006 1.52893723E+02 # TP2 decays
# BR NDA ID1 ID2 ID3 ID4
3.22430015E-01 2 1000021 6 # TP2 --> GLSS TP
2.14427546E-01 2 1000024 5 # TP2 --> W1SS+ BT
2.59258728E-02 2 1000037 5 # TP2 --> W2SS+ BT
8.65389244E-04 2 23 1000006 # TP2 --> Z0 TP1
2.97915353E-03 2 25 1000006 # TP2 --> HL0 TP1
3.08037765E-04 2 24 1000005 # TP2 --> W+ BT1
4.20037098E-03 2 1000022 6 # TP2 --> Z1SS TP
1.11457132E-01 2 1000023 6 # TP2 --> Z2SS TP
1.58510298E-01 2 1000025 6 # TP2 --> Z3SS TP
1.58896253E-01 2 1000035 6 # TP2 --> Z4SS TP
# PDG Width
DECAY 1000011 4.63572931E+00 # EL- decays
# BR NDA ID1 ID2 ID3 ID4
3.25833857E-01 2 1000022 11 # EL- --> Z1SS E-
2.25667387E-01 2 1000023 11 # EL- --> Z2SS E-
3.20709046E-06 2 1000025 11 # EL- --> Z3SS E-
1.13378419E-03 2 1000035 11 # EL- --> Z4SS E-
4.44517344E-01 2 -1000024 12 # EL- --> W1SS- NUE
2.84443167E-03 2 -1000037 12 # EL- --> W2SS- NUE
2.90703587E-16 2 11 1000039 # EL- --> E- GVSS
# PDG Width
DECAY 1000013 4.63572931E+00 # MUL- decays
# BR NDA ID1 ID2 ID3 ID4
3.25833857E-01 2 1000022 13 # MUL- --> Z1SS MU-
2.25667387E-01 2 1000023 13 # MUL- --> Z2SS MU-
3.20708955E-06 2 1000025 13 # MUL- --> Z3SS MU-
1.13378372E-03 2 1000035 13 # MUL- --> Z4SS MU-
4.44517344E-01 2 -1000024 14 # MUL- --> W1SS- NUM
2.84443167E-03 2 -1000037 14 # MUL- --> W2SS- NUM
2.90703587E-16 2 13 1000039 # MUL- --> MU- GVSS
# PDG Width
DECAY 1000015 4.59101647E-01 # TAU1- decays
# BR NDA ID1 ID2 ID3 ID4
1.00000000E+00 2 1000022 15 # TAU1- --> Z1SS TAU-
9.40904381E-17 2 15 1000039 # TAU1- --> TAU- GVSS
# PDG Width
DECAY 1000012 4.50129700E+00 # NUEL decays
# BR NDA ID1 ID2 ID3 ID4
3.36635560E-01 2 1000022 12 # NUEL --> Z1SS NUE
2.17013910E-01 2 1000023 12 # NUEL --> Z2SS NUE
1.60228446E-05 2 1000025 12 # NUEL --> Z3SS NUE
1.37625961E-03 2 1000035 12 # NUEL --> Z4SS NUE
4.43137556E-01 2 1000024 11 # NUEL --> W1SS+ E-
1.82052923E-03 2 1000037 11 # NUEL --> W2SS+ E-
2.90267630E-16 2 12 1000039 # NUEL --> NUE GVSS
# PDG Width
DECAY 1000014 4.50129652E+00 # NUML decays
# BR NDA ID1 ID2 ID3 ID4
3.36635590E-01 2 1000022 14 # NUML --> Z1SS NUM
2.17013940E-01 2 1000023 14 # NUML --> Z2SS NUM
1.60228465E-05 2 1000025 14 # NUML --> Z3SS NUM
1.37625972E-03 2 1000035 14 # NUML --> Z4SS NUM
4.43137586E-01 2 1000024 13 # NUML --> W1SS+ MU-
1.82052853E-03 2 1000037 13 # NUML --> W2SS+ MU-
2.90267656E-16 2 14 1000039 # NUML --> NUM GVSS
# PDG Width
DECAY 1000016 4.71154881E+00 # NUTL decays
# BR NDA ID1 ID2 ID3 ID4
3.18354905E-01 2 1000022 16 # NUTL --> Z1SS NUT
1.98698238E-01 2 1000023 16 # NUTL --> Z2SS NUT
1.31497764E-05 2 1000025 16 # NUTL --> Z3SS NUT
1.10832800E-03 2 1000035 16 # NUTL --> Z4SS NUT
4.06784296E-01 2 1000024 15 # NUTL --> W1SS+ TAU-
3.64203425E-03 2 1000037 15 # NUTL --> W2SS+ TAU-
7.13991448E-02 2 24 1000015 # NUTL --> W+ TAU1-
2.69770570E-16 2 16 1000039 # NUTL --> NUT GVSS
# PDG Width
DECAY 2000011 4.47922766E-01 # ER- decays
# BR NDA ID1 ID2 ID3 ID4
1.00000000E+00 2 1000022 11 # ER- --> Z1SS E-
9.51986219E-17 2 11 1000039 # ER- --> E- GVSS
# PDG Width
DECAY 2000013 4.47922617E-01 # MUR- decays
# BR NDA ID1 ID2 ID3 ID4
1.00000000E+00 2 1000022 13 # MUR- --> Z1SS MU-
9.51986550E-17 2 13 1000039 # MUR- --> MU- GVSS
# PDG Width
DECAY 2000015 4.94278526E+00 # TAU2- decays
# BR NDA ID1 ID2 ID3 ID4
3.02915215E-01 2 1000022 15 # TAU2- --> Z1SS TAU-
2.03916073E-01 2 1000023 15 # TAU2- --> Z2SS TAU-
1.63616333E-03 2 1000025 15 # TAU2- --> Z3SS TAU-
2.25865375E-03 2 1000035 15 # TAU2- --> Z4SS TAU-
4.00540292E-01 2 -1000024 16 # TAU2- --> W1SS- NUT
2.38614902E-03 2 -1000037 16 # TAU2- --> W2SS- NUT
3.55129205E-02 2 23 1000015 # TAU2- --> Z0 TAU1-
5.08345105E-02 2 25 1000015 # TAU2- --> HL0 TAU1-
# PDG Width
DECAY 1000022 1.64491995E-17 # Z1SS decays
# BR NDA ID1 ID2 ID3 ID4
7.63475120E-01 2 1000039 22 # Z1SS --> GVSS GM
1.79258157E-02 3 1000039 11 -11 # Z1SS --> GVSS E- E+
2.18513936E-01 2 1000039 23 # Z1SS --> GVSS Z0
8.51374789E-05 2 1000039 25 # Z1SS --> GVSS HL0
# PDG Width
DECAY 1000023 6.47801831E-02 # Z2SS decays
# BR NDA ID1 ID2 ID3 ID4
1.51884387E-06 2 1000022 22 # Z2SS --> Z1SS GM
5.29290959E-02 2 1000022 23 # Z2SS --> Z1SS Z0
1.09971518E-06 3 1000022 2 -2 # Z2SS --> Z1SS UP UB
1.13848353E-06 3 1000022 1 -1 # Z2SS --> Z1SS DN DB
1.13848353E-06 3 1000022 3 -3 # Z2SS --> Z1SS ST SB
1.09971518E-06 3 1000022 4 -4 # Z2SS --> Z1SS CH CB
2.76562628E-06 3 1000022 5 -5 # Z2SS --> Z1SS BT BB
5.33444283E-04 3 1000022 11 -11 # Z2SS --> Z1SS E- E+
5.33444283E-04 3 1000022 13 -13 # Z2SS --> Z1SS MU- MU+
5.51571313E-04 3 1000022 15 -15 # Z2SS --> Z1SS TAU- TAU+
5.51783713E-04 3 1000022 12 -12 # Z2SS --> Z1SS NUE ANUE
5.51783713E-04 3 1000022 14 -14 # Z2SS --> Z1SS NUM ANUM
5.72720019E-04 3 1000022 16 -16 # Z2SS --> Z1SS NUT ANUT
7.72540212E-01 2 1000022 25 # Z2SS --> Z1SS HL0
1.81178725E-03 2 2000011 -11 # Z2SS --> ER- E+
1.81178725E-03 2 -2000011 11 # Z2SS --> ER+ E-
1.81178725E-03 2 2000013 -13 # Z2SS --> MUR- MU+
1.81178725E-03 2 -2000013 13 # Z2SS --> MUR+ MU-
8.19899961E-02 2 1000015 -15 # Z2SS --> TAU1- TAU+
8.19899961E-02 2 -1000015 15 # Z2SS --> TAU1+ TAU-
1.41490078E-15 2 1000039 22 # Z2SS --> GVSS GM
3.47193677E-17 3 1000039 11 -11 # Z2SS --> GVSS E- E+
4.46058477E-15 2 1000039 23 # Z2SS --> GVSS Z0
5.21462037E-17 2 1000039 25 # Z2SS --> GVSS HL0
# PDG Width
DECAY 1000025 4.55006266E+00 # Z3SS decays
# BR NDA ID1 ID2 ID3 ID4
1.31105821E-07 2 1000022 22 # Z3SS --> Z1SS GM
1.44819921E-07 2 1000023 22 # Z3SS --> Z2SS GM
2.46137574E-01 2 1000024 -24 # Z3SS --> W1SS+ W-
2.46137574E-01 2 -1000024 24 # Z3SS --> W1SS- W+
1.87547490E-01 2 1000022 23 # Z3SS --> Z1SS Z0
2.52311766E-01 2 1000023 23 # Z3SS --> Z2SS Z0
4.97181150E-11 3 1000022 2 -2 # Z3SS --> Z1SS UP UB
1.26815962E-11 3 1000022 1 -1 # Z3SS --> Z1SS DN DB
1.26815962E-11 3 1000022 3 -3 # Z3SS --> Z1SS ST SB
4.97180977E-11 3 1000022 4 -4 # Z3SS --> Z1SS CH CB
8.70761028E-07 3 1000022 5 -5 # Z3SS --> Z1SS BT BB
2.53470489E-09 3 1000022 11 -11 # Z3SS --> Z1SS E- E+
2.53470489E-09 3 1000022 13 -13 # Z3SS --> Z1SS MU- MU+
1.99515966E-06 3 1000022 15 -15 # Z3SS --> Z1SS TAU- TAU+
1.56548055E-08 3 1000022 12 -12 # Z3SS --> Z1SS NUE ANUE
1.56548055E-08 3 1000022 14 -14 # Z3SS --> Z1SS NUM ANUM
1.66999463E-08 3 1000022 16 -16 # Z3SS --> Z1SS NUT ANUT
5.08758021E-13 3 1000023 2 -2 # Z3SS --> Z2SS UP UB
8.73334391E-13 3 1000023 1 -1 # Z3SS --> Z2SS DN DB
8.73334391E-13 3 1000023 3 -3 # Z3SS --> Z2SS ST SB
5.08758021E-13 3 1000023 4 -4 # Z3SS --> Z2SS CH CB
8.05588130E-09 3 1000023 5 -5 # Z3SS --> Z2SS BT BB
7.19554624E-11 3 1000023 11 -11 # Z3SS --> Z2SS E- E+
7.19554624E-11 3 1000023 13 -13 # Z3SS --> Z2SS MU- MU+
1.02007419E-07 3 1000023 15 -15 # Z3SS --> Z2SS TAU- TAU+
4.45968401E-10 3 1000023 12 -12 # Z3SS --> Z2SS NUE ANUE
4.45968401E-10 3 1000023 14 -14 # Z3SS --> Z2SS NUM ANUM
4.94453700E-10 3 1000023 16 -16 # Z3SS --> Z2SS NUT ANUT
2.32765023E-02 2 1000022 25 # Z3SS --> Z1SS HL0
1.27826596E-03 2 1000023 25 # Z3SS --> Z2SS HL0
6.69943329E-05 2 2000011 -11 # Z3SS --> ER- E+
6.69943329E-05 2 -2000011 11 # Z3SS --> ER+ E-
6.69943329E-05 2 2000013 -13 # Z3SS --> MUR- MU+
6.69943329E-05 2 -2000013 13 # Z3SS --> MUR+ MU-
2.15199906E-02 2 1000015 -15 # Z3SS --> TAU1- TAU+
2.15199906E-02 2 -1000015 15 # Z3SS --> TAU1+ TAU-
1.55487589E-21 2 1000039 22 # Z3SS --> GVSS GM
3.85759104E-23 3 1000039 11 -11 # Z3SS --> GVSS E- E+
4.27834026E-17 2 1000039 23 # Z3SS --> GVSS Z0
5.52461358E-17 2 1000039 25 # Z3SS --> GVSS HL0
# PDG Width
DECAY 1000035 5.46985912E+00 # Z4SS decays
# BR NDA ID1 ID2 ID3 ID4
2.45756127E-08 2 1000022 22 # Z4SS --> Z1SS GM
3.05220986E-08 2 1000023 22 # Z4SS --> Z2SS GM
1.32293912E-10 2 1000025 22 # Z4SS --> Z3SS GM
2.64156073E-01 2 1000024 -24 # Z4SS --> W1SS+ W-
2.64156073E-01 2 -1000024 24 # Z4SS --> W1SS- W+
1.89151037E-02 2 1000022 23 # Z4SS --> Z1SS Z0
1.62043236E-03 2 1000023 23 # Z4SS --> Z2SS Z0
3.47367934E-09 3 1000022 2 -2 # Z4SS --> Z1SS UP UB
3.23292926E-09 3 1000022 1 -1 # Z4SS --> Z1SS DN DB
3.23292926E-09 3 1000022 3 -3 # Z4SS --> Z1SS ST SB
3.47367890E-09 3 1000022 4 -4 # Z4SS --> Z1SS CH CB
6.89211788E-07 3 1000022 5 -5 # Z4SS --> Z1SS BT BB
1.91832100E-06 3 1000022 11 -11 # Z4SS --> Z1SS E- E+
1.91832100E-06 3 1000022 13 -13 # Z4SS --> Z1SS MU- MU+
3.86848205E-06 3 1000022 15 -15 # Z4SS --> Z1SS TAU- TAU+
2.90643720E-06 3 1000022 12 -12 # Z4SS --> Z1SS NUE ANUE
2.90643720E-06 3 1000022 14 -14 # Z4SS --> Z1SS NUM ANUM
3.07654636E-06 3 1000022 16 -16 # Z4SS --> Z1SS NUT ANUT
3.57983559E-10 3 1000023 2 -2 # Z4SS --> Z2SS UP UB
3.97563316E-10 3 1000023 1 -1 # Z4SS --> Z2SS DN DB
3.97563316E-10 3 1000023 3 -3 # Z4SS --> Z2SS ST SB
3.57983559E-10 3 1000023 4 -4 # Z4SS --> Z2SS CH CB
7.47458184E-09 3 1000023 5 -5 # Z4SS --> Z2SS BT BB
9.17663456E-08 3 1000023 11 -11 # Z4SS --> Z2SS E- E+
9.17663456E-08 3 1000023 13 -13 # Z4SS --> Z2SS MU- MU+
2.14685855E-07 3 1000023 15 -15 # Z4SS --> Z2SS TAU- TAU+
1.39999415E-07 3 1000023 12 -12 # Z4SS --> Z2SS NUE ANUE
1.39999415E-07 3 1000023 14 -14 # Z4SS --> Z2SS NUM ANUM
1.54462825E-07 3 1000023 16 -16 # Z4SS --> Z2SS NUT ANUT
5.98884276E-09 3 1000025 2 -2 # Z4SS --> Z3SS UP UB
7.72269182E-09 3 1000025 1 -1 # Z4SS --> Z3SS DN DB
7.72269182E-09 3 1000025 3 -3 # Z4SS --> Z3SS ST SB
5.98884276E-09 3 1000025 4 -4 # Z4SS --> Z3SS CH CB
6.67879807E-10 3 1000025 5 -5 # Z4SS --> Z3SS BT BB
1.75199422E-09 3 1000025 11 -11 # Z4SS --> Z3SS E- E+
1.75199422E-09 3 1000025 13 -13 # Z4SS --> Z3SS MU- MU+
1.35863532E-09 3 1000025 15 -15 # Z4SS --> Z3SS TAU- TAU+
3.48505869E-09 3 1000025 12 -12 # Z4SS --> Z3SS NUE ANUE
3.48505869E-09 3 1000025 14 -14 # Z4SS --> Z3SS NUM ANUM
3.48499962E-09 3 1000025 16 -16 # Z4SS --> Z3SS NUT ANUT
1.66654408E-01 2 1000022 25 # Z4SS --> Z1SS HL0
2.48504817E-01 2 1000023 25 # Z4SS --> Z2SS HL0
4.32477711E-04 2 2000011 -11 # Z4SS --> ER- E+
4.32477711E-04 2 -2000011 11 # Z4SS --> ER+ E-
4.32477711E-04 2 2000013 -13 # Z4SS --> MUR- MU+
4.32477711E-04 2 -2000013 13 # Z4SS --> MUR+ MU-
1.71224866E-02 2 1000015 -15 # Z4SS --> TAU1- TAU+
1.71224866E-02 2 -1000015 15 # Z4SS --> TAU1+ TAU-
9.92908420E-19 2 1000039 22 # Z4SS --> GVSS GM
2.46461065E-20 3 1000039 11 -11 # Z4SS --> GVSS E- E+
5.34557067E-17 2 1000039 23 # Z4SS --> GVSS Z0
3.49974492E-17 2 1000039 25 # Z4SS --> GVSS HL0
# PDG Width
DECAY 1000024 5.37228398E-02 # W1SS+ decays
# BR NDA ID1 ID2 ID3 ID4
2.70995679E-06 3 1000022 2 -1 # W1SS+ --> Z1SS UP DB
2.70995679E-06 3 1000022 4 -3 # W1SS+ --> Z1SS CH SB
1.31557952E-03 3 1000022 -11 12 # W1SS+ --> Z1SS E+ NUE
1.31557952E-03 3 1000022 -13 14 # W1SS+ --> Z1SS MU+ NUM
1.36305287E-03 3 1000022 -15 16 # W1SS+ --> Z1SS TAU+ NUT
8.12415600E-01 2 1000022 24 # W1SS+ --> Z1SS W+
8.53304796E-18 3 1000023 -11 12 # W1SS+ --> Z2SS E+ NUE
8.53304796E-18 3 1000023 -13 14 # W1SS+ --> Z2SS MU+ NUM
1.83584750E-01 2 -1000015 16 # W1SS+ --> TAU1+ NUT
# PDG Width
DECAY 1000037 4.87808514E+00 # W2SS+ decays
# BR NDA ID1 ID2 ID3 ID4
6.21149754E-09 3 1000022 2 -1 # W2SS+ --> Z1SS UP DB
6.21149754E-09 3 1000022 4 -3 # W2SS+ --> Z1SS CH SB
5.00140595E-06 3 1000022 -11 12 # W2SS+ --> Z1SS E+ NUE
5.00140595E-06 3 1000022 -13 14 # W2SS+ --> Z1SS MU+ NUM
7.58720262E-06 3 1000022 -15 16 # W2SS+ --> Z1SS TAU+ NUT
1.83986947E-01 2 1000022 24 # W2SS+ --> Z1SS W+
2.75353351E-10 3 1000023 2 -1 # W2SS+ --> Z2SS UP DB
2.75353351E-10 3 1000023 4 -3 # W2SS+ --> Z2SS CH SB
9.38854967E-08 3 1000023 -11 12 # W2SS+ --> Z2SS E+ NUE
9.38854967E-08 3 1000023 -13 14 # W2SS+ --> Z2SS MU+ NUM
2.38884525E-07 3 1000023 -15 16 # W2SS+ --> Z2SS TAU+ NUT
2.39771843E-01 2 1000023 24 # W2SS+ --> Z2SS W+
3.78574860E-08 3 1000025 2 -1 # W2SS+ --> Z3SS UP DB
3.78574860E-08 3 1000025 4 -3 # W2SS+ --> Z3SS CH SB
1.26186341E-08 3 1000025 -11 12 # W2SS+ --> Z3SS E+ NUE
1.26186341E-08 3 1000025 -13 14 # W2SS+ --> Z3SS MU+ NUM
1.26187842E-08 3 1000025 -15 16 # W2SS+ --> Z3SS TAU+ NUT
2.97163336E-13 3 1000035 2 -1 # W2SS+ --> Z4SS UP DB
9.92110379E-14 3 1000035 -11 12 # W2SS+ --> Z4SS E+ NUE
9.92110379E-14 3 1000035 -13 14 # W2SS+ --> Z4SS MU+ NUM
3.77806313E-02 2 -1000015 16 # W2SS+ --> TAU1+ NUT
2.50494421E-01 2 1000024 23 # W2SS+ --> W1SS+ Z0
4.64719235E-10 3 1000024 1 -1 # W2SS+ --> W1SS+ DN DB
4.64719235E-10 3 1000024 3 -3 # W2SS+ --> W1SS+ ST SB
6.17546625E-10 3 1000024 2 -2 # W2SS+ --> W1SS+ UP UB
6.17546625E-10 3 1000024 4 -4 # W2SS+ --> W1SS+ CH CB
1.84072505E-07 3 1000024 12 -12 # W2SS+ --> W1SS+ NUE ANUE
1.84072505E-07 3 1000024 14 -14 # W2SS+ --> W1SS+ NUM ANUM
1.54359057E-07 3 1000024 11 -11 # W2SS+ --> W1SS+ E- E+
1.54359057E-07 3 1000024 13 -13 # W2SS+ --> W1SS+ MU- MU+
1.70915968E-07 3 1000024 15 -15 # W2SS+ --> W1SS+ TAU- TAU+
2.87947237E-01 2 1000024 25 # W2SS+ --> W1SS+ HL0
# PDG Width
DECAY 25 3.38289002E-03 # HL0 decays
# BR NDA ID1 ID2 ID3 ID4
6.12632656E-09 2 11 -11 # HL0 --> E- E+
2.58663378E-04 2 13 -13 # HL0 --> MU- MU+
7.39895925E-02 2 15 -15 # HL0 --> TAU- TAU+
7.68337031E-06 2 1 -1 # HL0 --> DN DB
3.10446718E-03 2 3 -3 # HL0 --> ST SB
6.64919317E-01 2 5 -5 # HL0 --> BT BB
2.43838622E-06 2 2 -2 # HL0 --> UP UB
4.55486365E-02 2 4 -4 # HL0 --> CH CB
2.68818764E-03 2 22 22 # HL0 --> GM GM
5.55850491E-02 2 21 21 # HL0 --> GL GL
7.78724020E-03 3 24 11 -12 # HL0 --> W+ E- ANUE
7.78724020E-03 3 24 13 -14 # HL0 --> W+ MU- ANUM
7.78724020E-03 3 24 15 -16 # HL0 --> W+ TAU- ANUT
2.33617220E-02 3 24 -2 1 # HL0 --> W+ UB DN
2.33617220E-02 3 24 -4 3 # HL0 --> W+ CB ST
7.78724020E-03 3 -24 -11 12 # HL0 --> W- E+ NUE
7.78724020E-03 3 -24 -13 14 # HL0 --> W- MU+ NUM
7.78724020E-03 3 -24 -15 16 # HL0 --> W- TAU+ NUT
2.33617220E-02 3 -24 2 -1 # HL0 --> W- UP DB
2.33617220E-02 3 -24 4 -3 # HL0 --> W- CH SB
9.38703422E-04 3 23 12 -12 # HL0 --> Z0 NUE ANUE
9.38703422E-04 3 23 14 -14 # HL0 --> Z0 NUM ANUM
9.38703422E-04 3 23 16 -16 # HL0 --> Z0 NUT ANUT
4.72440035E-04 3 23 11 -11 # HL0 --> Z0 E- E+
4.72440035E-04 3 23 13 -13 # HL0 --> Z0 MU- MU+
4.72440035E-04 3 23 15 -15 # HL0 --> Z0 TAU- TAU+
1.61853945E-03 3 23 2 -2 # HL0 --> Z0 UP UB
1.61853945E-03 3 23 4 -4 # HL0 --> Z0 CH CB
2.08507758E-03 3 23 1 -1 # HL0 --> Z0 DN DB
2.08507758E-03 3 23 3 -3 # HL0 --> Z0 ST SB
2.08507758E-03 3 23 5 -5 # HL0 --> Z0 BT BB
# PDG Width
DECAY 35 7.69684315E+00 # HH0 decays
# BR NDA ID1 ID2 ID3 ID4
1.16233236E-08 2 11 -11 # HH0 --> E- E+
4.90757695E-04 2 13 -13 # HH0 --> MU- MU+
1.40560046E-01 2 15 -15 # HH0 --> TAU- TAU+
1.41470109E-05 2 1 -1 # HH0 --> DN DB
5.71610872E-03 2 3 -3 # HH0 --> ST SB
7.80803204E-01 2 5 -5 # HH0 --> BT BB
9.01491173E-11 2 2 -2 # HH0 --> UP UB
1.15403418E-06 2 4 -4 # HH0 --> CH CB
5.98319769E-02 2 6 -6 # HH0 --> TP TB
8.35925889E-08 2 22 22 # HH0 --> GM GM
1.09686289E-05 2 21 21 # HH0 --> GL GL
3.98430493E-05 2 24 -24 # HH0 --> W+ W-
2.04096523E-05 2 23 23 # HH0 --> Z0 Z0
3.94009112E-04 2 1000022 1000022 # HH0 --> Z1SS Z1SS
1.52045733E-03 2 1000022 1000023 # HH0 --> Z1SS Z2SS
1.04495510E-02 2 1000022 1000025 # HH0 --> Z1SS Z3SS
1.38539312E-04 2 25 25 # HH0 --> HL0 HL0
3.24044777E-06 2 2000011 -2000011 # HH0 --> ER- ER+
3.23632548E-06 2 2000013 -2000013 # HH0 --> MUR- MUR+
2.38183475E-06 2 1000015 -1000015 # HH0 --> TAU1- TAU1+
# PDG Width
DECAY 36 7.62508869E+00 # HA0 decays
# BR NDA ID1 ID2 ID3 ID4
1.16562608E-08 2 11 -11 # HA0 --> E- E+
4.92148334E-04 2 13 -13 # HA0 --> MU- MU+
1.40958667E-01 2 15 -15 # HA0 --> TAU- TAU+
1.41877599E-05 2 1 -1 # HA0 --> DN DB
5.73257264E-03 2 3 -3 # HA0 --> ST SB
7.83057988E-01 2 5 -5 # HA0 --> BT BB
8.96717769E-11 2 2 -2 # HA0 --> UP UB
1.14874319E-06 2 4 -4 # HA0 --> CH CB
6.05726093E-02 2 6 -6 # HA0 --> TP TB
2.78544547E-07 2 22 22 # HA0 --> GM GM
3.47714595E-05 2 21 21 # HA0 --> GL GL
7.23920704E-04 2 1000022 1000022 # HA0 --> Z1SS Z1SS
8.37204233E-03 2 1000022 1000023 # HA0 --> Z1SS Z2SS
3.97260228E-05 2 25 23 # HA0 --> HL0 Z0
# PDG Width
DECAY 37 7.12928963E+00 # H+ decays
# BR NDA ID1 ID2 ID3 ID4
1.25564288E-08 2 12 -11 # H+ --> NUE E+
5.30155085E-04 2 14 -13 # H+ --> NUM MU+
1.51844352E-01 2 16 -15 # H+ --> NUT TAU+
1.41390019E-05 2 2 -1 # H+ --> UP DB
5.71397599E-03 2 4 -3 # H+ --> CH SB
8.31536174E-01 2 6 -5 # H+ --> TP BB
1.03183016E-02 2 1000024 1000022 # H+ --> W1SS+ Z1SS
4.28967905E-05 2 25 24 # H+ --> HL0 W+
'''
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP5Settings_cfi import *
from Configuration.Generator.PSweightsPythia.PythiaPSweightsSettings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
pythiaHepMCVerbosity = cms.untracked.bool(False),
pythiaPylistVerbosity = cms.untracked.int32(1),
filterEfficiency = cms.untracked.double(1.0),
SLHATableForPythia8 = cms.string('%s' % SLHA_TABLE),
PythiaParameters = cms.PSet(
pythia8CommonSettingsBlock,
pythia8CP5SettingsBlock,
pythia8PSweightsSettingsBlock,
processParameters = cms.vstring(
'ParticleDecays:limitTau0 = off',
'ParticleDecays:tau0Max = 10000000',
'SUSY:all on',
),
parameterSets = cms.vstring('pythia8CommonSettings',
'pythia8CP5Settings',
'pythia8PSweightsSettings',
'processParameters')
)
)
ProductionFilterSequence = cms.Sequence(generator)
|
[
"zzhang2@caltech.edu"
] |
zzhang2@caltech.edu
|
28bf6dde8bb5f2f4f836584daa7697bbbb60659a
|
5679731cee36c537615d285ed72810f4c6b17380
|
/492_ConstructTheRectangle.py
|
864fd723b3b57af7cb42b67c170b150f6a55bac9
|
[] |
no_license
|
manofmountain/LeetCode
|
6b76105190a9b62df65a7b56b6def4120498b9fa
|
718f688b3d316e8c10ef680d9c21ecd518d062f8
|
refs/heads/master
| 2021-01-12T03:41:48.318116
| 2017-07-18T12:35:58
| 2017-07-18T12:35:58
| 78,252,164
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 412
|
py
|
import math
class Solution(object):
def constructRectangle(self, area):
"""
:type area: int
:rtype: List[int]
"""
width, res = int(math.sqrt(area)), list()
while width != 0:
if area % width == 0:
res.append(area / width)
res.append(width)
break
width -= 1
return res
|
[
"noreply@github.com"
] |
manofmountain.noreply@github.com
|
0a2e966187b89beb9f8331300b18f5e41d660407
|
69c882c678103b182988fb60d3e898d569980f1c
|
/Day 6/day6prog14.py
|
6b4f901785e52ff819f090084f7e227d01a62b68
|
[] |
no_license
|
gittygupta/stcet-python
|
44be9d91cdd6215879d9f04497214819228821be
|
e77456172746ee76b6e2a901ddb0c3dbe457f82a
|
refs/heads/master
| 2022-03-05T11:37:08.720226
| 2019-12-01T00:56:03
| 2019-12-01T00:56:03
| null | 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 202
|
py
|
def fact(x):
pro = 1
for i in range(1, x+1):
pro *= i
return pro
def perm(n, r):
return (fact(n)/(fact(n - r) * fact(r)))
n = input("n = ")
r = input("r = ")
print(perm(n, r))
|
[
"noreply@github.com"
] |
gittygupta.noreply@github.com
|
eb5d7aba99ce10ed488f5be198476d799554acb2
|
f4434c85e3814b6347f8f8099c081ed4af5678a5
|
/sdk/rdbms/azure-mgmt-rdbms/azure/mgmt/rdbms/mariadb/aio/operations/_private_link_resources_operations.py
|
95f8c439d59dff4da2f06f3595ae038121fa0f85
|
[
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] |
permissive
|
yunhaoling/azure-sdk-for-python
|
5da12a174a37672ac6ed8e3c1f863cb77010a506
|
c4eb0ca1aadb76ad892114230473034830116362
|
refs/heads/master
| 2022-06-11T01:17:39.636461
| 2020-12-08T17:42:08
| 2020-12-08T17:42:08
| 177,675,796
| 1
| 0
|
MIT
| 2020-03-31T20:35:17
| 2019-03-25T22:43:40
|
Python
|
UTF-8
|
Python
| false
| false
| 8,751
|
py
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar
import warnings
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transport import AsyncHttpResponse, HttpRequest
from azure.mgmt.core.exceptions import ARMErrorFormat
from ... import models as _models
T = TypeVar('T')
ClsType = Optional[Callable[[PipelineResponse[HttpRequest, AsyncHttpResponse], T, Dict[str, Any]], Any]]
class PrivateLinkResourcesOperations:
"""PrivateLinkResourcesOperations async operations.
You should not instantiate this class directly. Instead, you should create a Client instance that
instantiates it for you and attaches it as an attribute.
:ivar models: Alias to model classes used in this operation group.
:type models: ~maria_db_management_client.models
:param client: Client for service requests.
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
"""
models = _models
def __init__(self, client, config, serializer, deserializer) -> None:
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self._config = config
def list_by_server(
self,
resource_group_name: str,
server_name: str,
**kwargs
) -> AsyncIterable["_models.PrivateLinkResourceListResult"]:
"""Gets the private link resources for MariaDB server.
:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param server_name: The name of the server.
:type server_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: An iterator like instance of either PrivateLinkResourceListResult or the result of cls(response)
:rtype: ~azure.core.async_paging.AsyncItemPaged[~maria_db_management_client.models.PrivateLinkResourceListResult]
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResourceListResult"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-06-01"
accept = "application/json"
def prepare_request(next_link=None):
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
if not next_link:
# Construct URL
url = self.list_by_server.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
request = self._client.get(url, query_parameters, header_parameters)
else:
url = next_link
query_parameters = {} # type: Dict[str, Any]
request = self._client.get(url, query_parameters, header_parameters)
return request
async def extract_data(pipeline_response):
deserialized = self._deserialize('PrivateLinkResourceListResult', pipeline_response)
list_of_elem = deserialized.value
if cls:
list_of_elem = cls(list_of_elem)
return deserialized.next_link or None, AsyncList(list_of_elem)
async def get_next(next_link=None):
request = prepare_request(next_link)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
return pipeline_response
return AsyncItemPaged(
get_next, extract_data
)
list_by_server.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/privateLinkResources'} # type: ignore
async def get(
self,
resource_group_name: str,
server_name: str,
group_name: str,
**kwargs
) -> "_models.PrivateLinkResource":
"""Gets a private link resource for MariaDB server.
:param resource_group_name: The name of the resource group. The name is case insensitive.
:type resource_group_name: str
:param server_name: The name of the server.
:type server_name: str
:param group_name: The name of the private link resource.
:type group_name: str
:keyword callable cls: A custom type or function that will be passed the direct response
:return: PrivateLinkResource, or the result of cls(response)
:rtype: ~maria_db_management_client.models.PrivateLinkResource
:raises: ~azure.core.exceptions.HttpResponseError
"""
cls = kwargs.pop('cls', None) # type: ClsType["_models.PrivateLinkResource"]
error_map = {
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
}
error_map.update(kwargs.pop('error_map', {}))
api_version = "2018-06-01"
accept = "application/json"
# Construct URL
url = self.get.metadata['url'] # type: ignore
path_format_arguments = {
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'),
'serverName': self._serialize.url("server_name", server_name, 'str'),
'groupName': self._serialize.url("group_name", group_name, 'str'),
'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str', min_length=1),
}
url = self._client.format_url(url, **path_format_arguments)
# Construct parameters
query_parameters = {} # type: Dict[str, Any]
query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
# Construct headers
header_parameters = {} # type: Dict[str, Any]
header_parameters['Accept'] = self._serialize.header("accept", accept, 'str')
request = self._client.get(url, query_parameters, header_parameters)
pipeline_response = await self._client._pipeline.run(request, stream=False, **kwargs)
response = pipeline_response.http_response
if response.status_code not in [200]:
map_error(status_code=response.status_code, response=response, error_map=error_map)
raise HttpResponseError(response=response, error_format=ARMErrorFormat)
deserialized = self._deserialize('PrivateLinkResource', pipeline_response)
if cls:
return cls(pipeline_response, deserialized, {})
return deserialized
get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMariaDB/servers/{serverName}/privateLinkResources/{groupName}'} # type: ignore
|
[
"noreply@github.com"
] |
yunhaoling.noreply@github.com
|
931e52355a9877de357fa0e0b6a602e2de02d64e
|
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
|
/alipay/aop/api/response/AlipayBossFncInvoiceBatchqueryResponse.py
|
cfe0f6e638e1c8ae763e1e65af4347042e876024
|
[
"Apache-2.0"
] |
permissive
|
alipay/alipay-sdk-python-all
|
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
|
1fad300587c9e7e099747305ba9077d4cd7afde9
|
refs/heads/master
| 2023-08-27T21:35:01.778771
| 2023-08-23T07:12:26
| 2023-08-23T07:12:26
| 133,338,689
| 247
| 70
|
Apache-2.0
| 2023-04-25T04:54:02
| 2018-05-14T09:40:54
|
Python
|
UTF-8
|
Python
| false
| false
| 2,739
|
py
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.MultiCurrencyMoneyOpenApi import MultiCurrencyMoneyOpenApi
from alipay.aop.api.domain.ArInvoiceOpenApiResponse import ArInvoiceOpenApiResponse
class AlipayBossFncInvoiceBatchqueryResponse(AlipayResponse):
def __init__(self):
super(AlipayBossFncInvoiceBatchqueryResponse, self).__init__()
self._amt = None
self._current_page = None
self._items_page = None
self._result_set = None
self._total_items = None
self._total_pages = None
@property
def amt(self):
return self._amt
@amt.setter
def amt(self, value):
if isinstance(value, MultiCurrencyMoneyOpenApi):
self._amt = value
else:
self._amt = MultiCurrencyMoneyOpenApi.from_alipay_dict(value)
@property
def current_page(self):
return self._current_page
@current_page.setter
def current_page(self, value):
self._current_page = value
@property
def items_page(self):
return self._items_page
@items_page.setter
def items_page(self, value):
self._items_page = value
@property
def result_set(self):
return self._result_set
@result_set.setter
def result_set(self, value):
if isinstance(value, list):
self._result_set = list()
for i in value:
if isinstance(i, ArInvoiceOpenApiResponse):
self._result_set.append(i)
else:
self._result_set.append(ArInvoiceOpenApiResponse.from_alipay_dict(i))
@property
def total_items(self):
return self._total_items
@total_items.setter
def total_items(self, value):
self._total_items = value
@property
def total_pages(self):
return self._total_pages
@total_pages.setter
def total_pages(self, value):
self._total_pages = value
def parse_response_content(self, response_content):
response = super(AlipayBossFncInvoiceBatchqueryResponse, self).parse_response_content(response_content)
if 'amt' in response:
self.amt = response['amt']
if 'current_page' in response:
self.current_page = response['current_page']
if 'items_page' in response:
self.items_page = response['items_page']
if 'result_set' in response:
self.result_set = response['result_set']
if 'total_items' in response:
self.total_items = response['total_items']
if 'total_pages' in response:
self.total_pages = response['total_pages']
|
[
"liuqun.lq@alibaba-inc.com"
] |
liuqun.lq@alibaba-inc.com
|
1e47736427d5b29ddbed8c696b895ae76e78410d
|
5da5473ff3026165a47f98744bac82903cf008e0
|
/packages/google-cloud-vm-migration/samples/generated_samples/vmmigration_v1_generated_vm_migration_finalize_migration_async.py
|
9725b31782e691f5713fa20467e00eb66fe54fa1
|
[
"Apache-2.0"
] |
permissive
|
googleapis/google-cloud-python
|
ed61a5f03a476ab6053870f4da7bc5534e25558b
|
93c4e63408c65129422f65217325f4e7d41f7edf
|
refs/heads/main
| 2023-09-04T09:09:07.852632
| 2023-08-31T22:49:26
| 2023-08-31T22:49:26
| 16,316,451
| 2,792
| 917
|
Apache-2.0
| 2023-09-14T21:45:18
| 2014-01-28T15:51:47
|
Python
|
UTF-8
|
Python
| false
| false
| 1,993
|
py
|
# -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Generated code. DO NOT EDIT!
#
# Snippet for FinalizeMigration
# NOTE: This snippet has been automatically generated for illustrative purposes only.
# It may require modifications to work in your environment.
# To install the latest published package dependency, execute the following:
# python3 -m pip install google-cloud-vm-migration
# [START vmmigration_v1_generated_VmMigration_FinalizeMigration_async]
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
# client as shown in:
# https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.cloud import vmmigration_v1
async def sample_finalize_migration():
# Create a client
client = vmmigration_v1.VmMigrationAsyncClient()
# Initialize request argument(s)
request = vmmigration_v1.FinalizeMigrationRequest(
migrating_vm="migrating_vm_value",
)
# Make the request
operation = client.finalize_migration(request=request)
print("Waiting for operation to complete...")
response = (await operation).result()
# Handle the response
print(response)
# [END vmmigration_v1_generated_VmMigration_FinalizeMigration_async]
|
[
"noreply@github.com"
] |
googleapis.noreply@github.com
|
c586bd5693c7518eb1d938ce2ad960a01f98d250
|
f95e73867e4383784d6fdd6a1c9fe06cffbfd019
|
/ProjectEuler/p004_Largest_palindrome_product.py
|
5d8c9510aee2afac0a0864fbbfc27608ef991779
|
[] |
no_license
|
linxiaohui/CodeLibrary
|
da03a9ed631d1d44b098ae393b4bd9e378ab38d3
|
96a5d22a8c442c4aec8a064ce383aba8a7559b2c
|
refs/heads/master
| 2021-01-18T03:42:39.536939
| 2018-12-11T06:47:15
| 2018-12-11T06:47:15
| 85,795,767
| 3
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 342
|
py
|
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import timeit
def PE004():
M=0
for i in range(100,10000):
for j in range(i+1,1000):
k=i*j
#if k==int(str(k)[::-1]) and k>M :
if k>M and k==int(str(k)[::-1]) :
M=k
print M
print timeit.timeit(PE004, number=1)
|
[
"llinxiaohui@126.com"
] |
llinxiaohui@126.com
|
6e3669121fdd67488f4e7ec58aa121cf467f15dc
|
f8ffac4fa0dbe27316fa443a16df8a3f1f5cff05
|
/Regex/Matching_Anything_But_New_Line.py
|
9d1b4802c8910f717e3f7aafecd4dfcb1cc4b4c3
|
[] |
no_license
|
ankitniranjan/HackerrankSolutions
|
e27073f9837787a8af7a0157d95612028c07c974
|
e110c72d3b137cf4c5cef6e91f58a17452c54c08
|
refs/heads/master
| 2023-03-16T19:06:17.805307
| 2021-03-09T16:28:39
| 2021-03-09T16:28:39
| 292,994,949
| 0
| 0
| null | null | null | null |
UTF-8
|
Python
| false
| false
| 411
|
py
|
# Your task is to write a regular expression that matches only and exactly strings of form: abc.def.ghi.jkx, where each variable a,b,c,d,e,f,g,h,i,j,k,x can be
# any single character except the newline.
regex_pattern = r"^.{3}\..{3}\..{3}\..{3}$" # Do not delete 'r'.
import re
import sys
test_string = input()
match = re.match(regex_pattern, test_string) is not None
print(str(match).lower())
|
[
"noreply@github.com"
] |
ankitniranjan.noreply@github.com
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.