Back to task

118 symbols python3
Fri Oct 9 16:06:52 2015 BogdanShevchenko
def R(s):s=s[::-1];return int([s,'-'+s[:-1]][s[-1]=='-'])
s=sum(map(R,input().split()))
print([-13,R(str(s))][s!=-30])


Leave a comment

Parsed as Markdown

Login to leave a comment