k=gets.to_i i=0 200000.times{ s=0 while s!=k i+=1 s=0 if s>k s+=[*1..6].sample end } p i/200000.0