#!/usr/bin/env python3 import sys import os def parse(): return [int(i) for i in next(sys.stdin).split()] def debug(msg): if os.getenv("DEBUG"): print(msg) def cycle(stones): news = [] for s in stones: if s == 0: news.append(1) else: ss = str(s) mid = len(ss) // 2 l, r = ss[0:mid], ss[mid:] if len(l) == len(r): news.append(int(l)) news.append(int(r)) else: news.append(s * 2024) return news if __name__ == '__main__': stones = parse() debug(stones) for i in range(int(os.getenv("N", 25))): print(i, len(stones)) stones = cycle(stones) debug(stones) print(len(stones))