#include using namespace std; int main() { int n; cin >> n; for(int i = 0; i < 10; i++) { if((n + i) % 10 == 0) { cout << i << endl; } } return 0; }