X,Y=map(int,input().split()) if X>Y: X,Y=Y,X XP=1 YP=1 x=X y=Y for i in range(2,10**6): while x%i==0 and x!=i: XP=0 x//=i while y%i==0 and y!=i: YP=0 y//=i if X==1 and Y==1: print("Second") elif X==1: if Y%2==0: print("Second") else: print("First") elif X==2 or Y==2: print("Second") elif XP==1 and YP==1: print("Second") else: if X%2==Y%2: print("Second") else: print("First")