URAL 1009 K-based Number