18 lines
244 B
Python
18 lines
244 B
Python
import math
|
|
import sys
|
|
|
|
input = sys.stdin.readline
|
|
|
|
A, B = map(int, input().split())
|
|
|
|
def GCD(a, b):
|
|
if b==0:
|
|
return a
|
|
else:
|
|
return GCD(b, a%b)
|
|
|
|
result = GCD(A, B)
|
|
|
|
while result > 0 :
|
|
print(1, end='')
|
|
result -= 1 |