class A:
    def __init__(self, txt: str):
        self.r: F = None
        self.w: F = None
        self.o: B = None
        self.p: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: D = None
        self.z: F = None
        self.x: A = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: D = None
        self.y: D = None
        self.s: A = None
        self.q: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: D = None
        self.x: B = None
        self.w: G = None
        self.u: G = None
        self.q: B = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.s: D = None
        self.z: F = None
        self.x: A = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: D = None
        self.r: D = None
        self.y: D = None
        self.s: A = None
        self.q: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: D = None
        self.x: B = None
        self.w: G = None
        self.u: G = None
        self.q: B = None
        self.p: G = None
        self.txt = txt

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

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

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

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