-
Notifications
You must be signed in to change notification settings - Fork 0
/
For training.py
131 lines (102 loc) · 2.13 KB
/
For training.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# print(1,2,3, end = " ")
# print(7,8,9)
# a = int(input())
# b = int(input())
# if a < b:
# for i in range(a,b+1):
# print(i,end = " ")
# else:
# for i in range(a,b-1,-1):
# print(i, end = " ")
# c = int(input())
# d = int(input())
# for j in range(c - (c +1) % 2,d - d % 2,-2):
# print(j, end = " ")
# s = 0
# for i in range(10):
# s += int(input())
# print(s)
# n = int(input())
# s = 0
# for _ in range(n):
# s += int(input())
# print(s)
# N = int(input())
# summ = 0
# for i in range(1, N + 1):
# summ += i ** 3
# print(summ)
# n = int(input())
# f = 1
# for i in range(1, n + 1):
# f *= i
# print(f)
# n = int(input())
# f = 1
# summ = 0
# for i in range(1, n + 1):
# f *= i
# summ += f
# print(summ)
# N = int(input())
# cnt = 0
# for _ in range(N):
# p = int(input())
# if p == 0:
# cnt +=1
# print(cnt)
# a = int(input())
# for c in range(1, a + 1):
# for q in range(1, c + 1):
# print(q, end = "")
# print()
# n = int(input())
# st = ""
# for i in range(1,n + 1):
# st += str(i)
# print(st)
# from re import I
# N = int(input())
# s1 = 0
# s2 = 0
# for i in range(1,N+1):
# s1 += i
# for _ in range(N - 1):
# s2 += int(input())
# print(s1 - s2)
# for i in range(10+1):
# for j in range(i, i + 1):
# print(j,end = "")
# print()
# n = int(input())
# count = 0
# for i in range(1,n):
# count += int(input())
# print(count())
# n = int(input())
# print(*n< 100 and range(15,n,15) or ['слишком большое значение n'])
# import sys
#
# lst_in = list(map(str.strip, sys.stdin.readlines()))
# print(lst_in)
# i = 0
# while i < len(lst_in):
# if ' ' in lst_in[i]:
# lst_in.remove(lst_in[i])
# i += 1
#
# print(*lst_in)
# mas = [i.lower().rstrip('ьыъ') for i in input().split()]
# for i in range(len(mas)-1):
# if mas[i][-1] == mas[i+1][0]:
# flag = 'ДА'
# else:
# flag = 'НЕТ'
# break
# print(flag)
s = input()
mas = []
for i in range(len(s)-1):
if s[i] == 'р' and s[i+1] == 'а':
mas.append(i)
print(*[-1] if len(mas) == 0 else mas)