class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: A = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: B = None
        self.s: D = None
        self.p: A = None
        self.w: H = None
        self.v: I = None
        self.r: H = None
        self.y: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: B = None
        self.z: C = None
        self.q: C = None
        self.x: B = None
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: H = None
        self.u: H = None
        self.p: D = None
        self.y: H = None
        self.t: G = None
        self.s: H = None
        self.r: C = None
        self.x: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: A = None
        self.x: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: J = None
        self.u: B = None
        self.s: D = None
        self.p: A = None
        self.w: H = None
        self.v: I = None
        self.r: H = None
        self.y: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: B = None
        self.z: C = None
        self.q: C = None
        self.x: B = None
        self.v: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: H = None
        self.u: H = None
        self.p: D = None
        self.y: H = None
        self.t: G = None
        self.s: H = None
        self.r: C = None
        self.x: I = None
        self.txt = txt

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

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