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

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: A = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: E = None
        self.u: E = None
        self.q: A = None
        self.o: H = None
        self.r: D = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: B = None
        self.u: B = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: D = None
        self.q: A = None
        self.r: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.o: A = None
        self.x: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: E = None
        self.u: E = None
        self.q: A = None
        self.o: H = None
        self.r: D = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: B = None
        self.u: B = None
        self.o: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.x: D = None
        self.q: A = None
        self.r: E = None
        self.txt = txt

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

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