class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: H = None
        self.u: F = None
        self.o: E = None
        self.w: F = None
        self.p: H = None
        self.r: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: H = None
        self.x: F = None
        self.v: D = None
        self.y: E = None
        self.t: E = None
        self.w: E = None
        self.r: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: A = None
        self.y: B = None
        self.s: D = None
        self.z: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: D = None
        self.s: H = None
        self.x: F = None
        self.v: D = None
        self.y: E = None
        self.t: E = None
        self.w: E = None
        self.r: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: A = None
        self.y: B = None
        self.s: D = None
        self.z: A = None
        self.txt = txt

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

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