import sys
counts = [0] * 10

def count(n):
    counts[n] += 1

def prob(c):
    return ("{:.4f}".format((c / 1000000) * 100 ) + "%")

def main():
    f = sys.stdin.readlines()
    for line in f:
        try:
            count(int(line[-2]))
        except:
            pass

    x = "The probability of"
    print(x , "nothing is" , prob(counts[0]))
    print(x , "one pair is" , prob(counts[1]))
    print(x , "two pairs is" , prob(counts[2]))
    print(x , "three of a kind is" , prob(counts[3]))
    print(x , "a straight is" , prob(counts[4]))
    print(x , "a flush is" , prob(counts[5]))
    print(x , "a full house is" , prob(counts[6]))
    print(x , "four of a kind is" , prob(counts[7]))
    print(x , "a straight flush is" , prob(counts[8]))
    print(x , "a royal flush is" , prob(counts[9]))

if __name__ == "__main__":
    main()
