class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: F = None
        self.r: C = None
        self.t: C = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: B = None
        self.p: G = None
        self.w: E = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: F = None
        self.t: E = None
        self.s: A = None
        self.r: A = None
        self.txt = txt

f = A("f")
i = B("i")
l = C("l")
k = D("k")
b = E("b")
c = F("c")
g = G("g")
j = D("j")
e = A("e")

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

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

class C:
    def __init__(self, txt: str):
        self.s: D = None
        self.v: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: B = None
        self.p: G = None
        self.w: E = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: F = None
        self.t: E = None
        self.s: A = None
        self.r: A = None
        self.txt = txt

f = A("f")
i = B("i")
l = C("l")
k = D("k")
b = E("b")
c = F("c")
g = G("g")
j = D("j")
e = A("e")

f.p = j
f.o = c
f.r = l
f.t = l
f.v = g
i.w = c
i.o = c
i.v = j
i.q = k
l.s = k
l.v = c
k.w = b
k.z = g
k.s = g
k.u = f
k.p = i
k.x = c
b.y = i
b.s = l
c.z = g
c.p = g
c.r = i
c.w = b
c.v = b
g.z = l
g.q = c
g.t = b
g.s = f
g.r = f
j.w = b
j.z = g
j.s = g
j.u = e
j.p = i
j.x = c
e.p = j
e.o = c
e.r = l
e.t = l
e.v = g
assert e.p.u.r.s.w.y.txt == "i"