There are three poles X, Y and Z of varying height S. Spiders A, B and C begin climbing up the three poles simultaneously. In each attempt A crawls 5 cm up the pole X and slides back 1 cm, B crawls 6 cm up the pole Y and slides back 3 cm and C crawls 7 cm up the pole Z and slides back 2 cm. Assuming that each makes 50 attempts before reaching the top, the heights in cms of three poles respectively are