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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: E = None
        self.y: A = None
        self.q: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: B = None
        self.y: B = None
        self.p: C = None
        self.w: C = None
        self.u: E = None
        self.txt = txt

g = A("g")
i = B("i")
m = C("m")
h = D("h")
j = E("j")
c = F("c")
e = G("e")
b = H("b")

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

class B:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: E = None
        self.y: A = None
        self.q: H = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: B = None
        self.y: B = None
        self.p: C = None
        self.w: C = None
        self.u: E = None
        self.txt = txt

g = A("g")
i = B("i")
m = C("m")
h = D("h")
j = E("j")
c = F("c")
e = G("e")
b = H("b")

g.t = e
g.y = e
g.z = b
g.w = j
g.x = i
g.s = m
i.y = h
m.o = c
m.t = j
m.r = j
m.p = i
m.z = i
m.u = i
m.q = e
m.s = g
h.r = c
h.p = j
h.y = g
h.q = b
j.x = b
j.u = m
j.o = e
c.z = h
c.t = g
e.t = m
e.w = j
b.x = c
b.v = i
b.y = i
b.p = m
b.w = m
b.u = j
assert j.u.z.y.p.u.o.txt == "c"