Move both files to your phone.
Turn your Galaxy S3 off. Press and hold at the same time Power + Home + Volume Up buttons. Release them when the Galaxy S3 boot animation shows up.
In Recovery, wipe data, cache and dalvik cache.
Install NamelessROM and then install 5.0 Gapps.
Reboot your phone.