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

class B:
    def __init__(self, txt: str):
        self.t: D = 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.x: E = None
        self.u: E = None
        self.o: E = None
        self.t: B = None
        self.txt = txt

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

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

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

c = A("c")
d = B("d")
j = C("j")
h = D("h")
i = E("i")
b = F("b")
f = G("f")
g = B("g")
m = A("m")
l = E("l")

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

class B:
    def __init__(self, txt: str):
        self.t: D = 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.x: E = None
        self.u: E = None
        self.o: E = None
        self.t: B = None
        self.txt = txt

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

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

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

c = A("c")
d = B("d")
j = C("j")
h = D("h")
i = E("i")
b = F("b")
f = G("f")
g = B("g")
m = A("m")
l = E("l")

c.w = m
c.t = m
c.p = b
c.y = b
c.o = g
c.v = l
c.q = l
d.t = h
j.p = d
h.x = l
h.u = l
h.o = i
h.t = g
i.x = d
i.s = l
i.o = l
i.p = c
i.u = j
i.y = j
b.y = l
f.w = l
f.r = i
g.t = h
m.w = c
m.t = c
m.p = b
m.y = b
m.o = g
m.v = l
m.q = l
l.x = g
l.s = i
l.o = i
l.p = c
l.u = j
l.y = j
assert m.y.y.p.p.y.u.p.txt == "d"