➽ Problem:-

https://www.hackerrank.com/challenges/compare-the-triplets/problem

➽ Solution:-

import math

import os

import random

import re

import sys

 

a0,a1,a2 = input().strip().split(' ')

A = [int(a0),int(a1),int(a2)]

b0,b1,b2 = input().strip().split(' ')

B = [int(b0),int(b1),int(b2)]

 

Alice = 0

Bob = 0

 

for i in range(3):

    if(A[i] > B[i]):

        Alice += 1

    if(A[i] < B[i]):

        Bob += 1

    if(A[i] == B[i]):

        pass

 

print(Alice, Bob)