class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.t: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: D = None
        self.s: G = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: D = None
        self.t: F = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: C = None
        self.w: D = None
        self.u: A = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: F = None
        self.t: B = None
        self.y: A = None
        self.q: B = None
        self.s: C = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: D = None
        self.s: G = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: D = None
        self.t: F = None
        self.r: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: C = None
        self.w: D = None
        self.u: A = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.r: F = None
        self.t: B = None
        self.y: A = None
        self.q: B = None
        self.s: C = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: E = None
        self.txt = txt

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

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