class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: F = None
        self.o: C = None
        self.z: D = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: E = None
        self.x: A = None
        self.txt = txt

n = A("n")
l = B("l")
e = C("e")
c = D("c")
k = E("k")
b = F("b")
m = D("m")
h = B("h")
g = C("g")
i = E("i")

n.x = i
l.y = g
l.o = n
l.x = n
l.s = c
l.w = b
l.u = e
e.s = k
e.q = g
e.z = g
e.u = b
e.o = m
e.w = n
c.r = n
k.x = b
k.p = b
k.o = e
k.v = e
k.z = c
b.v = c
b.y = i
b.x = n
m.r = n
h.y = g
h.u = g
h.o = n
h.x = n
h.s = c
h.w = b
g.s = k
g.q = e
g.z = e
g.u = b
g.o = c
g.w = n
i.x = b
i.p = b
i.o = e
i.z = m
i.v = g
assert c.r.x.o.s.p.y.o.o.txt == "
class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: F = None
        self.o: C = None
        self.z: D = None
        self.v: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: E = None
        self.x: A = None
        self.txt = txt

n = A("n")
l = B("l")
e = C("e")
c = D("c")
k = E("k")
b = F("b")
m = D("m")
h = B("h")
g = C("g")
i = E("i")

n.x = i
l.y = g
l.o = n
l.x = n
l.s = c
l.w = b
l.u = e
e.s = k
e.q = g
e.z = g
e.u = b
e.o = m
e.w = n
c.r = n
k.x = b
k.p = b
k.o = e
k.v = e
k.z = c
b.v = c
b.y = i
b.x = n
m.r = n
h.y = g
h.u = g
h.o = n
h.x = n
h.s = c
h.w = b
g.s = k
g.q = e
g.z = e
g.u = b
g.o = c
g.w = n
i.x = b
i.p = b
i.o = e
i.z = m
i.v = g
assert c.r.x.o.s.p.y.o.o.txt == "m"