#include <iostream>
#include <string>
using namespace std;
int main() {
int n;
string s, s1;
cin>>n;
while(n != 0){
if (n % 2 == 0) s += "0";
else s += "1";
n = n / 2;
}
for (int i = s.size() - 1; i >= 0; i--) {
if (s[i] == '1') s1 += "SX";
else s1 += "S";
}
s1.erase(0, 2);
cout<<s1;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CglpbnQgbjsKCXN0cmluZyBzLCBzMTsKCWNpbj4+bjsKCXdoaWxlKG4gIT0gMCl7CgkJaWYgKG4gJSAyID09IDApIHMgKz0gIjAiOwoJCWVsc2UgcyArPSAiMSI7CgkJbiA9IG4gLyAyOwoJfQoJZm9yIChpbnQgaSA9IHMuc2l6ZSgpIC0gMTsgaSA+PSAwOyBpLS0pIHsKCQlpZiAoc1tpXSA9PSAnMScpIHMxICs9ICJTWCI7CgkJZWxzZSBzMSArPSAiUyI7Cgl9CglzMS5lcmFzZSgwLCAyKTsKCWNvdXQ8PHMxOwoJCglyZXR1cm4gMDsKfQ==