#No.1342 Calculation import math a = (47 * 43) // math.gcd(47, 43) b = (a // 47 * 19) + (a // 43 * 28) print(int(b / 27))