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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: E = None
        self.y: E = None
        self.r: C = None
        self.w: D = None
        self.z: A = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: G = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: E = None
        self.y: E = None
        self.r: C = None
        self.w: D = None
        self.z: A = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.y: G = None
        self.q: C = None
        self.txt = txt

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

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