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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: A = None
        self.p: C = None
        self.o: C = None
        self.x: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: C = None
        self.t: G = None
        self.q: E = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

l = A("l")
n = B("n")
j = C("j")
e = D("e")
h = E("h")
b = F("b")
k = G("k")
m = A("m")
c = E("c")

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.z: A = None
        self.p: C = None
        self.o: C = None
        self.x: D = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: C = None
        self.t: G = None
        self.q: E = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

l = A("l")
n = B("n")
j = C("j")
e = D("e")
h = E("h")
b = F("b")
k = G("k")
m = A("m")
c = E("c")

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