﻿from random import *

def Geom(p):
    N=1
    a=random()
    while a<=p:
        N=N+1
        a=random()
    return N





