#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
freopen("AMSTRONG.INP", "r", stdin);
freopen("AMSTRONG.OUT", "w", stdout);
int number;
cin >> number;
return 0;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCWlvc19iYXNlOjpzeW5jX3dpdGhfc3RkaW8oZmFsc2UpOwoJY2luLnRpZShudWxscHRyKTsKCQoJZnJlb3BlbigiQU1TVFJPTkcuSU5QIiwgInIiLCBzdGRpbik7CglmcmVvcGVuKCJBTVNUUk9ORy5PVVQiLCAidyIsIHN0ZG91dCk7CgkKCWludCBudW1iZXI7CgljaW4gPj4gbnVtYmVyOwoJCglyZXR1cm4gMDsKfQ==