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

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: E = None
        self.w: A = None
        self.o: C = None
        self.txt = txt

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

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

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

c.w = j
c.r = k
c.v = e
c.z = l
c.t = g
l.u = c
l.p = j
m.y = c
m.z = l
m.t = e
m.u = d
e.v = j
e.s = d
e.w = c
e.o = m
g.z = k
g.s = k
g.u = e
g.v = l
j.p = l
j.t = d
j.s = c
d.z = k
d.s = g
d.u = e
d.v = l
k.z = d
k.s = d
k.u = e
k.v = l
assert k.u.v.p.p.t.s.s.s.txt == "
class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: E = None
        self.v: D = None
        self.z: B = None
        self.t: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: E = None
        self.w: A = None
        self.o: C = None
        self.txt = txt

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

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

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

c.w = j
c.r = k
c.v = e
c.z = l
c.t = g
l.u = c
l.p = j
m.y = c
m.z = l
m.t = e
m.u = d
e.v = j
e.s = d
e.w = c
e.o = m
g.z = k
g.s = k
g.u = e
g.v = l
j.p = l
j.t = d
j.s = c
d.z = k
d.s = g
d.u = e
d.v = l
k.z = d
k.s = d
k.u = e
k.v = l
assert k.u.v.p.p.t.s.s.s.txt == "d"