class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.t: I = None
        self.o: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: B = None
        self.o: E = None
        self.p: B = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: A = None
        self.y: F = None
        self.x: C = None
        self.v: H = None
        self.u: J = None
        self.o: F = None
        self.z: H = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: J = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: F = None
        self.x: F = None
        self.w: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

d = A("d")
f = B("f")
a = C("a")
l = D("l")
k = E("k")
b = F("b")
m = G("m")
j = H("j")
c = I("c")
h = J("h")

d.z = c
d.t = c
d.o = b
f.p = j
a.y = l
a.v = f
a.p = f
a.o = k
a.q = j
l.r = d
l.s = d
l.y = b
l.o = b
l.x = a
l.v = j
l.z = j
l.u = h
l.w = f
k.z = l
k.p = h
k.o = d
b.x = j
m.u = b
j.s = a
c.y = l
c.q = b
c.x = b
c.w = k
h.w = a
assert a.o.z.z.s.q.s.txt == "
class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.t: I = None
        self.o: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.v: B = None
        self.o: E = None
        self.p: B = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: A = None
        self.y: F = None
        self.x: C = None
        self.v: H = None
        self.u: J = None
        self.o: F = None
        self.z: H = None
        self.w: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: J = None
        self.o: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.q: F = None
        self.x: F = None
        self.w: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

d = A("d")
f = B("f")
a = C("a")
l = D("l")
k = E("k")
b = F("b")
m = G("m")
j = H("j")
c = I("c")
h = J("h")

d.z = c
d.t = c
d.o = b
f.p = j
a.y = l
a.v = f
a.p = f
a.o = k
a.q = j
l.r = d
l.s = d
l.y = b
l.o = b
l.x = a
l.v = j
l.z = j
l.u = h
l.w = f
k.z = l
k.p = h
k.o = d
b.x = j
m.u = b
j.s = a
c.y = l
c.q = b
c.x = b
c.w = k
h.w = a
assert a.o.z.z.s.q.s.txt == "a"