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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: E = None
        self.p: G = None
        self.v: D = None
        self.t: C = None
        self.w: D = None
        self.u: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: D = None
        self.v: E = None
        self.r: F = None
        self.x: B = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: E = None
        self.r: G = None
        self.y: G = None
        self.v: E = None
        self.txt = txt

m = A("m")
d = B("d")
e = C("e")
b = D("b")
l = E("l")
f = F("f")
i = G("i")
n = D("n")
c = F("c")
h = G("h")

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

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

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: E = None
        self.p: G = None
        self.v: D = None
        self.t: C = None
        self.w: D = None
        self.u: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: D = None
        self.v: E = None
        self.r: F = None
        self.x: B = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: F = None
        self.o: E = None
        self.r: G = None
        self.y: G = None
        self.v: E = None
        self.txt = txt

m = A("m")
d = B("d")
e = C("e")
b = D("b")
l = E("l")
f = F("f")
i = G("i")
n = D("n")
c = F("c")
h = G("h")

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