s = raw_input()
x = 0
digit = 1

if len(s) > 10:
    while len(s) >  10 :
        x = x+ long(s[len(s)- 10 :len(s)])*digit
        s = s[0:- 10 ]
        digit = digit*(10** 10 )
    x = x + long(s)*digit
else:
    x = long(s)
print x

'python' 카테고리의 다른 글

라빈 밀러 소수판별  (0) 2012.02.19
소인수 분해  (0) 2012.02.19
[python] (가명) 속성 및 연산자 메쏘드  (0) 2011.11.12
[python] 비트맵 bitmap 쓰기  (0) 2011.11.04
[python] 복소수 complex 사용법  (0) 2011.11.04
Posted by Нуеоп