#!/usr/bin/ruby B=10 q=gets.to_i/(10**9+1) p Enumerator.new{|y| 1.step(B-1){|e|y<