#!/bin/python3 import sys from math import sqrt max_time = int(input().split(":")[1].replace(' ', '')) record_dist = int(input().split(":")[1].replace(' ', '')) lower_bound = ( max_time - sqrt( max_time ** 2 - 4 * record_dist ) ) / 2 upper_bound = ( max_time + sqrt( max_time ** 2 - 4 * record_dist ) ) / 2 possible_distances = round(abs(lower_bound - upper_bound)) print(f">> {possible_distances}")