#!/usr/bin/env python

s = open('config/VERSION').read().strip().split('.')
nv = '.'.join(s[:-1] + [str(int(s[-1] or "0")+1)])
print nv
open('config/VERSION', 'w').write(nv+"\n")
