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

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: A = None
        self.s: D = None
        self.w: B = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: F = None
        self.x: F = None
        self.o: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: A = None
        self.x: F = None
        self.txt = txt

e = A("e")
f = B("f")
n = C("n")
j = D("j")
d = E("d")
g = F("g")
l = A("l")
k = B("k")
i = F("i")

e.x = n
e.r = n
e.z = i
e.y = j
e.u = j
f.o = g
f.r = e
f.x = e
f.s = j
f.w = k
n.t = d
n.w = g
n.x = g
n.o = k
j.t = i
j.w = d
d.z = g
d.o = g
d.y = j
d.s = n
g.s = j
g.p = e
g.x = i
l.x = n
l.r = n
l.z = i
l.y = j
l.u = j
k.o = g
k.r = e
k.s = j
k.w = f
k.x = l
i.s = j
i.p = l
i.x = g
assert e.y.w.y.w.z.p.u.w.txt == "
class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: F = None
        self.r: C = None
        self.y: D = None
        self.u: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: A = None
        self.s: D = None
        self.w: B = None
        self.x: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: F = None
        self.x: F = None
        self.o: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: A = None
        self.x: F = None
        self.txt = txt

e = A("e")
f = B("f")
n = C("n")
j = D("j")
d = E("d")
g = F("g")
l = A("l")
k = B("k")
i = F("i")

e.x = n
e.r = n
e.z = i
e.y = j
e.u = j
f.o = g
f.r = e
f.x = e
f.s = j
f.w = k
n.t = d
n.w = g
n.x = g
n.o = k
j.t = i
j.w = d
d.z = g
d.o = g
d.y = j
d.s = n
g.s = j
g.p = e
g.x = i
l.x = n
l.r = n
l.z = i
l.y = j
l.u = j
k.o = g
k.r = e
k.s = j
k.w = f
k.x = l
i.s = j
i.p = l
i.x = g
assert e.y.w.y.w.z.p.u.w.txt == "d"