class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: C = None
        self.r: D = None
        self.q: E = None
        self.w: H = None
        self.v: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: C = None
        self.p: E = None
        self.z: G = None
        self.u: E = None
        self.y: G = None
        self.s: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: E = None
        self.z: G = None
        self.q: A = None
        self.v: G = None
        self.p: C = None
        self.w: E = None
        self.u: A = None
        self.txt = txt

i = A("i")
l = B("l")
b = C("b")
a = D("a")
d = E("d")
n = F("n")
g = G("g")
m = H("m")

i.u = a
i.r = a
i.p = b
i.v = b
i.q = d
i.w = m
l.x = i
l.s = b
b.o = m
b.u = i
a.t = b
d.t = m
d.z = m
d.s = g
d.y = b
d.r = n
d.w = n
n.x = a
n.r = b
n.p = d
n.u = d
n.z = g
n.y = g
n.s = g
g.s = l
g.z = b
m.r = b
m.p = b
m.y = d
m.w = d
m.z = g
m.v = g
m.q = i
m.u = i
assert i.r.t.o.r.o.u.u.txt == "
class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: C = None
        self.r: D = None
        self.q: E = None
        self.w: H = None
        self.v: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.s: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.x: D = None
        self.r: C = None
        self.p: E = None
        self.z: G = None
        self.u: E = None
        self.y: G = None
        self.s: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.y: E = None
        self.z: G = None
        self.q: A = None
        self.v: G = None
        self.p: C = None
        self.w: E = None
        self.u: A = None
        self.txt = txt

i = A("i")
l = B("l")
b = C("b")
a = D("a")
d = E("d")
n = F("n")
g = G("g")
m = H("m")

i.u = a
i.r = a
i.p = b
i.v = b
i.q = d
i.w = m
l.x = i
l.s = b
b.o = m
b.u = i
a.t = b
d.t = m
d.z = m
d.s = g
d.y = b
d.r = n
d.w = n
n.x = a
n.r = b
n.p = d
n.u = d
n.z = g
n.y = g
n.s = g
g.s = l
g.z = b
m.r = b
m.p = b
m.y = d
m.w = d
m.z = g
m.v = g
m.q = i
m.u = i
assert i.r.t.o.r.o.u.u.txt == "a"