//Problem link>>http://uva.onlinejudge.org/external/106/10633.html
#include <bits/stdc++.h>
using namespace std ;
int main ()
{
unsigned long long d , n ;
while (cin>>d && d)
{
n=(d*10)/9 ;
if (d%9==0) cout<<n-1<<" "<<n<<endl ;
else cout<<n<<endl ;
}
return 0 ;
}
#include <bits/stdc++.h>
using namespace std ;
int main ()
{
unsigned long long d , n ;
while (cin>>d && d)
{
n=(d*10)/9 ;
if (d%9==0) cout<<n-1<<" "<<n<<endl ;
else cout<<n<<endl ;
}
return 0 ;
}
No comments:
Post a Comment