#include using namespace std; #define rep(i, n) for (int i = 0; i < (n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; using pii = pair; using vi = vector; using vvi = vector>; const ll inf = 1e9; int main() { string n; cin>>n; if(n=="0") cout<<0<