print int(raw_input()) - 2, "2"