#include <iostream> using namespace std; int main() { int a; cin>>a; int b = 10; int c=a%b; cout<<c; return 0; } // 64 位输出请用 printf("%lld")