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

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

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

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

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

n = A("n")
a = B("a")
i = C("i")
d = D("d")
c = E("c")
b = C("b")
m = A("m")
l = D("l")
j = B("j")

n.o = c
n.q = b
n.p = i
n.s = d
n.x = l
a.w = d
a.v = j
i.y = c
i.p = c
i.o = j
i.u = j
i.t = m
d.y = a
d.p = m
d.u = m
d.q = b
d.t = l
c.p = a
c.u = a
c.y = j
b.y = c
b.p = c
b.o = j
b.u = j
b.t = m
m.o = c
m.q = b
m.p = b
m.s = l
m.x = l
l.y = a
l.p = n
l.u = n
l.q = b
l.t = d
j.w = d
j.v = a
assert n.q.y.y.w.txt == "
class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.q: C = None
        self.p: C = None
        self.s: D = None
        self.x: D = None
        self.txt = txt

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

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

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

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

n = A("n")
a = B("a")
i = C("i")
d = D("d")
c = E("c")
b = C("b")
m = A("m")
l = D("l")
j = B("j")

n.o = c
n.q = b
n.p = i
n.s = d
n.x = l
a.w = d
a.v = j
i.y = c
i.p = c
i.o = j
i.u = j
i.t = m
d.y = a
d.p = m
d.u = m
d.q = b
d.t = l
c.p = a
c.u = a
c.y = j
b.y = c
b.p = c
b.o = j
b.u = j
b.t = m
m.o = c
m.q = b
m.p = b
m.s = l
m.x = l
l.y = a
l.p = n
l.u = n
l.q = b
l.t = d
j.w = d
j.v = a
assert n.q.y.y.w.txt == "d"