#coding utf-8 orig = int(1000000007) n = int(input()) check = float(n / orig) if check == 1: print("same") elif check > 1: print(len(str(n)) - 10)