petya love lucky number we know lucky number positive integer decimal representation contain lucky digit 4 7 for example number 47 744 4 lucky 5 17 467 notPetya friend Vasya play interesting game Petya randomly choose integer p interval plpr Vasya choose integer v interval vlvr randomly both player choose integer equiprobably find probability interval minvpmaxvp contain exactly k lucky number