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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: D = None
        self.x: D = None
        self.v: C = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: D = None
        self.x: D = None
        self.v: C = None
        self.q: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

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

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