using System;
public class Program
{
public static void Main()
odometer("0","0");
}
public static void odometer (string a , string b ){
if ( a == "9" && b == "9")
Console.WriteLine("reset ");
else {
b = convert(b);
if ( b == "9")
a = convert(a);
Console.WriteLine(a + b );
odometer(a,b);
public static string convert(string x )
if ( x == "0")
x = "1";
if ( x == "1")
x = "2";
if( x == "2")
x = "3";
if( x == "3")
x = "4";
if( x == "4")
x = "5";
if( x == "5")
x = "6";
if( x == "6")
x = "7";
if( x == "7")
x = "8";
if( x == "8")
x = "9";
if( x == "9")
x = "0";
return x;