import sys
def main():
    for line in sys.stdin:
        a, b = map(int, line.split())
        print(len(str(a + b)))

if __name__ == "__main__":
    main() import sys sys def main():
    for line in sys.stdin:
        a, b = map(int, line.split())
        print(len(str(a + b))) main for line in sys.stdin:
        a, b = map(int, line.split())
        print(len(str(a + b))) line sys.stdin sys stdin a, b = map(int, line.split()) a map(int, line.split()) map int line.split() line.split line split b print(len(str(a + b))) print len(str(a + b)) len str(a + b) str a + b a b if __name__ == "__main__":
    main() __name__ == "__main__" __name__ "__main__" main() main def main():
    for line in sys.stdin:
        a, b = map(int, line.split())
        print(len(str(a + b))) def main():
    for line in sys.stdin:
        a, b = map(int, line.split())
        print(len(str(a + b))) main
import sys
def main():
    for line in sys.stdin:
        a, b = map(int, line.split())
        print(len(str(a + b)))

if __name__ == "__main__":
    main()