Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
7.29
daniil-vlasenko
Jul 12th, 2019
98
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
n = int(input())
s = int(input())
m = s
for i in range(n-1):
s = int(input())
if s < m and s % 3 == 0:
m = s
if m % 3 == 0:
print(m)
else:
print(-1)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐⭐⭐Instant Profit Method⭐⭐
Java | 31 sec ago | 0.15 KB
System Management rev_01
Arduino | 1 min ago | 10.90 KB
💎 Free Crypto Method 💎
JavaScript | 1 min ago | 0.24 KB
⭐⭐⭐MAKE $500 IN 15 MIN⭐⭐
Java | 2 min ago | 0.15 KB
💎 INSTANT MONEY EXPLOIT 💎
JavaScript | 3 min ago | 0.24 KB
⭐⭐⭐MAKE $9OO INSTANTLY D A⭐⭐
Java | 3 min ago | 0.15 KB
🔥 EASY PROFIT GUIDE ✅ Working 🔥 ✅🔥
JavaScript | 4 min ago | 0.20 KB
⭐⭐⭐GMAIL Logs (2FA disabled)⭐⭐
Java | 5 min ago | 0.15 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!