class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: D = None
        self.y: E = None
        self.w: B = None
        self.p: G = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: F = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: A = None
        self.t: H = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: F = None
        self.s: A = None
        self.u: B = None
        self.w: D = None
        self.t: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: D = None
        self.z: G = None
        self.y: E = None
        self.q: C = None
        self.w: D = None
        self.t: H = None
        self.u: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.o: F = None
        self.v: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: A = None
        self.t: H = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: F = None
        self.s: A = None
        self.u: B = None
        self.w: D = None
        self.t: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: D = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: D = None
        self.z: G = None
        self.y: E = None
        self.q: C = None
        self.w: D = None
        self.t: H = None
        self.u: C = None
        self.txt = txt

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

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