class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: E = None
        self.r: G = None
        self.p: C = None
        self.o: D = None
        self.u: F = None
        self.t: E = None
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: F = None
        self.v: H = None
        self.p: G = None
        self.x: H = None
        self.q: A = None
        self.r: C = None
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: F = None
        self.x: H = None
        self.t: G = None
        self.o: H = None
        self.z: E = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: F = None
        self.x: A = None
        self.q: E = None
        self.w: C = None
        self.o: B = None
        self.txt = txt

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

b = A("b")
i = B("i")
g = C("g")
a = D("a")
l = E("l")
d = F("d")
j = G("j")
k = H("k")
f = H("f")
c = F("c")

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: F = None
        self.v: H = None
        self.p: G = None
        self.x: H = None
        self.q: A = None
        self.r: C = None
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: F = None
        self.x: H = None
        self.t: G = None
        self.o: H = None
        self.z: E = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.t: F = None
        self.x: A = None
        self.q: E = None
        self.w: C = None
        self.o: B = None
        self.txt = txt

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

b = A("b")
i = B("i")
g = C("g")
a = D("a")
l = E("l")
d = F("d")
j = G("j")
k = H("k")
f = H("f")
c = F("c")

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