using System;
public class AddsOddDigitsIfNumberToOtherNumber_CSharp {
public static void Main(string[] args) {
int n = 12734, second_n = 100;
Console.WriteLine(AddOddDigits(n, second_n));
}
public static int AddOddDigits(int n, int second_n) {
int multiply = 1, odd = 0;
while (n != 0) {
if (n % 2 != 0) {
odd += (n % 10) * multiply;
multiply *= 10;
}
n = n / 10;
}
return second_n * multiply + odd;
}
}
/*
run:
100173
*/