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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: A = None
        self.p: C = None
        self.t: F = None
        self.q: B = None
        self.s: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: H = None
        self.w: E = None
        self.y: B = None
        self.q: E = None
        self.p: H = None
        self.s: C = None
        self.o: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: E = None
        self.o: B = None
        self.q: D = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: H = None
        self.y: H = None
        self.o: B = None
        self.p: D = None
        self.u: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.v: A = None
        self.p: C = None
        self.t: F = None
        self.q: B = None
        self.s: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.v: H = None
        self.w: E = None
        self.y: B = None
        self.q: E = None
        self.p: H = None
        self.s: C = None
        self.o: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: E = None
        self.o: B = None
        self.q: D = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: H = None
        self.y: H = None
        self.o: B = None
        self.p: D = None
        self.u: B = None
        self.txt = txt

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

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