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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: F = None
        self.y: E = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: G = None
        self.o: E = None
        self.q: E = None
        self.x: D = None
        self.z: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.u: F = None
        self.s: E = None
        self.txt = txt

j = A("j")
m = B("m")
k = C("k")
l = D("l")
b = E("b")
g = F("g")
f = G("f")
d = A("d")
e = F("e")

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: F = None
        self.y: E = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: G = None
        self.o: E = None
        self.q: E = None
        self.x: D = None
        self.z: D = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: F = None
        self.u: F = None
        self.s: E = None
        self.txt = txt

j = A("j")
m = B("m")
k = C("k")
l = D("l")
b = E("b")
g = F("g")
f = G("f")
d = A("d")
e = F("e")

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