 sulfaandrey 
                                                10.04.2020 12:58
                                                
                                                sulfaandrey 
                                                10.04.2020 12:58
                                             plagods 
                                                15.03.2022 11:30
                                                
                                                plagods 
                                                15.03.2022 11:30
                                             iekatierina1 
                                                19.05.2020 00:34
                                                
                                                iekatierina1 
                                                19.05.2020 00:34
                                             anuynilonoca 
                                                09.07.2019 17:40
                                                
                                                anuynilonoca 
                                                09.07.2019 17:40
                                             Focussed 
                                                09.07.2019 17:40
                                                
                                                Focussed 
                                                09.07.2019 17:40
                                             mregor3 
                                                22.11.2019 13:20
                                                
                                                mregor3 
                                                22.11.2019 13:20
                                             Marina1023 
                                                22.11.2019 13:31
                                                
                                                Marina1023 
                                                22.11.2019 13:31
                                            
i, b: integer;
m: array [1..10] of integer;
Begin.
For i:= 1 to 10 do
Readln (m[i],b);
S:= 0
If (m[i] div 10 = b) or ( m[i] mod 10 = b) then
S:=s+1
ну и концовку
Write (S);
End.