while 1: try: a,b=map(int,input().split()) c,d=map(int,input().split()) e=a*d-b*c if e==0: print('cheat!') else: print('%.5f %.5f'%(d/e,-b/e)) print('%.5f %.5f'%(-c/e,a/e)) except: break