using System;
using System.Collections.Generic;
public class Program
{
public static string ReverseAndNot(int i) {
string s=i.ToString();
var liczby = new List<char>();
for(int j=0;j<s.Length;j++)
liczby.Add(s[j]);
}
liczby.Reverse();
int c=liczby.Count;
string wynik="";
for(int m=0;m<c;m++)
wynik=wynik+liczby[m];
return wynik+s;
public static void Main()
Console.WriteLine(ReverseAndNot(123456));