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

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: B = None
        self.s: H = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: G = None
        self.t: C = None
        self.z: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: B = None
        self.x: D = None
        self.q: B = None
        self.o: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: B = None
        self.s: H = None
        self.q: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: G = None
        self.t: C = None
        self.z: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: B = None
        self.x: D = None
        self.q: B = None
        self.o: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: G = None
        self.txt = txt

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

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