Strong weighted and restricted weak weighted estimates of the square function