using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace YukiCoder { class Program { static void Main(string[] args) { int nn = int.Parse(Console.ReadLine()); //while (nn > 0) string S = ""; for (; nn > 0; nn /= 7) { S = nn % 7 + S; } if (S == "") S = "0"; Console.WriteLine(S); Console.ReadLine(); } } }