import sys readline=sys.stdin.readline Y,X=map(int,readline().split()) primeX,primeY=[],[] for x in range(2,X): if x**2>X: continue if X%x==0: primeX.append(x) for y in range(2,Y): if y**2>Y: continue if Y%y==0: primeY.append(y) if not primeX and not primeY: ans="Second" else: if (X,Y)==(1,1): ans="Second" elif 1 in (X,Y): if (X+Y)%2: ans="Second" else: ans="First" else: if (X+Y)%2: ans="First" else: ans="Second" print(ans)