class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.p: C = None
        self.u: F = None
        self.v: F = None
        self.o: D = None
        self.y: H = None
        self.r: G = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: E = None
        self.s: B = None
        self.y: E = None
        self.p: F = None
        self.t: A = None
        self.r: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

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

m = A("m")
k = B("k")
l = C("l")
f = D("f")
j = E("j")
c = F("c")
i = G("i")
a = H("a")
e = B("e")

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: E = None
        self.s: B = None
        self.y: E = None
        self.p: F = None
        self.t: A = None
        self.r: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

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

m = A("m")
k = B("k")
l = C("l")
f = D("f")
j = E("j")
c = F("c")
i = G("i")
a = H("a")
e = B("e")

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