f = float(input()) c = (f-32)*5/9 k = c + 273.15 print("%g %g" % (c, k), sep=' ')