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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: H = None
        self.w: B = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: E = None
        self.q: H = None
        self.z: C = None
        self.p: B = None
        self.y: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: H = None
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: H = None
        self.w: B = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: I = None
        self.v: E = None
        self.q: H = None
        self.z: C = None
        self.p: B = None
        self.y: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: H = None
        self.q: C = None
        self.txt = txt

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

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