#include <iostream>
using namespace std;
int main() {
int x;
while (cin >> x && EOF && x) {
if ((x + 1) % 10 == 0)
printf("%d\n", x + 1);
else
printf("%d\n", x);
}
return 0;
}
#include <iostream>
using namespace std;
int main() {
int x;
while (cin >> x && EOF && x) {
if ((x + 1) % 10 == 0)
printf("%d\n", x + 1);
else
printf("%d\n", x);
}
return 0;
}