#!/usr/bin/perl -l $N=pop;print 1/$N*grep{%h=map{int rand 10}1..$ARGV[0]*2;9