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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: H = None
        self.p: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: C = None
        self.s: E = None
        self.r: B = None
        self.w: D = None
        self.u: F = None
        self.x: C = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: H = None
        self.y: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: H = None
        self.q: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: H = None
        self.p: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.p: C = None
        self.s: E = None
        self.r: B = None
        self.w: D = None
        self.u: F = None
        self.x: C = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: H = None
        self.y: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: A = None
        self.y: H = None
        self.q: A = None
        self.txt = txt

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

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

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