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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: F = None
        self.t: B = None
        self.r: D = None
        self.txt = txt

e = A("e")
h = B("h")
b = C("b")
d = D("d")
k = E("k")
g = F("g")
i = G("i")
m = D("m")
a = F("a")
j = A("j")

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: F = None
        self.t: B = None
        self.r: D = None
        self.txt = txt

e = A("e")
h = B("h")
b = C("b")
d = D("d")
k = E("k")
g = F("g")
i = G("i")
m = D("m")
a = F("a")
j = A("j")

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