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

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

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

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

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

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

e = A("e")
l = B("l")
d = C("d")
g = D("g")
n = E("n")
b = F("b")
m = B("m")
j = F("j")

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

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

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

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

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

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

e = A("e")
l = B("l")
d = C("d")
g = D("g")
n = E("n")
b = F("b")
m = B("m")
j = F("j")

e.v = l
e.p = l
e.u = d
e.t = n
e.y = n
l.t = m
l.q = m
l.y = n
l.s = e
l.p = j
l.u = d
d.u = n
d.p = g
g.z = m
n.w = l
n.y = b
n.u = g
n.p = e
n.z = e
n.x = j
b.w = j
b.z = j
b.p = d
b.t = g
m.t = l
m.q = l
m.y = n
m.s = e
m.p = j
m.u = d
j.w = b
j.z = b
j.p = d
j.t = g
assert g.z.p.p.p.z.s.p.txt == "l"