import random


def strategy_uniform():
    r = random.randint(1, 3)
    if r == 1:
        return "R"
    if r == 2:
        return "S"
    return "P"


def strategy_bart_simpson():
    return "R"


def eval_round(symbol1, symbol2):
    if symbol1 == symbol2:
        return 0  # remíza
    if (symbol1 == "R" and symbol2 == "S") or \
       (symbol1 == "S" and symbol2 == "P") or \
       (symbol1 == "P" and symbol2 == "R"):
        return 1  # vyhrál první hráč
    return 2  # vyhrál druhý hráč


def rsp_game(rounds):
    wins1 = 0
    wins2 = 0
    for i in range(rounds):
        print("Round", i + 1)
        symbol1 = strategy_uniform()
        symbol2 = strategy_bart_simpson()
        print("Symbols:", symbol1, symbol2)
        winner = eval_round(symbol1, symbol2)
        if winner == 1:
            print("Player 1 wins this round.")
            wins1 += 1
        elif winner == 2:
            print("Player 2 wins this round.")
            wins2 += 1
        else:
            print("This round is a tie.")

    if wins1 > wins2:
        print("Player 1 wins!")
    elif wins1 < wins2:
        print("Player 2 wins!")
    else:
        print("It's a tie!")


rsp_game(5)
